Closed ghost closed 6 years ago
see #121 this is a scapy issue, please consult their issue tracker.
I made sure that pycrypt is installed and tested:
>>> from Crypto import Random
It works fine. I am facing issue in scapy ssl but can't figure out the reason:
>>> from scapy import *
>>> from scapy_ssl_tls.ssl_tls import TLS
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\scapy_ssl_tls\ssl_tls.py", line 7, in <module>
from scapy.layers.inet import TCP, UDP
File "C:\Python27\lib\site-packages\scapy\layers\inet.py", line 14, in <module>
from scapy.layers.l2 import *
File "C:\Python27\lib\site-packages\scapy\layers\l2.py", line 14, in <module>
from scapy.ansmachine import *
File "C:\Python27\lib\site-packages\scapy\ansmachine.py", line 14, in <module>
from sendrecv import send,sendp,sniff
File "C:\Python27\lib\site-packages\scapy\sendrecv.py", line 13, in <module>
import arch
File "C:\Python27\lib\site-packages\scapy\arch\__init__.py", line 80, in <module>
from windows import *
File "C:\Python27\lib\site-packages\scapy\arch\windows\__init__.py", line 17, in <module>
from scapy.sendrecv import debug, srp1
ImportError: cannot import name debug
Here is the installation output:
C:\Users\tls\testing>python -m pip install scapy-ssl_tls
Requirement already satisfied: scapy-ssl_tls in c:\python27\lib\site-packages
Requirement already satisfied: pycryptodomex>=3.4 in c:\python27\lib\site-packages (from scapy-ssl_tls)
Requirement already satisfied: scapy<2.3.3,>=2.2.0 in c:\python27\lib\site-packages (from scapy-ssl_tls)
Requirement already satisfied: tinyec>=0.3.1 in c:\python27\lib\site-packages (from scapy-ssl_tls)
try a from scapy.all import *
first. see below. maybe a scapy circular import issue.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "xx\site-packages\scapy_ssl_tls\ssl_tls.py", line 7, in <module>
from scapy.layers.inet import TCP, UDP
File "xx\site-packages\scapy\layers\inet.py", line 14, in <module>
from scapy.layers.l2 import *
File "xx\site-packages\scapy\layers\l2.py", line 14, in <module>
from scapy.ansmachine import *
File "xx\site-packages\scapy\ansmachine.py", line 14, in <module>
from sendrecv import send,sendp,sniff
File "xx\site-packages\scapy\sendrecv.py", line 13, in <module>
import arch
File "xx\site-packages\scapy\arch\__init__.py", line 79, in <module>
from windows import *
File "xx\site-packages\scapy\arch\windows\__init__.py", line 17, in <module>
from scapy.sendrecv import debug, srp1
ImportError: cannot import name debug
>>> from scapy.all import *
WARNING: No route found for IPv6 destination :: (no default route?)
>>>
>>> from scapy_ssl_tls.ssl_tls import TLS
>>> TLS
<class 'scapy_ssl_tls.ssl_tls.SSL'>
>>>
Thanks. I shifted to Linux and it is easier. However, I am looking for a documentation of the library? I opened an issue about error in one of the examples.
I have installed scapy-ssl_tls in Windows from the source code as instructed in the home page. I use Python 2.7. When I test the installation, I get this response. Can you please identify the problem? Or does scapy-ssl_tls is not supported in Windows?
This is the installation log FYI: