-
Notifications
You must be signed in to change notification settings - Fork 155
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
scapy3k #39
Comments
Hi, I thought scapy wasn't python3 compatible until I saw your fork. Nice work! Since you have obvious experience with the transition process, do you have a rough idea of how much effort it would take to port this code base? That being said, I'd be happy to take this on with you. Alex |
By quickly looking at the code, I think it is mostly replacing some cases of str with bytes and some 'asdf' with b'asdf'. Most likely doable within a day of work or so. |
Thanks for the information. Six package seems to allow some abstraction types for this use case. I think we don't want to maintain multiple branches. |
scapy3k in the future might also divert from internal API of scapy 2.x, and adding library like six seems quite an overhead for scapy-ssl_tls, which does not have too many LOC at present. My guess is that maintaining compatibility layer (six, anything checking actual version and doing different things based on that, etc.) will be more laborious than the effort of separate branch. |
This would be awesome, scapy3k is awesome, and so is scapy-ssl_tls :) |
Hey guys, |
Hi @MichaelLiuzzi, |
If anybody is doing it, I will provide scapy3k support. |
There's a semi-functional py3 fork here, which I've submitted some tweaks to. I might be able to find some cycles to get a better port happening in the near future. |
Thanks for the heads up @cniemira, If you have some time to move this forward, could you work on top of the Appreciate the help, |
Hi, would be great to come up with a list of issues that prevent tin |
FWIW, I have a functional py3 (only) compatible fork here. I've got a whole py3/jupyter/scapy/x509 stack built up in a docker image that's currently very much hacked together, but which I'd like to clean up. |
BTW - I'd be happy to clean up my fork and submit a PR back here when I get a few minutes. The reason I haven't done so yet is that I dropped py2 support, which I'd need to put back, since I gather it's still desirable by some. |
👍 for the docker image! I had a cursory look at your diff and it kind of boils down to the following changes:
//Note: py26 support might be required in order to get scapy to work on windows - not sure if thats still the case Would you mind submitting a PR targeting release/1.2.3 (thats the next release)? Just make sure it works for py3 and I'll try to add a compat layer fixing py2. appreciate your help! cheers, |
Submitted! Happy to help. |
Good news, that this is moving. I have not checked out the code yet, but any specific help needed on scapy3k side? |
@phaethon we're in the process of experimenting with a py3compat layer for release/1.2.3. I do not have any experience with scapy3k and therefore would appreciate your help in testing our code once we're ready. |
@tintinweb, any news on this? |
@tintinweb I just setup scapy_ssl_tls in python3 and to let it work i had to change two things: and i had to change the line Then i tried the code: and it imported without errors, i didn't test it so i am not sure |
Hi all, and thank you very much for this nice piece of code. I had all the errors in the world at parsing TLS traffic with some python2 code, so I decided to switch to python3. For reference, and to spare the blood price to future users :
The steps are described at the end of this message, here are some error messages to attract search results.
It works now, on a somewhat fresh devuan :
Installation steps
There you go, I hope this helps :) |
Hi, |
for anyone who is interested, I created a py3 compatible branch from master: https://github.com/kalidasya/scapy-ssl_tls/tree/py3_update it is using scapy 2.4.* |
I cant get it to work with python3, I tried with the @kalidasya update but got error when running an example.
|
yeah I did not check the tests. probably some part what I did not use was not converted. might try to take a look into it this week, cannot promise much |
I have a dis-functioning memory it seems, the tests were working then... |
Sorry my bad I meant example not test. I did not try to run the tests, I only tried with "full_rsa_connection_with_application_data.py" example and it failed. |
@jurgonaut I updated my branch, fixed that as far as I could (was running fine for me) and a couple of other examples. some are failing but probably because I was using a self signed test server. |
Now it works, that you a lot for fixing it and for your fast response. |
I cloned @kalidasya update, but when running:
I get the following error:
I don't see anyone else above having this problem. Did I install something incorrectly? Using scapy 2.4.3, Python 3.6.9. |
@tkoch96 scapy has to be >=2.2.0,<2.3.3 (maybe just 2.3.*) at least thats what I see in the Pipfile |
Have you considered porting this to python3 and scapy-python3 (http://github.com/phaethon/scapy)?
I am ready to contribute 50% of the effort.
The text was updated successfully, but these errors were encountered: