Scapy ARP错误 [英] Scapy ARP mistake
本文介绍了Scapy ARP错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里的代码应该说"ARP拥有("192.168.178.1/24")表示192.168.178.64, 但这对我不起作用. 上面写着有??的Ether/ARP". 这是代码:
my code right here is supposed to say "ARP who has ("192.168.178.1/24") says 192.168.178.64, but it does not work for me. It says "Ether/ARP who has ?? says ??" Here is the Code:
#!/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上)
That was fixed. Retry using the development version (on github)
这篇关于Scapy ARP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文