Languages/shell/nmap

From UIT
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{public}} {{TOC right}} == <code>nmap</code>== Suppose you want to find a <code>ssh</code> server on your local subnet, here is the command to do so: <code lang="bash"> nmap...")
 
 
Line 47: Line 47:
 
* install nmap using <code>sudo apt-get install nmap</code>
 
* install nmap using <code>sudo apt-get install nmap</code>
 
* Replace 192.168.1.0/24 by your local network address, see [http://en.wikipedia.org/wiki/Ifconfig ifconfig]
 
* Replace 192.168.1.0/24 by your local network address, see [http://en.wikipedia.org/wiki/Ifconfig ifconfig]
* [[Languages/shell/arp-scan | Finding a machine on the network : <code>arp-scan</code>]]
+
* See also : [[Languages/shell/arp-scan | Finding a machine on the network : <code>arp-scan</code>]]

Latest revision as of 13:38, 28 October 2014

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