Пример #1
0
def main():
    try:
        line_1 = "\033[1;4m" + intname + "\033[1;24m > "
        terminal = raw_input(line_1).lower()
        logging.info(terminal)
        time.sleep(0.5)
        if terminal[0:3] =='use':
            if terminal[4:] == terminal[4:]:
                os.system('python plugins/%s.plugin' % (terminal[4:]))
                main()
            #elif terminal[4:32] =='example':
                #example()
                #main()
        if terminal[0:6] == 'search':
            print "\033[1;94m[?]\033[1;m Searching %s" % (terminal[7:])
            time.sleep(1)
            names = addrs
            found = []
            for name in names:
                if terminal[7:] in name:
                    found.append(name)
            print found
            main()
        if terminal[0:3] =='gen':
            if terminal[4:28] =='exe':
                exe_gen()
                main()
            elif terminal[4:26] =='macho':
                macho_gen()
                main()
            elif terminal[4:23] =='elf':
                elf_gen()
                main()
            elif terminal[4:21] =='apk':
                apk_gen()
                main()
        elif terminal[0:13] == 'show payloads':
            modules.payloads()
            main()
        elif terminal[0:14] == 'show exploits':
            modules.exploits()
            main()
        elif terminal[0:94] == 'show utilities':
            modules.utilities()
            main()
        elif terminal[0:15] == 'show others':
            modules.others()
            main()
        elif terminal[0:17] == 'show all':
            modules.all()
            main()
        elif terminal[0:4] =='help':
            help.help()
            main()
        elif terminal[0:41] =='plugin':
            os.system('python plugins/hello.plugin')
            main()
        elif terminal[0:7] == 'show':
            showlist()
            main()
        elif terminal[0:2] =='?':
            help.help()
            main()
        elif terminal[0:5] =='ipnet':
            os.system('wine cmd.exe /c ipconfig')
            main()
        elif terminal[0:8] =='clean':
            os.system("echo 'Cleaning evidence ;)'; rm storage/logs/*")
            main()
        elif terminal[0:5] =='clear':
            os.system('clear')
            main()
        elif terminal[0:6] =='banner':
            os.system('clear')
            postit()
 	    menu.main_info()
            main()
        elif terminal[0:9] =='exit':
            exit()
        elif terminal[0:0] =='':
            os.system(terminal[0:])
            main()
        else:
            print "Command not found:", terminal
            main()
    except(KeyboardInterrupt):
        print "\n"
        return main()
Пример #2
0
def main():
    try:
        line_1 = "\033[1;4m" + intname + "\033[1;24m > "
        terminal = raw_input(line_1)
        logging.info(terminal)
        time.sleep(0.5)
        if terminal[0:3] == 'use':
            if terminal[4:] == terminal[4:]:
                Exploit_check = "plugins/Exploits/%s.plugin" % (terminal[4:])
                Payload_check = "plugins/Payloads/%s.plugin" % (terminal[4:])
                Utilities_check = "plugins/Utilities/%s.plugin" % (
                    terminal[4:])
                if os.path.exists(Exploit_check) == True:
                    os.system("python plugins/Exploits/%s.plugin" %
                              (terminal[4:]))
                    main()
                elif os.path.exists(Payload_check) == True:
                    os.system("python plugins/Payloads/%s.plugin" %
                              (terminal[4:]))
                    main()
                elif os.path.exists(Utilities_check) == True:
                    os.system("python plugins/Utilities/%s.plugin" %
                              (terminal[4:]))
                    main()
                else:
                    print "[?] %s: could not be found" % (terminal[4:])
            #elif terminal[4:32] =='example':
            #example()
            #main()
        if terminal[0:6] == 'search':
            print "\033[1;94m[?]\033[1;m Searching %s" % (terminal[7:])
            time.sleep(1)
            names = addrs
            found = []
            for name in names:
                if terminal[7:] in name:
                    found.append(name)
            print found
            main()
        elif terminal[0:21] == "retarget":
            retarget.edit()
            main()
        elif terminal[0:17] == 'show All':
            modules.all()
            main()
        elif terminal[0:17] == 'show Exploits':
            modules.exploits()
            main()
        elif terminal[0:17] == 'show Utilities':
            modules.utilities()
            main()
        elif terminal[0:17] == 'show Payloads':
            modules.payloads()
            main()
        elif terminal[0:4] == 'help':
            help.help()
            main()
        elif terminal[0:41] == 'plugin':
            os.system('python plugins/hello.plugin')
            main()
        elif terminal[0:7] == 'show':
            showlist()
            main()
        elif terminal[0:2] == '?':
            help.help()
            main()
        elif terminal[0:5] == 'ipnet':
            os.system('wine cmd.exe /c ipconfig')
            main()
        elif terminal[0:8] == 'clean':
            os.system("echo 'Cleaning evidence ;)'; rm -rf storage/logs/*")
            main()
        elif terminal[0:5] == 'clear':
            os.system('clear')
            main()
        elif terminal[0:6] == 'banner':
            os.system('clear')
            postit()
            menu.main_info()
            main()
        elif terminal[0:9] == 'exit':
            exit()
        elif terminal[0:1] == '!':
            os.system(terminal[1:])
            main()
        else:
            print "Command not found:", terminal
            main()
    except (KeyboardInterrupt):
        print "\n"
        return main()
Пример #3
0
def main():
    try:
        line_1 = "\033[1;4m" + intname + "\033[1;24m > "
        terminal = raw_input(line_1)
        logging.info(terminal)
        time.sleep(0.5)
        if terminal[0:3] == 'use':
            if terminal[4:27] == 'Doublepulsar':
                Doublepulsar()
                main()
            elif terminal[4:20] == 'Eternalblue':
                Eternalblue()
                main()
            elif terminal[4:31] == 'Kodi':
                Kodi()
                main()
            elif terminal[4:36] == 'jailpwn':
                jailpwn()
                main()
            elif terminal[4:42] == 'Scan':
                scan()
                main()
            elif terminal[4:46] == 'Tresspass':
                tress()
                main()
            elif terminal[4:49] == 'Handler':
                os.system('python modules/handler.py')
                main()
            elif terminal[4:55] == 'Dnsspoof':
                dnsspoof()
                main()
            elif terminal[4:59] == 'Credswipe':
                os.system('bash modules/credswipe.sh')
            elif terminal[4:61] == 'Ftpbrute':
                os.system('python plugins/ftpbrute.plugin')
            elif terminal[4:62] == 'Wifijammer':
                os.system('python plugins/wifijam.plugin')
            #elif terminal[4:32] =='example':
            #example()
            #main()
        if terminal[0:6] == 'search':
            print "\033[1;94m[?]\033[1;m Searching %s" % (terminal[7:])
            time.sleep(1)
            names = addrs
            found = []
            for name in names:
                if terminal[7:] in name:
                    found.append(name)
            print found
            main()
        if terminal[0:3] == 'gen':
            if terminal[4:28] == 'exe':
                exe_gen()
                main()
            elif terminal[4:26] == 'macho':
                macho_gen()
                main()
            elif terminal[4:23] == 'elf':
                elf_gen()
                main()
            elif terminal[4:21] == 'apk':
                apk_gen()
                main()
        elif terminal[0:13] == 'show payloads':
            modules.payloads()
            main()
        elif terminal[0:14] == 'show exploits':
            modules.exploits()
            main()
        elif terminal[0:15] == 'show others':
            modules.others()
            main()
        elif terminal[0:17] == 'show all':
            modules.all()
            main()
        elif terminal[0:4] == 'help':
            help.help()
            main()
        elif terminal[0:45] == 'Scan':
            scan()
            main()
        elif terminal[0:41] == 'plugin':
            os.system('python plugins/hello.plugin')
            main()
        elif terminal[0:7] == 'show':
            showlist()
            main()
        elif terminal[0:2] == '?':
            help.help()
            main()
        elif terminal[0:5] == 'ipnet':
            os.system('wine cmd.exe /c ipconfig')
            main()
        elif terminal[0:5] == 'clear':
            os.system('clear')
            main()
        elif terminal[0:6] == 'banner':
            os.system('clear')
            postit()
            menu.main_info()
            main()
        elif terminal[0:9] == 'exit':
            exit()
        elif terminal[0:0] == '':
            os.system(terminal[0:])
            main()
        else:
            print "Command not found:", terminal
            main()
    except (KeyboardInterrupt):
        print "\n"
        return main()