pip3 install --pre scapyだとpython3で動かないバージョン(scapy-2.4.2)がインストールされてエラー(下)になる。
apt install python3-scapy
でインストールすると良い。
python3でscapy-2.4.2を実行した時のエラー
File "/usr/local/lib/python3.5/dist-packages/amazon_dash/scan.py", line 27, in scan_devices
lfilter=lfilter, iface=iface)
File "/usr/local/lib/python3.5/dist-packages/scapy/sendrecv.py", line 836, in sniff
*arg, **karg)] = iface
File "/usr/local/lib/python3.5/dist-packages/scapy/arch/linux.py", line 454, in __init__
attach_filter(self.ins, filter, iface)
File "/usr/local/lib/python3.5/dist-packages/scapy/arch/linux.py", line 140, in attach_filter
bp = compile_filter(bpf_filter, iface)
File "/usr/local/lib/python3.5/dist-packages/scapy/arch/common.py", line 126, in compile_filter
raise Scapy_Exception("tcpdump is not available. Cannot use filter !")
scapy.error.Scapy_Exception: tcpdump is not available. Cannot use filter !
0 件のコメント:
コメントを投稿