pythonscapyarp

Scapy library giving error ARP who has ?? says?


import scapy.all as scapy


def scan(ip):
    arp_request = scapy.ARP(pdst=ip)
    print(arp_request.summary())
    scapy.ls(arp_request)

scan("10.0.2.0/24")

This is giving output

who has ?? says ??

instead of

who has 10.0.2.0/24 says 'myIp'


Solution

  • I had the same error and found a fix to it. Run these commands

    pip uninstall scapy
    pip uninstall scapy-http
    pip install scapy==2.4.2
    pip install scapy-http==1.8.2