Posts linux nmap port scan
Post
Cancel

linux nmap port scan

  • Port scan using nmap

Download and install nmap

  • Scan all ports
1
$ nmap localhost
  • Scan specific port
1
$ nmap -p 8080 localhost
  • Scan specific port range
1
$ nmap -p 8080-9090 localhost
  • Scan server which is blocking pings
1
2
3
$ nmap -sT -P0 -p 8080 localhost

$ # -sT (TCP connect)
  • Scan server with firewall enabled ACK Scan
1
2
3
$ nmap nmap -sA -p 8080 localhost

$ #ACK Scan (-sA)
This post is licensed under CC BY 4.0 by the author.