예제 #1
0
def menu(db, cursor):
    try:
        print("---Selamat Datang Di Program CRUD---\n"
              "1. INSERT Data\n"
              "2. READ Data\n"
              "3. UPDATE Data\n"
              "4. DELETE Data\n"
              "5. SEARCH Data\n"
              "6. Update Data Admin\n"
              "Tekan Tombol CTRL-C Untuk Keluar Program")
        pil = input("Masukkan Pilihan Anda: ")
        if pil in ('1', '2', '3', '4', '5', '6'):
            if pil == '1':
                ins.insert(db, cursor)
            elif pil == '2':
                rd.read(db, cursor)
            elif pil == '3':
                up.update(db, cursor)
            elif pil == '4':
                delt.delete(db, cursor)
            elif pil == '5':
                sr.search(db, cursor)
            elif pil == '6':
                system('python update-admin.py')
            else:
                print("Input Salah")
        else:
            print("Pilihan Tidak Ada")
    except KeyboardInterrupt:
        print("\nTerima Kasih :)\nExiting")
        time.sleep(0.3)
        cs.sys.exit()
예제 #2
0
	def update(self, args):
		if update.check_for_updates() == True:
			try:
				update.update()
			except PermissionError:
				printError("Permission denied!")

			except Exception as error:
				printError(str(error))
예제 #3
0
	def update(self, args):
		if update.check_for_updates() == True:
			try:
				update.update()
			except PermissionError:
				printError("permission denied")

			except Exception as error:
				printError(str(error))
예제 #4
0
def main():
    try:
        line_1 = wcolors.color.UNDERL + wcolors.color.BLUE + "GrimTurn" + wcolors.color.ENDC
        line_1 += " > "
        terminal = input(line_1)
        if terminal[0:3] == 'use':
            if terminal[4:15] == 'host/casper':
                casper.casper()
                main()
            else:
                print("Wrong Command =>", terminal)
                main()
        elif terminal[0:12] == 'show modules':
            modules_database.modules_database()
            main()
        elif terminal[0:4] == 'help':
            help.help()
            main()
        elif terminal[0:2] == 'os':
            os.system(terminal[3:])
            main()
        elif terminal[0:7] == 'upgrade':
            upgrade.upgrade()
            main()
        elif terminal[0:6] == 'update':
            update.update()
        elif terminal[0:5] == 'about':
            about.about()
            main()
        elif terminal[0:13] == 'generate_name':
            print(random_name.random_name())
            main()
        elif terminal[0:11] == 'trusted_mac':
            print(trusted_mac.trusted_mac())
            main()
        elif terminal[0:4] == 'exit':
            print(wcolors.color.YELLOW +
                  "[*] Thank You For Using GrimTurn =)" + wcolors.color.ENDC)
            exit()
        else:
            print("Wrong Command =>", terminal)
            main()
    except (KeyboardInterrupt):
        print(wcolors.color.RED +
              "\n[*] (Ctrl + C ) Detected, Trying To Exit ..." +
              wcolors.color.ENDC)
        print(wcolors.color.YELLOW + "[*] Thank You For Using GrimTurn =)" +
              wcolors.color.ENDC)
예제 #5
0
파일: sensor.py 프로젝트: crudbug/maltrail
    def update_timer():
        _ = update(server=config.UPDATE_SERVER)

        if _:
            trails.clear()
            trails.update(_)
        elif not trails:
            trails.update(load_trails())

        thread = threading.Timer(config.UPDATE_PERIOD, update_timer)
        thread.daemon = True
        thread.start()
예제 #6
0
    def update_timer():
        _ = update(server=config.UPDATE_SERVER)

        if _:
            trails.clear()
            trails.update(_)
        elif not trails:
            trails.update(load_trails())

        thread = threading.Timer(config.UPDATE_PERIOD, update_timer)
        thread.daemon = True
        thread.start()
예제 #7
0
def main():
    try:
        line_1 = wcolors.color.UNDERL + wcolors.color.BLUE + "wsf" + wcolors.color.ENDC
        line_1 += " > "
        terminal = raw_input(line_1)
        if terminal[0:3] == 'use':
            if terminal[4:20] == 'web/apache_users':
                apache_users.apache_users()
                main()
            if terminal[4:27] == 'web/cloudflare_resolver':
                cloudflare_resolver.cloudflare_resolver()
                main()
            elif terminal[4:20] == 'network/arp_dos':
                arp_dos.arp_dos()
                main()
            elif terminal[4:20] == 'exploit/autopwn':
                autopwn.autopwn()
                main()
            elif terminal[4:27] == 'exploit/browser_autopwn':
                brow_autopwn.brow_autopwn()
                main()
            elif terminal[4:19] == 'web/dir_scanner':
                directory_scanner.directory_scanner()
                main()
            elif terminal[4:12] == 'web/wmap':
                wmap.wmap()
                main()
            elif terminal[4:11] == 'web/pma':
                phpmyadmin.phpmyadmin()
                main()
            elif terminal[4:23] == 'exploit/java_applet':
                java_applet.java_applet()
                main()
            elif terminal[4:16] == 'network/mfod':
                mfod.mfod()
                main()
            elif terminal[4:16] == 'network/mitm':
                mitm.mitm()
                main()
            elif terminal[4:17] == 'network/mlitm':
                mlitm.mlitm()
                main()
            elif terminal[4:21] == 'network/webkiller':
                webkiller.webkiller()
                main()
            elif terminal[4:24] == 'network/arp_poisoner':
                arp_poisoner.arp_poisoner()
                main()
            elif terminal[4:22] == 'network/fakeupdate':
                fakeupdate.fakeupdate()
                main()
            elif terminal[4:20] == 'wifi/wifi_jammer':
                wifi_jammer.wifi_jammer()
                main()
            elif terminal[4:17] == 'wifi/wifi_dos':
                wifi_dos.wifi_dos()
                main()
            elif terminal[4:22] == 'wifi/wifi_honeypot':
                wifi_honeypot.wifi_honeypot()
                main()
            elif terminal[4:20] == 'wifi/mass_deauth':
                mass_deauth.mass_deauth()
                main()
            elif terminal[4:27] == 'bluetooth/bluetooth_pod':
                bluetooth_pod.bluetooth_pod()
                main()
        elif terminal[0:12] == 'show modules':
            modules_database.modules_database()
            main()
        elif terminal[0:4] == 'help':
            help.help()
            main()
        elif terminal[0:2] == 'os':
            os.system(terminal[3:])
            main()
        elif terminal[0:7] == 'upgrade':
            upgrade.upgrade()
            main()
        elif terminal[0:6] == 'update':
            update.update()
        elif terminal[0:5] == 'about':
            about.about()
            main()
        elif terminal[0:4] == 'exit':
            exit()
        else:
            print "Wrong Command => ", terminal
            main()
    except (KeyboardInterrupt):
        print(wcolors.color.RED +
              "\n[*] (Ctrl + C ) Detected, Trying To Exit ..." +
              wcolors.color.ENDC)
        print(wcolors.color.YELLOW +
              "[*] Thank You For Using Websploit Framework =)" +
              wcolors.color.ENDC)
예제 #8
0
파일: server.py 프로젝트: bornio/maltrail
    def update_timer():
        update()

        thread = threading.Timer(config.UPDATE_PERIOD, update_timer)
        thread.daemon = True
        thread.start()
예제 #9
0
def main():
    try:
        line_1 = wcolors.color.UNDERL + wcolors.color.BLUE + "wsf" + wcolors.color.ENDC
        line_1 += " > "
        terminal = raw_input(line_1)
        if terminal[0:3] =='use':
            if terminal[4:20] =='web/apache_users':
                apache_users.apache_users()
                main()
            if terminal[4:27] =='web/cloudflare_resolver':
                cloudflare_resolver.cloudflare_resolver()
                main()
            elif terminal[4:20] =='network/arp_dos':
                arp_dos.arp_dos()
                main()
            elif terminal[4:20] =='exploit/autopwn':
                autopwn.autopwn()
                main()
            elif terminal[4:27] =='exploit/browser_autopwn':
                brow_autopwn.brow_autopwn()
                main()
            elif terminal[4:19] == 'web/dir_scanner':
                directory_scanner.directory_scanner()
                main()
            elif terminal[4:12] =='web/wmap':
                wmap.wmap()
                main()
            elif terminal[4:11] =='web/pma':
                phpmyadmin.phpmyadmin()
                main()
            elif terminal[4:23] =='exploit/java_applet':
                java_applet.java_applet()
                main()
            elif terminal[4:16] =='network/mfod':
                mfod.mfod()
                main()
            elif terminal[4:16] =='network/mitm':
                mitm.mitm()
                main()
            elif terminal[4:17] =='network/mlitm':
                mlitm.mlitm()
                main()
            elif terminal[4:21] =='network/webkiller':
                webkiller.webkiller()
                main()
            elif terminal[4:24] =='network/arp_poisoner':
                arp_poisoner.arp_poisoner()
                main()
            elif terminal[4:22] =='network/fakeupdate':
                fakeupdate.fakeupdate()
                main()
            elif terminal[4:20] =='wifi/wifi_jammer':
                wifi_jammer.wifi_jammer()
                main()
            elif terminal[4:17] =='wifi/wifi_dos':
                wifi_dos.wifi_dos()
                main()
            elif terminal[4:22] =='wifi/wifi_honeypot':
                wifi_honeypot.wifi_honeypot()
                main()
            elif terminal[4:20] =='wifi/mass_deauth':
                mass_deauth.mass_deauth()
                main()
            elif terminal[4:27] =='bluetooth/bluetooth_pod':
                bluetooth_pod.bluetooth_pod()
                main()
        elif terminal[0:12] == 'show modules':
            modules_database.modules_database()
            main()
        elif terminal[0:4] =='help':
            help.help()
            main()
        elif terminal[0:2] =='os':
            os.system(terminal[3:])
            main()
        elif terminal[0:7] =='upgrade':
            upgrade.upgrade()
            main()
        elif terminal[0:6] =='update':
            update.update()
        elif terminal[0:5] =='about':
            about.about()
            main()
        elif terminal[0:4] =='exit':
            exit()
        else:
            print "Wrong Command => ", terminal
            main()
    except(KeyboardInterrupt):
        print(wcolors.color.RED + "\n[*] (Ctrl + C ) Detected, Trying To Exit ..." + wcolors.color.ENDC)
        print(wcolors.color.YELLOW + "[*] Thank You For Using Websploit Framework =)" + wcolors.color.ENDC)
예제 #10
0
    def update_timer():
        update()

        thread = threading.Timer(config.UPDATE_PERIOD, update_timer)
        thread.daemon = True
        thread.start()