commit 63a35d0452c7f6e69109406d5dca36d726628acc Author: Matthew Iverson Date: Sun Nov 24 10:52:49 2024 -0500 Upload files to "/" 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