linux

linux

Senin, 07 Mei 2012

IP scanner for linux

NMAP

for scan ip on the network just use nmap
if you want to know the up ip on our network just type :
nmap -sP 192.168.1.0/24

this will show  :
Host gw1.ipos.net (192.168.1.1) is up (0.00014s latency).    
MAC Address: 00:0C:42:BC:4D:9A (Routerboard.com)            
Host hplj1200.ipos.net (192.168.1.5) is up (0.0019s latency).
MAC Address: 00:11:0A:ED:52:43 (Hewlett Packard)            
Host hplj2200.ipos.net (192.168.1.6) is up (0.0020s latency).
MAC Address: 00:11:0A:ED:52:B9 (Hewlett Packard)            
Host hpljc4500.ipos.net (192.168.1.7) is up (0.00035s latency).
MAC Address: 08:00:37:97:B2:22 (Fuji-xerox CO.)             
Host 192.168.1.9 is up (0.0011s latency).                   
MAC Address: 00:1A:4B:1F:EB:0A (Hewlett Packard)            
Host 192.168.1.10 is up (0.00079s latency).            


for more simple use :
nmap -sP 192.168.1.0/24 | grep Host 


this will show :
Host gw1.ipos.net (192.168.1.1) is up (0.00012s latency).       
Host hplj1200.ipos.net (192.168.1.5) is up (0.0019s latency).   
Host hplj2200.ipos.net (192.168.1.6) is up (0.0019s latency).   
Host hpljc4500.ipos.net (192.168.1.7) is up (0.00044s latency).
Host 192.168.1.9 is up (0.0011s latency).                       
Host 192.168.1.10 is up (0.00098s latency).                     
Host 192.168.1.11 is up (0.0015s latency).                      
Host 192.168.1.12 is up (0.00024s latency).                     
Host 192.168.1.13 is up (0.00081s latency).                     
Host 192.168.1.15 is up (0.00046s latency). 



for range ip 192.168.1.50 - 192.168.1.57 just type :

nmap -sP 192.168.1.50-57 | grep Host


this will show
Host januar.ipos.net (192.168.1.50) is up (0.00014s latency).
Host 192.168.1.51 is up (0.00042s latency).
Host 192.168.1.53 is up (0.00022s latency).
Host 192.168.1.56 is up (0.00055s latency).

Tidak ada komentar:

Posting Komentar