websploit icon indicating copy to clipboard operation
websploit copied to clipboard

scapy issue when starting websploit.py

Open madding1602 opened this issue 1 year ago • 0 comments

Hi everyone. I'm trying to use websploit on Kali Linux. I do python websploit.py (I have python 2.7 installed through pyenv). When I tried the first time to do it, it gave me the error:

└─$ python websploit.py Traceback (most recent call last): File "websploit.py", line 55, in from modules import arp_poisoner File "/home/madding/Descargas/websploit/modules/arp_poisoner.py", line 11, in from scapy.all import * ImportError: No module named scapy.all

after installing scapy by getting from the repo and doing python setup.py install, I try to execute again, but get the next error:

ERROR: Loading module scapy.layers.mspac Traceback (most recent call last): File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/site-packages/scapy-2.5.0-py2.7.egg/scapy/main.py", line 156, in _load mod = importlib.import_module(module) File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/site-packages/scapy-2.5.0-py2.7.egg/scapy/layers/mspac.py", line 482, in class CLAIM_ENTRY(NDRPacket): File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/site-packages/scapy-2.5.0-py2.7.egg/scapy/layers/mspac.py", line 486, in CLAIM_ENTRY NDRInt3264EnumField("Type", 0, CLAIM_TYPE), File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/site-packages/scapy-2.5.0-py2.7.egg/scapy/layers/dcerpc.py", line 1102, in init _NDREnumField(*args, **kwargs), align=(2, 4) File "/home/madding/.pyenv/versions/2.7.18/lib/python2.7/site-packages/scapy-2.5.0-py2.7.egg/scapy/fields.py", line 2467, in init keys = list(enum) # type: ignore TypeError: 'type' object is not iterable

After that, Websplout opens, but I'm not sure it's going to go okay. How can I fix this error?

TIA

madding1602 avatar May 05 '23 15:05 madding1602