-
Notifications
You must be signed in to change notification settings - Fork 157
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
can't get examples to work #69
Comments
Whats your python and scapy version ( This is how you should get started with the latest master build on a default kali2
|
Thank you,it must be a version problem on my end then :
|
works just fine on my fedora 24. Would you mind uninstalling
also, the supercall should probably be called first in diff --git a/scapy_ssl_tls/ssl_tls.py b/scapy_ssl_tls/ssl_tls.py
index 1c65126..2f08009 100644
--- a/scapy_ssl_tls/ssl_tls.py
+++ b/scapy_ssl_tls/ssl_tls.py
@@ -15,13 +15,13 @@ import ssl_tls_registry as registry
class BLenField(LenField):
def __init__(self, name, default, fmt="I", adjust_i2m=lambda pkt, x:x, numbytes=None, length_of=None, count_of=None, adjust_m2i=lambda pkt, x:x):
+ LenField.__init__(self, name, default, fmt)
self.name = name
self.adjust_i2m = adjust_i2m
self.adjust_m2i = adjust_m2i
self.numbytes = numbytes
self.length_of = length_of
self.count_of = count_of
- LenField.__init__(self, name, default, fmt)
if fmt[0] in "@=<>!":
self.fmt = fmt
|
Ok, I can reproduce it now. You're using a development version of scapy and scapy recently switched to Let me know if you still have any issues with this. cheers PS: fixing this is not trivial because with scapy >2.3.2 (includes all dev versions, not the release) not only slots were introduced (which is nice! and we could easily adopt that) but they've just broken the x509 interface. good bye backwards compatibility. |
Ok, spot on, that fixed it. I was using scapy from their git to see if I can resolve some pip install issues I had earlier. One thing I'd like to mention: https://github.com/tintinweb/scapy-ssl_tls/blob/master/examples/security_scanner.py#L29 I had to change that to:
I still can't get it to sniff, I'll open a different issue for that after some testing if I still can't figure it out. |
you recommended using python2.x on a previous python3 support issue I created, I still can't get it to work with 2.7.
My port to python3 works without any errors but I was unable fetch the SSL/TLS layer (even through all of it shows up in pkt.show(),etc...) .
What specific python version is this working for you on? My goal is to grab the server hello,that's all I'm trying to do,if you can help me to get this working on any python version, I'll get it working with at least 3.4.
output showing the problems I'm facing:
The text was updated successfully, but these errors were encountered: