nmap.plugin.zsh 1.1 KB

12345678910111213141516171819202122232425262728
  1. # Some useful nmap aliases for scan modes
  2. # Nmap options are:
  3. # -sS - TCP SYN scan
  4. # -v - verbose
  5. # -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
  6. # -sF - FIN scan (can sneak through non-stateful firewalls)
  7. # -PE - ICMP echo discovery probe
  8. # -PP - timestamp discovery probe
  9. # -PY - SCTP init ping
  10. # -g - use given number as source port
  11. # -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
  12. # -O - enable OS detection
  13. # -sA - TCP ACK scan
  14. # -F - fast scan
  15. # --script=vulscan - also access vulnerabilities in target
  16. alias nmap_open_ports="nmap --open"
  17. alias nmap_list_interfaces="nmap --iflist"
  18. alias nmap_slow="nmap -sS -v -T1"
  19. alias nmap_fin="nmap -sF -v"
  20. alias nmap_full="nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v"
  21. alias nmap_check_for_firewall="nmap -sA -p1-65535 -v -T4"
  22. alias nmap_ping_through_firewall="nmap -PS -PA"
  23. alias nmap_fast="nmap -F -T5 --top-ports 300"
  24. alias nmap_detect_versions="nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
  25. alias nmap_check_for_vulns="nmap --script=vulscan"