githubEdit

nmap-one-liner

Host discovery

sudo nmap -sn -T4 "$ip" -oN live_hosts_"$ip".out

UDP scan (top 100)

sudo nmap "$ip" --open --top-ports 100 -sU -sS -A -oN scan/udp_scan"$ip".nmap

One-Line Scan

ports=$(sudo nmap -p- --min-rate=1000 "$ip" | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//) || mkdir scan 2>/dev/null || sudo nmap -p"$ports" -sVC "$ip" --script "safe and not brute and not broadcast and not vulners and not http-comments-displayer and not multicast-profinet-discovery and not *-robtex* and not targets-asn" -oN scan/scan_"$ip".nmap

Web-discovery

nmap -p 80,443,8000,8080,8180,8888,1000 --open -oN scan/web_discovery_"$ip".nmap

Firewall and IDS-IPS evasion

Last updated