root@hak:~# scapy
WARNING: No route found for IPv6destination :: (no default route?)
INFO: Can'timport python ecdsa lib. Disabled certificate manipulation tools
Welcome to Scapy (unknown.version)
>>> a=Ether()/ARP()
>>>a.show()
###[ Ethernet]###
dst= 00:50:56:ef:49:1f
src= 00:0c:29:e2:bb:15
type= 0x806
###[ ARP ]###
hwtype= 0x1
ptype= 0x800
hwlen= 6
plen= 4
op= who-has
hwsrc= 00:0c:29:e2:bb:15
psrc= 192.168.80.250
hwdst= 00:00:00:00:00:00
pdst= 0.0.0.0
>>>arp1=srp(Ether(src='00:0c:29:e2:bb:15',dst='FF:FF:FF:FF:FF:FF')/ARP(op=1,hwsrc='00:0c:29:e2:bb:15',hwdst='00:00:00:00:00:00',psrc='192.168.80.250',pdst='192.168.80.251',))
Begin emission:
*Finished to send 1 packets.
Received 1packets, got 1 answers, remaining 0 packets
1)>>> print(arp1)
(<Results:TCP:0 UDP:0 ICMP:0 Other:1>, <Unanswered: TCP:0 UDP:0 ICMP:0 Other:0>)
产生收到响应与没收到响应<