Scapy ARP mistake

跟風遠走 提交于 2020-04-18 06:56:09

问题


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")

回答1:


That was fixed. Retry using the development version (on github)



来源:https://stackoverflow.com/questions/60460188/scapy-arp-mistake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!