简体   繁体   中英

Scapy ARP mistake

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM