Scapy ARP错误
Scapy ARP mistake
我这里的代码应该说 "ARP who has ("192.168.178.1/24") 说 192.168.178.64,
但它对我不起作用。
它说 "Ether/ARP who has ?? says ??"
这是代码:
#!/usr/bin/python3
import scapy.all as scapy
def scan(ip):
arp_request = scapy.ARP(pdst=ip)
broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff")
arp_request_broadcast = broadcast/arp_request
print(arp_request_broadcast.summary())
scan("192.168.178.1/24")
已修复。使用开发版本重试(github)
我这里的代码应该说 "ARP who has ("192.168.178.1/24") 说 192.168.178.64, 但它对我不起作用。 它说 "Ether/ARP who has ?? says ??" 这是代码:
#!/usr/bin/python3
import scapy.all as scapy
def scan(ip):
arp_request = scapy.ARP(pdst=ip)
broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff")
arp_request_broadcast = broadcast/arp_request
print(arp_request_broadcast.summary())
scan("192.168.178.1/24")
已修复。使用开发版本重试(github)