Upload files to "/"

This commit is contained in:
2024-11-24 18:10:22 -05:00
parent 056205178c
commit b4148c95bb
2 changed files with 20 additions and 14 deletions

22
dco.py
View File

@ -1,19 +1,13 @@
from Modules.Imports.all_imports import *
from Protocols.menu import MENU_OPTIONS as BASE_MENU_OPTIONS
from TTPs.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()
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
display_menu(MENU_OPTIONS) # Display the dynamic menu