def medusa(): destroy_window() py3 = True medusa_init() import menu menu.vp_start_gui() sys.stdout.flush()
def install(): destroy_window() #os.system('./GUI/install_requisites/instalation_progress_GUI.py ') iniciarInstalacion() import menu menu.vp_start_gui() sys.stdout.flush()
def john(): destroy_window() py3 = True john_init() import menu menu.vp_start_gui() sys.stdout.flush()
def crunch(): destroy_window() py3 = True crunch_init() import menu menu.vp_start_gui() sys.stdout.flush()
def callnmap(): destroy_window() nmap_init() import menu menu.vp_start_gui() sys.stdout.flush()
global w, top_level, root w = gui top_level = top root = top paco = os.system( 'apt list --installed | grep -e crunch/ -e john/ -e medusa/ -e nmap/ | wc -l > ' + os.getcwd() + '/logs/countPrograms.log') f = open(os.getcwd() + "/logs/countPrograms.log", "r") r = f.read() print(r.rstrip()) if (r.rstrip() == "4"): w.Butcamp.configure(state="disabled") else: w.Butcamp.configure(state="normal") w.Button1.configure(state="disabled") w.Button2.configure(state="disabled") w.Button3.configure(state="disabled") w.Button6.configure(state="disabled") def destroy_window(): # Function which closes the window. global top_level top_level.destroy() top_level = None if __name__ == '__main__': import menu menu.vp_start_gui()
def radio_a(): print('menu_support.radio_a') sys.stdout.flush() def radio_b(): print('menu_support.radio_b') sys.stdout.flush() def save(): print('menu_support.save') sys.stdout.flush() def init(top, gui, *args, **kwargs): global w, top_level, root w = gui top_level = top root = top def destroy_window(): # Function which closes the window. global top_level top_level.destroy() top_level = None if __name__ == '__main__': import menu menu.vp_start_gui()