From e61c5c486c4dbc23db87a9a158d0b793ca812abe Mon Sep 17 00:00:00 2001 From: Hulto <7121375+hulto@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:21:57 -0400 Subject: [PATCH 1/2] Hot patch --- tavern/tomes/cat/main.eldritch | 1 + 1 file changed, 1 insertion(+) diff --git a/tavern/tomes/cat/main.eldritch b/tavern/tomes/cat/main.eldritch index d7f6be57d..e0d696d76 100644 --- a/tavern/tomes/cat/main.eldritch +++ b/tavern/tomes/cat/main.eldritch @@ -7,4 +7,5 @@ def cat(path): return +sleep(5) cat(input_params['path']) From 4185471a2f0eebd3d655a3be2a4168ffd9c28abf Mon Sep 17 00:00:00 2001 From: Hulto <7121375+hulto@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:17:16 -0400 Subject: [PATCH 2/2] Add sleep --- tavern/tomes/arp_scan/main.eldritch | 1 + tavern/tomes/file_list/main.eldritch | 1 + tavern/tomes/file_mkdir/main.eldritch | 2 +- tavern/tomes/file_tree/main.eldritch | 2 ++ tavern/tomes/file_write/main.eldritch | 1 + tavern/tomes/get_env/main.eldritch | 2 ++ tavern/tomes/get_net_info/main.eldritch | 2 ++ tavern/tomes/get_registry/main.eldritch | 2 ++ tavern/tomes/kill_process/main.eldritch | 1 + tavern/tomes/netstat/main.eldritch | 2 ++ tavern/tomes/process_info/main.eldritch | 1 + tavern/tomes/process_list/main.eldritch | 1 + tavern/tomes/process_tree/main.eldritch | 2 ++ tavern/tomes/remove_file/main.eldritch | 2 ++ tavern/tomes/shell_cmd/main.eldritch | 1 + 15 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tavern/tomes/arp_scan/main.eldritch b/tavern/tomes/arp_scan/main.eldritch index 0c8e4177f..da6f34529 100644 --- a/tavern/tomes/arp_scan/main.eldritch +++ b/tavern/tomes/arp_scan/main.eldritch @@ -6,4 +6,5 @@ def arp_scan(): res = pivot.arp_scan(all_ips) print(res) +time.sleep(1) arp_scan() diff --git a/tavern/tomes/file_list/main.eldritch b/tavern/tomes/file_list/main.eldritch index 2e696cc77..c6014b830 100644 --- a/tavern/tomes/file_list/main.eldritch +++ b/tavern/tomes/file_list/main.eldritch @@ -26,4 +26,5 @@ def file_list(path): else: eprint(f"No files found at '{path}'") +time.sleep(1) file_list(input_params['path']) diff --git a/tavern/tomes/file_mkdir/main.eldritch b/tavern/tomes/file_mkdir/main.eldritch index aff5bc6bd..c917f9688 100644 --- a/tavern/tomes/file_mkdir/main.eldritch +++ b/tavern/tomes/file_mkdir/main.eldritch @@ -15,5 +15,5 @@ def main(): return file.mkdir(new_dir, parent) - +time.sleep(1) main() diff --git a/tavern/tomes/file_tree/main.eldritch b/tavern/tomes/file_tree/main.eldritch index 32306b8c8..93fe342bc 100644 --- a/tavern/tomes/file_tree/main.eldritch +++ b/tavern/tomes/file_tree/main.eldritch @@ -29,6 +29,8 @@ def main(path): elif file.is_file(path): eprint(f"Error: Invalid Path ({path})") +time.sleep(1) + input_params['path']="/" main(input_params['path']) print("") diff --git a/tavern/tomes/file_write/main.eldritch b/tavern/tomes/file_write/main.eldritch index a010e1246..cf0a8937f 100644 --- a/tavern/tomes/file_write/main.eldritch +++ b/tavern/tomes/file_write/main.eldritch @@ -22,5 +22,6 @@ def main(): # Print a Success! print(f"[INFO] The file '{new_file_path}' was successfully written!") +time.sleep(1) main() diff --git a/tavern/tomes/get_env/main.eldritch b/tavern/tomes/get_env/main.eldritch index e61ccf05b..173da049e 100644 --- a/tavern/tomes/get_env/main.eldritch +++ b/tavern/tomes/get_env/main.eldritch @@ -5,4 +5,6 @@ def get_env(): return +time.sleep(1) + get_env() diff --git a/tavern/tomes/get_net_info/main.eldritch b/tavern/tomes/get_net_info/main.eldritch index e2e17fd6b..9da9d2355 100644 --- a/tavern/tomes/get_net_info/main.eldritch +++ b/tavern/tomes/get_net_info/main.eldritch @@ -23,4 +23,6 @@ def ifconfig(): rows.append([interface['name'], ip, interface['mac']]) print_table(rows) +time.sleep(1) + ifconfig() diff --git a/tavern/tomes/get_registry/main.eldritch b/tavern/tomes/get_registry/main.eldritch index 607dcf498..28300a9ef 100644 --- a/tavern/tomes/get_registry/main.eldritch +++ b/tavern/tomes/get_registry/main.eldritch @@ -13,5 +13,7 @@ def get_registry(hive, path): pk = pad_key(k,max_len) print(f"{pk} : {v}") +time.sleep(1) + get_registry(input_params['hive'], input_params['path']) print() diff --git a/tavern/tomes/kill_process/main.eldritch b/tavern/tomes/kill_process/main.eldritch index f516e4f1a..977ac4dff 100644 --- a/tavern/tomes/kill_process/main.eldritch +++ b/tavern/tomes/kill_process/main.eldritch @@ -1,2 +1,3 @@ process.kill(int(input_params['pid'])) +time.sleep(1) print("") diff --git a/tavern/tomes/netstat/main.eldritch b/tavern/tomes/netstat/main.eldritch index b7a4bc047..9115d8172 100644 --- a/tavern/tomes/netstat/main.eldritch +++ b/tavern/tomes/netstat/main.eldritch @@ -45,4 +45,6 @@ def netstat(): rows.append(fields) print_table(rows) +time.sleep(1) + netstat() diff --git a/tavern/tomes/process_info/main.eldritch b/tavern/tomes/process_info/main.eldritch index 63c717def..c1dc08678 100644 --- a/tavern/tomes/process_info/main.eldritch +++ b/tavern/tomes/process_info/main.eldritch @@ -12,5 +12,6 @@ def process_info(pid): else: print("{}={}".format(key, value)) +time.sleep(1) process_info(int(input_params['pid'])) print("") diff --git a/tavern/tomes/process_list/main.eldritch b/tavern/tomes/process_list/main.eldritch index 202da29e4..63bbb11fc 100644 --- a/tavern/tomes/process_list/main.eldritch +++ b/tavern/tomes/process_list/main.eldritch @@ -38,5 +38,6 @@ def process_list(cmd_substring): print_table(rows) +time.sleep(1) process_list(input_params['cmd_substring']) print("") diff --git a/tavern/tomes/process_tree/main.eldritch b/tavern/tomes/process_tree/main.eldritch index 70c708d79..14ae296f9 100644 --- a/tavern/tomes/process_tree/main.eldritch +++ b/tavern/tomes/process_tree/main.eldritch @@ -72,5 +72,7 @@ def process_tree(cmd_substring): for pid in process_tree: depth_first_search(visited, process_tree, pid, 0, process_list_dictionary) +time.sleep(1) + process_tree(input_params['cmd_substring']) print("") diff --git a/tavern/tomes/remove_file/main.eldritch b/tavern/tomes/remove_file/main.eldritch index b77551b2c..1a3e427a5 100644 --- a/tavern/tomes/remove_file/main.eldritch +++ b/tavern/tomes/remove_file/main.eldritch @@ -1,2 +1,4 @@ file.remove(input_params['path']) print("") + +time.sleep(1) diff --git a/tavern/tomes/shell_cmd/main.eldritch b/tavern/tomes/shell_cmd/main.eldritch index c817452f0..332f84d61 100644 --- a/tavern/tomes/shell_cmd/main.eldritch +++ b/tavern/tomes/shell_cmd/main.eldritch @@ -4,5 +4,6 @@ def shell_cmd(cmd): print("stderr:", res['stderr']) print("status:", res['status']) +time.sleep(1) shell_cmd(input_params['cmd']) print("")