본문 바로가기

3-1. Linux/::Command::

nmap 사용방법

1. 네트워크 내 사용중인 IP/MAC 확인법
[root@localhost ~]# nmap -sP 192.168.0.1/24

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2008-05-22 15:10 KST
Host 192.168.0.0 seems to be a subnet broadcast address (returned 6 extra pings).
Host 192.168.0.1 appears to be up.
MAC Address: 00:14:B7:00:1B:C9 (Unknown)
Host 192.168.0.4 appears to be up.
MAC Address: 00:1A:A0:1C:8A:D5 (Unknown)
Host 192.168.0.7 appears to be up.
MAC Address: 00:13:20:8F:50:5C (Unknown)
Host 192.168.0.9 appears to be up.
... 중략 ...
Host 192.168.0.255 seems to be a subnet broadcast address (returned 5 extra pings).
Nmap run completed -- 256 IP addresses (15 hosts up) scanned in 5.803 seconds