cannot import name 'NPCAP

    xiaoxiao2022-07-07  323

    这是属于Python的Scapy模块报错问题 于是我就想着从官方下载最新版scapy试试,我就根据官方的解决方案将scapy克隆到本地,然后./run_scapy,就出现了下面的报错:

    INFO: Can't import PyX. Won't be able to use psdump() or pdfdump(). WARNING: WinPcap is now deprecated (not maintained). Please use Npcap instead INFO: Can't import python-cryptography v1.7+. Disabled WEP decryption/encryption. (Dot11) INFO: Can't import python-cryptography v1.7+.Disabled IPsec encryption/authentication.

    解决方案

    我参考了这篇文档解决了问题

    首先需要下载npcap,我之前也装过wincap但是它已经停止维护了,所以又重新装了npcap,安装地址:https://nmap.org/npcap/#download 安装红色矩形里的就ok了到官方GitHub克隆scapy源码:https://github.com/secdev/scapy到你下载的目录下执行:python setup.py install. 我解决成功的图片如下:
    最新回复(0)