25 CLI Commands Every Hacker Needs to Get the Job Done
Updated July 23, 2026 · Written by PWNMI — see About.
This isn't 25 obscure tricks — it's the boring, load-bearing set of tools that actually show up, repeatedly, across a real engagement. Fluency here matters more than knowing one clever exploit, because you'll use most of these on every single target. Where a command has a full Cheatsheet entry, it's linked below.
Recon & Enumeration
- nmap — host discovery and service/version enumeration. First tool on almost every target, full stop.
- gobuster — directory, file, subdomain, and vhost brute-forcing. Finds what isn't linked anywhere.
- whois — domain registration lookup. Fast, low-noise way to get organizational context on a target before touching it.
- dig — DNS record queries (
dig target.com ANY,dig target.com MX). Reveals mail servers, subdomains via records, and misconfigurations like open zone transfers. - curl — manual HTTP interaction. For testing an endpoint directly, without a browser or proxy in the way.
Web Application Testing
- sqlmap — automated SQL injection detection and exploitation. Point it at a parameter, let it enumerate injection points and extract data.
- ffuf — fast web fuzzer for directories, parameters, and virtual hosts. Faster than gobuster for high-volume fuzzing, with more flexible filtering.
- nikto — web server vulnerability scanner. Noisy and dated in places, but still fast at flagging obvious misconfigurations and outdated software.
Credential Attacks
- hydra — online brute-force and password spraying across dozens of protocols.
- john (John the Ripper) — offline hash cracking with wordlist and rule-based attacks.
- hashcat — GPU-accelerated hash cracking. Where John is CPU-bound and flexible, hashcat is the tool for cracking at real scale.
- netexec (formerly CrackMapExec) — Active Directory and SMB credential validation, spraying, and enumeration across many hosts at once.
Exploitation & Post-Exploitation
- msfconsole (Metasploit) — the standard exploitation framework. Understand what a module is doing before running it, not just that it works.
- netcat — listeners, reverse shells, and quick file transfer. The tool behind most shells you'll ever catch.
- socat — like netcat but more flexible; handles encrypted relays and more complex redirection netcat can't.
- secretsdump.py (from Impacket) — dumps credentials and hashes from a domain controller or local SAM remotely, without needing a shell on the target first.
Pivoting & Tunneling
- ssh — local/remote/dynamic port forwarding through a compromised host with SSH access.
- chisel — TCP/UDP tunneling over HTTP, for pivoting when SSH isn't available on the foothold.
- proxychains — routes another tool's traffic through a SOCKS proxy (often one set up via SSH
-Dor chisel), so tools that don't natively support proxies can still reach a pivoted network.
Privilege Escalation
- linpeas.sh — automated Linux privilege escalation enumeration. Run it, then verify findings manually — see the script privesc checklist for the manual side of this.
sudo -l— not a separate tool, but the single most important command to run once you have any shell: shows exactly what you can run as another user, and is often the whole privesc path by itself.
Traffic & Analysis
- tcpdump — packet capture at the command line, for confirming traffic is actually leaving or arriving.
- tshark — Wireshark's command-line counterpart, for filtering and analyzing captures without a GUI (useful on a headless pivot host).
General-Purpose Utilities
- grep — filtering command output and searching files. Shows up constantly across every other tool on this list — piping nmap or gobuster output through grep is routine.
- python3 — not a single command, but
python3 -m http.server(quick file serving) and one-line reverse shells/scripts make it a permanent fixture in almost every session.
Next step
Most of these are covered in more depth as they come up throughout the site — start with Nmap fundamentals and Burp Suite fundamentals if you haven't already, and check the Cheatsheets section as it grows for deeper reference on the rest.
Get new write-ups in your inbox
New roadmaps, tool walkthroughs, and lab write-ups. No spam. Unsubscribe anytime.