tintinweb / scapy-ssl_tls

SSL/TLS layers for scapy the interactive packet manipulation tool
GNU General Public License v2.0
419 stars 156 forks source link

SSL(): RecursionError: maximum recursion depth exceeded while calling a Python object #139

Closed sk1985 closed 6 years ago

sk1985 commented 6 years ago

While trying to create SSL layer in the packet, getting Python Recursion error:

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 235, in getattr

fld, v = self.getfield_and_val(attr)

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 226, in getfield_and_val

if attr in self.fields:

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 235, in getattr

fld, v = self.getfield_and_val(attr)

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 226, in getfield_and_val

if attr in self.fields:

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 235, in getattr

fld, v = self.getfield_and_val(attr)

File "/usr/local/lib/python3.5/dist-packages/scapy/packet.py", line 226, in getfield_and_val

if attr in self.fields:

RecursionError: maximum recursion depth exceeded while calling a Python object

$ python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information.

        from scapy.all import *

SSL()

tintinweb commented 6 years ago

@sk1985

➡️ https://guides.github.com/features/mastering-markdown/ ➡️ there's only experimental support for py3 ➡️ no clue about your scapy version ➡️ no clue about your scapy-ssl_tls version

Python 2.7.6 (default, Nov 23 2017, 15:49:48)
[GCC 4.8.4] on linux2
>>> from scapy.all import *
>>> SSL()
<SSL  |>

cannot reproduce scapy-ssl_tls v2.0 release pip.