Command Palette

Search for a command to run...

Cheatsheets
PreviousNext

Network Discovery

Host Discovery

CommandDescription
nmap -sn -n <CIDR>Ping sweep - discover live hosts without port scanning.
nmap -sn -n --disable-arp-ping <CIDR>Ping sweep disabling ARP (useful on some network configs).
nmap -sn -n -PE <CIDR>ICMP echo only host discovery.
netdiscover -r <CIDR>ARP-based host discovery (layer 2, requires same subnet).

Port Scanning

CommandDescription
nmap -p- --open -sS --min-rate 5000 -n -Pn <IP>Full TCP SYN scan - all ports, fast, no ping.
nmap -p- --open -sT --min-rate 5000 -n -Pn <IP>Full TCP connect scan - required through proxychains.
nmap -p<ports> -sCV <IP> -oN targetedService and version detection on specific ports.
nmap -p<ports> -sCV <IP> -oG outputGrepable output format.
nmap -p- -sS -T4 <CIDR>Full scan across a subnet (slower but thorough).

Metasploit - Scanning Through a Pivot

CommandDescription
use post/multi/gather/ping_sweepICMP ping sweep via Meterpreter session - works through autoroute.
set RHOSTS 192.168.0.1-254Target range for the sweep.
set SESSION <id>Meterpreter session to pivot through.
use auxiliary/scanner/portscan/tcpTCP port scanner through autoroute.
set PORTS 22,80,135,139,443,445,3306,3389,5985,8080,10000Common ports to scan.
set THREADS 10Concurrent threads (keep low through pivot).

Note: arp_sweep operates at layer 2 and does not work through autoroute. Always use ping_sweep or portscan/tcp when pivoting.

Output & Parsing

CommandDescription
nmap -sn <CIDR> -oG - | grep "Up"Extract only live hosts from a ping sweep.
grep "open" targetedFilter open ports from a targeted scan.
cat allPorts | grep "Host:"List all hosts with open ports from grepable output.