From 20dbeb2f38684c65ff0a4b99012c161295708e88 Mon Sep 17 00:00:00 2001 From: AL-LCL Date: Fri, 19 May 2023 11:01:49 +0200 Subject: NeoRAT --- foreign/parse/error_exception_handling.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 foreign/parse/error_exception_handling.py (limited to 'foreign/parse/error_exception_handling.py') diff --git a/foreign/parse/error_exception_handling.py b/foreign/parse/error_exception_handling.py new file mode 100644 index 0000000..27080a9 --- /dev/null +++ b/foreign/parse/error_exception_handling.py @@ -0,0 +1,11 @@ +from binary.data_handling.send_data import * +from foreign.global_state import * + + +def error_exception_handling(func): + def func_wrapper(conn, data): + try: + func(conn, data) + except Exception as err: + send_data(conn, {'message': f'Error: {err}\nPlease validate your input & try again', 'text_mode': 'danger'}, (state['settings']['encryption'], state['settings']['encoding'], state['settings']['headersize'])) + return func_wrapper \ No newline at end of file -- cgit v1.2.3