Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created September 14, 2018 21:23
Show Gist options
  • Save zulhfreelancer/81a83903ea318b516da18ee7dba5fd0d to your computer and use it in GitHub Desktop.
Save zulhfreelancer/81a83903ea318b516da18ee7dba5fd0d to your computer and use it in GitHub Desktop.
How to scan all 65535 ports on a host?
$ nmap -p- -Pn xx.xxx.xx.xxx

Starting Nmap 7.60 ( https://nmap.org ) at 2018-09-15 05:14 +08
Nmap scan report for ec2-xx-xxx-xx-xxx.ap-south-1.compute.amazonaws.com (xx.xxx.xx.xxx)
Host is up (0.040s latency).
Not shown: 65531 filtered ports
PORT      STATE  SERVICE
22/tcp    open   ssh
xxxxx/tcp open   unknown
xxxxx/tcp open   unknown

Nmap done: 1 IP address (1 host up) scanned in 110.98 seconds

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment