Use nmap to find IP from MAC

如何使用 nmap 由 mac 查詢該裝置的 Ip Address 。

sudo nmap -sP -PI -oN ipandmaclist.txt 192.168.128.0/24 1>/dev/null && grep -B 1 a8:26:d9:39:86:32 ipandmaclist.txt ; rm -rf ipandmaclist.txt
Host 192.168.0.190 is up (0.00030s latency).
MAC Address: 00:22:15:13:3F:C1 (Asustek Computer)

或是

sudo nmap -sP -PI 192.168.128.0/24 | grep -B2 -i 00:1A:4D:53:BD:3A
Nmap scan report for 192.168.128.188
Host is up (0.000098s latency).
MAC Address: 00:1A:4D:53:BD:3A (Giga-byte Technology Co.)

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s