hatching / httpreplay

Replay HTTP and HTTPS requests from a PCAP based on TLS Master Secrets.
Other
95 stars 35 forks source link

Python3.6 support + "Client Random" + "br" decompression support #25

Closed LetMeR00t closed 2 years ago

LetMeR00t commented 5 years ago

Fix issue for https://github.com/hatching/httpreplay/issues/19 and https://github.com/hatching/httpreplay/issues/23

Tested with both pytest versions, all tests passed (except one, but already in xfail state)

blshkv commented 5 years ago

"All checks have failed" ?

LetMeR00t commented 5 years ago

@blshkv , if you check the details, you will see that pip2 is trying to recover mitmproxy 4.0.4 which doesn't exist in his reference... You have to install it using pip3

LetMeR00t commented 5 years ago

@jbremer @RicoVZ FYA

blshkv commented 5 years ago

The error basically means that you have to drop python2 because mitmproxy no longer supports it. The patch is not complete

LetMeR00t commented 5 years ago

@blshkv , well I agree with you but once you installed mitmproxy using pip3 and then compile the source code for httpreplay using python2 (no issue as mitmproxy is not mandatory), you have no issue to use mitmproxy in 4.0.4 as all tests passed (and in the code, you can see that i'm using the mitmproxy 4.0.4 source code which is well interpreted in python2) And well, we can drop python2.7 if needed as the issue is mitmproxy itself in 0.18.2

LetMeR00t commented 5 years ago

Hi @blshkv, @jbremer , @RicoVZ Sorry for the last commits, I never used these tests before but it's very good when you understand how it works :) Now the patch is okay, only python3.6 in the tests, see if we need to keep Python2.7 ? Regards

blshkv commented 5 years ago

Python2 will be out of support next year, so don't waste your time. You can create a new branch if you really want a smooth transition but i would not care

LetMeR00t commented 5 years ago

After reviewing my code again, I think I will need some more changes before you can review officially, I will do this asap. (Code is working but results of functions are returning bytes when they could return strings ...)

LetMeR00t commented 5 years ago

My repository was updated with your's today.