Scanning using Nmap

Ping Sweep

sudo nmap -sn $TARGET_NET -oA live_hosts --stats-every 5s | grep 'for' | cut -d" " -f5

Scan Hosts from a List

sudo nmap -sn -iL $HOSTS_LIST -oA tnet | grep 'for' | cut -d" " -f5

Scan Types

# IPv6 Scan
nmap -6 $TARGET_IPv6

# Full TCP Connect Scan (3-Way Handshake)
sudo nmap -sT $TARGET_IP
# Stealth SYN Scan
sudo nmap -sS $TARGET_IP
# UDP Scan
sudo nmap -sU $TARGET_IP
#ACK Scan (Firewall Rule Discovery)
sudo nmap -sA $TARGET_IP

Firewall Evasion

Useful Options

Last updated