Languages/shell/nmap

From UIT
Revision as of 11:34, 28 October 2014 by Pim (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

nmap

Suppose you want to find a ssh server on your local subnet, here is the command to do so:

nmap -p 22 --open 192.168.1.0/24

Starting Nmap 6.40 ( http://nmap.org ) at 2014-10-28 11:18 CET
Nmap scan report for XXX.XXX.XXX.1
Host is up (0.0016s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.42
Host is up (0.00081s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.97
Host is up (0.00057s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.103
Host is up (0.00044s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.132
Host is up (0.00037s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.138
Host is up (0.00029s latency).
PORT   STATE SERVICE
22/tcp open  ssh

Nmap scan report for XXX.XXX.XXX.233
Host is up (0.00011s latency).
PORT   STATE SERVICE
22/tcp open  ssh
Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox