Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A strange bug when using this module #127

Closed
Bl1nnnk opened this issue Mar 6, 2018 · 3 comments
Closed

A strange bug when using this module #127

Bl1nnnk opened this issue Mar 6, 2018 · 3 comments

Comments

@Bl1nnnk
Copy link

Bl1nnnk commented Mar 6, 2018

I have successfully installed scapy and scapy-ssl_tls by pip.But I found a strange bug when I tried to use it.As following:

Python 2.7.13 (5.8.0+dfsg-2~ppa2~ubuntu14.04, Jun 17 2017, 18:51:40)
[PyPy 5.8.0 with GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> from scapy_ssl_tls.ssl_tls import TLS
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/pypy2.7/dist-packages/scapy_ssl_tls/ssl_tls.py", line 691, in <module>
    class TLSHelloRetryRequest(Packet):
  File "/usr/local/lib/pypy2.7/dist-packages/scapy_ssl_tls/ssl_tls.py", line 695, in TLSHelloRetryRequest
    TypedPacketListField("extensions", None, TLSExtension, length_from=lambda x:x.length, type_="TLSHelloRetryRequest")]
  File "/usr/local/lib/pypy2.7/dist-packages/scapy_ssl_tls/ssl_tls.py", line 228, in __init__
    self.type_ = type_
AttributeError: 'TypedPacketListField' object has no attribute 'type_'

And I couldn't find any problems from source code, is it reproducible in your environment?

@tintinweb
Copy link
Owner

Hi @Dazdin9o,

that really looks odd. Just tested it with python 2.7.12+ on ubuntu 16.10 with scapy_ssl_tls 2.0.0 via pip. Also the code looks sane around ssl_tls.py:228.
Can you reproduce this? Do you always see this exception or did it work already?

cheers
tin

@Bl1nnnk
Copy link
Author

Bl1nnnk commented Mar 7, 2018

Thanks for responding!
But that's awkward that this module works well today morning ;)
Thanks again for your efforts on this module,it will tremendously promote my work。

@Bl1nnnk Bl1nnnk closed this as completed Mar 7, 2018
@tintinweb
Copy link
Owner

Always happy to help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants