Ejemplo n.º 1
0
def medusa():
    destroy_window()
    py3 = True
    medusa_init()
    import menu
    menu.vp_start_gui()
    sys.stdout.flush()
Ejemplo n.º 2
0
def install():
    destroy_window()
    #os.system('./GUI/install_requisites/instalation_progress_GUI.py ')
    iniciarInstalacion()
    import menu
    menu.vp_start_gui()
    sys.stdout.flush()
Ejemplo n.º 3
0
def john():
    destroy_window()
    py3 = True
    john_init()
    import menu
    menu.vp_start_gui()
    sys.stdout.flush()
Ejemplo n.º 4
0
def crunch():
    destroy_window()
    py3 = True
    crunch_init()
    import menu
    menu.vp_start_gui()
    sys.stdout.flush()
Ejemplo n.º 5
0
def callnmap():
    destroy_window()
    nmap_init()
    import menu
    menu.vp_start_gui()
    sys.stdout.flush()
Ejemplo n.º 6
0
    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()