Advertisement
makispaiktis

Nmap - Commands

Nov 5th, 2024 (edited)
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. # 1. Basic/unconfigured scan
  2. nmap localhost
  3.  
  4. # 2. Aggressive scan
  5. nmap -A localhost
  6.  
  7. # 3. Specific port scan (here 8025)
  8. nmap -p8025 localhost
  9.  
  10. # 4. TCP connect scan
  11. nmap -sT localhost
  12.  
  13. # 5. TCP SYN scan - A stealth scan that reduces the probability of being detected - Requires elevated/root privileges - Use "sudo"
  14. sudo nmap -sS localhost
  15.  
  16. # 6. UDP scan - Requires elevated/root privileges - Use "sudo"
  17. sudo nmap -sU localhost
  18.  
  19. # 7. Ping sweep - Search for active hosts / IP addresses in a network - Sending ICMP packets
  20. nmap -sn 192.168.1.1-255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement