diff --git a/src/core/tunnel/handler.py b/src/core/tunnel/handler.py index c290b498..d831b184 100644 --- a/src/core/tunnel/handler.py +++ b/src/core/tunnel/handler.py @@ -43,17 +43,18 @@ def send(self, s): global_raw_requests.append(s) super().send(s) -class CustomHTTPSConnection(http.client.HTTPSConnection): - def send(self, s): - global global_raw_request - global_raw_requests.append(s) - super().send(s) +# TODO: intercept trafic on HTTPS requests too +# class CustomHTTPSConnection(http.client.HTTPSConnection): +# def send(self, s): +# global global_raw_request +# global_raw_requests.append(s) +# super().send(s) http.client.__HTTPConnection__ = http.client.HTTPConnection -http.client.__HTTPSConnection__ = http.client.HTTPSConnection +# http.client.__HTTPSConnection__ = http.client.HTTPSConnection http.client.HTTPConnection = CustomHTTPConnection -http.client.HTTPSConnection = CustomHTTPSConnection +# http.client.HTTPSConnection = CustomHTTPSConnection ############################################################################## diff --git a/src/ui/interface.py b/src/ui/interface.py index ab3aa3f5..5e01d277 100644 --- a/src/ui/interface.py +++ b/src/ui/interface.py @@ -212,6 +212,7 @@ def do_corectl(self, argv): remote command execution. NOTE: http requests are NOT saved in session files + WARNING: don't works with HTTPS requests (see issue #29 on github) """ argv.append('')