From 63a35d0452c7f6e69109406d5dca36d726628acc Mon Sep 17 00:00:00 2001 From: Matthew Iverson Date: Sun, 24 Nov 2024 10:52:49 -0500 Subject: [PATCH] Upload files to "/" --- ctf.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ctf.py diff --git a/ctf.py b/ctf.py new file mode 100644 index 0000000..ea31ceb --- /dev/null +++ b/ctf.py @@ -0,0 +1,19 @@ +from Modules.Imports.all_imports import * +from Protocols.menu import MENU_OPTIONS as BASE_MENU_OPTIONS + +if __name__ == "__main__": + box_name = get_box_name() + target_ip = get_target_ip() # Ask for the IP before anything else + if target_ip: # Ensure the IP is valid before proceeding + OPEN_PORTS = scan_ports(target_ip, box_name) # Pass the valid IP and capture open ports + + # Update MENU_OPTIONS to pass necessary arguments + MENU_OPTIONS = { + key: { + **value, + "submenu": value["submenu"], # Pass the actual function + } + for key, value in BASE_MENU_OPTIONS.items() + } + + display_menu(MENU_OPTIONS, OPEN_PORTS, target_ip) # Display the dynamic menu