From 20dbeb2f38684c65ff0a4b99012c161295708e88 Mon Sep 17 00:00:00 2001 From: AL-LCL Date: Fri, 19 May 2023 11:01:49 +0200 Subject: NeoRAT --- domestic/shell/delete.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 domestic/shell/delete.py (limited to 'domestic/shell/delete.py') diff --git a/domestic/shell/delete.py b/domestic/shell/delete.py new file mode 100644 index 0000000..16a3e98 --- /dev/null +++ b/domestic/shell/delete.py @@ -0,0 +1,13 @@ +from domestic.parse.error_exception_handling import * +from domestic.utility.validate_dict_key import * +from domestic.utility.delete_client import * + + +@error_exception_handling +def delete(message): + index = validate_dict_key(message, 'index') + + if index: + delete_client(int(index)) + else: + raise Exception('Error message') \ No newline at end of file -- cgit v1.2.3