From 292a5a611e641c91efb67b33534ad0e3e13bc7b8 Mon Sep 17 00:00:00 2001 From: DmitryMurashov Date: Sun, 4 Sep 2022 16:45:16 +0300 Subject: [PATCH 1/2] [:.gitignore] Build --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..291678c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +__pycache__/ +lib/ +venv/ From 9ccb1d5e660ec9c33f53eb0137287d59f84d1105 Mon Sep 17 00:00:00 2001 From: DmitryMurashov Date: Sun, 4 Sep 2022 17:19:29 +0300 Subject: [PATCH 2/2] [lib:TunnaClient] Bug | Byte-wise comparison --- lib/TunnaClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TunnaClient.py b/lib/TunnaClient.py index c350526..3c04320 100644 --- a/lib/TunnaClient.py +++ b/lib/TunnaClient.py @@ -336,7 +336,7 @@ def Threaded_request(self, remote_port, remote_ip=None, socks=True): # send options resp = self.HTTPreq(url) - if (resp[:4] == '[OK]'): # If ok is received (non-php webshell): Thread not needed + if (resp[:4] == b'[OK]'): # If ok is received (non-php webshell): Thread not needed print('[-] Keep-alive thread not required') # if ok/proxy is not received something went wrong (if nothing is received: it's a PHP webshell) else: