Skip to content

Instantly share code, notes, and snippets.

@akagaeng
Last active June 21, 2021 07:23
Show Gist options
  • Save akagaeng/844fb93406069dd86e431d03039efd20 to your computer and use it in GitHub Desktop.
Save akagaeng/844fb93406069dd86e431d03039efd20 to your computer and use it in GitHub Desktop.
port scan using nmap

Command

brew install nmap

nmap <host ip|domain name>

# nmap -v scanme.nmap.org
# nmap -v scanme.nmap.org --host-timeout 1

Sample Result

$ nmap scanme.nmap.org

Starting Nmap 7.91 ( https://nmap.org ) at 2021-06-21 16:19 KST
Nmap scan report for scanme.nmap.org (45.33.32.156)
Host is up (0.13s latency).
Not shown: 991 closed ports
PORT      STATE    SERVICE
22/tcp    open     ssh
80/tcp    open     http
135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn
445/tcp   filtered microsoft-ds
4444/tcp  filtered krb524
5060/tcp  open     sip
9929/tcp  open     nping-echo
31337/tcp open     Elite

Nmap done: 1 IP address (1 host up) scanned in 42.83 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment