Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:it-security:nmap [2024/02/04 22:27] – removed psycore | en:it-security:nmap [2024/02/05 07:35] (current) – old revision restored (2024/02/04 23:27) psycore | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | ====== Helpful NMAP scanner commands ====== | ||
| + | Here are some very useful commands for NMAP. | ||
| + | |||
| + | ===== Command Set ===== | ||
| + | |||
| + | ==== Discover Hosts ==== | ||
| + | |||
| + | <code bash> | ||
| + | export IPRANGE=' | ||
| + | nmap -e tun0 -sn -v -oA pingscan $IPRANGE | ||
| + | </ | ||
| + | |||
| + | ==== Parse Results ==== | ||
| + | |||
| + | <code bash> | ||
| + | grep Up pingscan.gnmap | awk ' | ||
| + | </ | ||
| + | |||
| + | ==== Discover Services ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap -v -sSV -A -O -iL 172_16_ping_ips.txt | ||
| + | </ | ||
| + | |||
| + | ==== Discover more Hosts ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap -PE -PS80, | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Other commands ===== | ||
| + | |||
| + | ==== Ping Scan ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap -sP 172.16.0.0/ | ||
| + | </ | ||
| + | |||
| + | ==== quick scan ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap-sn 192.168.0.1/ | ||
| + | </ | ||
| + | |||
| + | ==== Systematic scan ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap -e tun0 -PE -sn -n -oA pingscan 172.16.0.0/ | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | grep Up pingscan.gnmap | awk ' | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | nmap -e tun0 -sSV -O --top-ports 3800 -oA portscan172_ping_ips -iL 172_16_ping_ips.txt | ||
| + | </ | ||
| + | |||
| + | ==== Targeted scanning ==== | ||
| + | |||
| + | <code bash> | ||
| + | nmap -v -A -O -oX / | ||
| + | </ | ||
| + | |||
| + | <code text> | ||
| + | -A: Enable OS detection, version detection, script scanning, and traceroute | ||
| + | -O: Enable OS detection | ||
| + | -oN/ | ||
| + | and Grepable format, respectively, | ||
| + | -iL < | ||
| + | </ | ||
| + | |||
| + | ==== Scan host services ==== | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | ==== Scan vulnerabilities ==== | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | ==== Disguise NMAP scans ==== | ||
| + | |||
| + | <code bash> | ||
| + | --scan-delay/ | ||
| + | </ | ||
| + | |||
| + | ==== Banner Grabbing ==== | ||
| + | |||
| + | < | ||