It needs gawk, sed and grep.
arping -c 1 192.168.1.1 | grep ":" | sed "s/\[//g;s/\]//g" |gawk '{print $5}'
# 00:AA:BB:CC:DD:EE
# Find MACs of all the hosts on a specific network with broadcast pings. Displays:
# 192.168.1.1 -> 00:AA:BB:CC:DD:EE
# 192.168.1.2 -> 00:FC:AE:5C:D1:A6
# ...
for i in `ping -b -c 5 192.168.1.255 | grep ": ic" | gawk '{print $4}' | sort -u | sed "s/://g"`
do
arping -c 1 $i | grep ":" | sed "s/\[//g;s/\]//g" | gawk '{a=$4" -> "$5;print a}'
done
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/430"></script>
#passer en root
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/142"></script>