- arping
简介
root@kali:~# arping
Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination
-f : quit on first reply
-q : be quiet
-b : keep broadcasting, don’t go unicast
-D : duplicate address detection mode
-U : Unsolicited ARP mode, update your neighbours
-A : ARP answer mode, update your neighbours
-V : print version and exit
-c count : how many packets to send
-w timeout : how long to wait for a reply
-I device : which ethernet device to use
-s source : source ip address
destination : ask for what ip address
发送包数量
root@kali:~# arping 10.10.10.132 -c 1
ARPING 10.10.10.132 from 10.10.10.131 eth0
Unicast reply from 10.10.10.132 [00:0C:29:D0:AB:2C] 1.130ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
重复地址检测模式
root@kali:~# arping 10.10.10.132 -D
ARPING 10.10.10.132 from 0.0.0.0 eth0
Unicast reply from 10.10.10.132 [00:0C:29:D0:AB:2C] 0.812ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
输出 MAC 地址
root@kali:~# arping -c 1 10.10.10.132 | grep “reply from” | cut -d " " -f 5 | cut -d “[” -f 2 | cut -d “]” -f 1
00:0C:29:D0:AB:2C
fping -s(显示结果) -g(扫描范围) 172.16.100.1 172.16.100.254