python中pcap与scapy问题
在使用python的scapy库进行网络数据包处理时出现这个问题,似乎和nmap的pcap库与winpcap库有冲突有关,请问有各位大佬遇到过这样的问题吗
Traceback (most recent call last):
File “C:/Users/LYC/PycharmProjects/untitled16/scan_OS.py”, line 11, in
ans = sr1(IP(dst=ip) / TCP(), timeout=1, verbose=0)
File “C:\Users\LYC\Anaconda3\lib\site-packages\scapy\sendrecv.py”, line 488, in sr1
nofilter=nofilter, iface=iface)
File “C:\Users\LYC\Anaconda3\lib\site-packages\scapy\arch\pcapdnet.py”, line 317, in init
monitor=monitor)
File “C:\Users\LYC\Anaconda3\lib\site-packages\scapy\arch\windows_init_.py”, line 805, in open_pcap
“Interface is invalid (no pcap match found) !”
scapy.error.Scapy_Exception: Interface is invalid (no pcap match found) !
出错的地方