我在利用scapy获取试探性的信息。我是python的新手,也是scapy的新手

2024-06-23 18:59:19 发布

您现在位置:Python中文网/ 问答频道 /正文

#!/usr/bin/env python

from scapy.all import *

ap_list = []

def PacketHandler(pkt) :

  if pkt.haslayer(Dot11) :
        if pkt.type == 0 and pkt.subtype == 8 :

            if pkt.addr2 not in ap_list :
                ap_list.append(pkt.addr2)
                print "AP MAC: %s with SSID: %s " %(pkt.addr2, pkt.info)


sniff(iface="mon0", prn = PacketHandler)

使用上述代码获取错误

no such device


Tags: fromimportenvifbinusrdefall

热门问题