Esempio n. 1
0
def main():

    try:
	line = mycolor.color.blue + mycolor.color.underl + 'ksf' + mycolor.color.end
	line += ' > '
	terminal = raw_input(line)
	if terminal == 'banner':
	    header.main_header()
	    menu.main_info()
	    main()
	elif terminal == 'exit':
	    exit(0)
	elif terminal == 'help':
	    help.help()
	    main()
	elif terminal[0:2] == 'os':
	    os.system(terminal[3:])
	    main()
	elif terminal[0:3] == 'use':
	    if terminal[4:20] == 'web/dir_scan':
		dirbb.dirscan()
		main()

	else:
	    print("wrong command!using help")
	    main()
    except KeyboardInterrupt:
	print("[*]Tring to exit...")
Esempio n. 2
0
def start():
    header.main_header()
    menu.main_info()
    main()
Esempio n. 3
0
def start():
    menu.main_info()
    main()
Esempio n. 4
0
    try:
	line = mycolor.color.blue + mycolor.color.underl + 'ksf' + mycolor.color.end
	line += ' > '
	terminal = raw_input(line)
	if terminal == 'banner':
	    header.main_header()
	    menu.main_info()
	    main()
	elif terminal == 'exit':
	    exit(0)
	elif terminal == 'help':
	    help.help()
	    main()
	elif terminal[0:2] == 'os':
	    os.system(terminal[3:])
	    main()
	elif terminal[0:3] == 'use':
	    if terminal[4:20] == 'web/dir_scan':
		dirbb.dirscan()
		main()

	else:
	    print("wrong command!using help")
	    main()
    except KeyboardInterrupt:
	print("[*]Tring to exit...")

header.main_header()
menu.main_info()
main()
Esempio n. 5
0
def start():
    ansicolor.enable()
    header.main_header()
    menu.main_info()
    main()
Esempio n. 6
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()
Esempio n. 7
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()
Esempio n. 8
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(PLUGIN_EXEC + terminal[4:] + PLUGIN_END)
                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()
        elif terminal[0:21] == "retarget":
            retarget.edit()
            main()
        elif terminal[0:17] == 'show plugins':
            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:1] == '!':
            os.system(terminal[1:])
            main()
        else:
            print "Command not found:", terminal
            main()
    except (KeyboardInterrupt):
        print "\n"
        return main()
Esempio n. 9
0
def exploit():
    header.main_header()
    menu.main_info()
    main()
Esempio n. 10
0
def main():

    try:
        line = color.blue + color.underl + color.bold + 'xsf' + color.end
        line += ' > '
        line += color.yellow

        terminal = raw_input(line)

        if terminal == 'banner':
            header.main_header()
            menu.main_info()
            main()

        elif terminal == 'exit':
            exit(0)

        elif terminal == 'help':
            help.help()
            main()

        elif terminal[0:1] == '!':
            os.system(terminal[1:])
            main()

        elif terminal[0:12] == 'show modules':
            modules_database.show_modules()
            main()
                
        elif terminal[0:3] == 'use':
            if terminal[4:20] == 'info/dir_scan':
                dirbb.dirscan()
                main()
            elif terminal[4:30] == 'info/baidu':
                baidu.search()
                main()
            elif terminal[4:15] == 'tools/12306':
                query.MyTools().query_12306()
                main()
            elif terminal[4:12] == 'tools/ip':
                query.MyTools().loc_ip()
                main()  
            elif terminal[4:11] == 'exp/sms':
                sms.sms_attack()
                main()
            elif terminal[4:30] == 'cms/nanfang_sqli_newstype':
                nanfang.sql_search()
                main()
            elif terminal[4:30] == 'exp/s2045':
                S2045.exp()
                main()
            elif terminal[4:12]  == 'burp/web':
                burp.burp()
                main()
            elif terminal[4:30] =='misc/msf':
                msf.gen()
                main()
            else:
                print("[-] Not modules")
                main()
            main()

        elif terminal == '':
            main()

        else:
            print("[-] Not Command found")
            main()
    except KeyboardInterrupt:
        print("[*]Tring to exit...")
Esempio n. 11
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()