Beispiel #1
0
                download_from_pastebot(cmd[1])
            else:
                print("The download command requires a filename afterwards")
        # Upload the valuables/secrets the bot has discovered to pastebot.net
        elif cmd[0].lower() == "upload":
            if len(cmd) == 2:
                upload_valuables_to_pastebot(cmd[1])
            else:
                print("The upload command requires a filename afterwards")
        # Mine for Bitcoins
        # This is far more intensive in the real world, but we'll just pretend ;)
        elif cmd[0].lower() == "mine":
            print("Mining for Bitcoins...")
            bit_addr = bitcoin_mine()
            save_valuable("Bitcoin: %s" % bit_addr)
            print("Mined and found Bitcoin address: %s" % bit_addr)
        # Harvest a user's username and password (userpass)
        elif cmd[0].lower() == "harvest":
            userpass = harvest_user_pass()
            save_valuable("Username/Password: %s %s" % userpass)
            print("Found user pass: %s" % (userpass,))
        # List files and valuables (secrets such as userpass & bitcoins) the bot has
        elif cmd[0].lower() == "list":
            print("Files stored by this bot: %s" % ", ".join(filestore.keys()))
            print("Valuables stored by this bot: %s" % valuables)
        # Exit command
        elif cmd[0].lower() == "quit" or cmd[0].lower() == "exit":
            break
        else:
            print("Command not recognised")
Beispiel #2
0
                download_from_pastebot(cmd[1])
            else:
                print("The download command requires a filename afterwards")
        # Upload the valuables/secrets the bot has discovered to pastebot.net
        elif cmd[0].lower() == "upload":
            if len(cmd) == 2:
                upload_valuables_to_pastebot(cmd[1])
            else:
                print("The upload command requires a filename afterwards")
        # Mine for Bitcoins
        # This is far more intensive in the real world, but we'll just pretend ;)
        elif cmd[0].lower() == "mine":
            print("Mining for Bitcoins...")
            bit_addr = bitcoin_mine()
            save_valuable("Bitcoin: %s" % bit_addr)
            print("Mined and found Bitcoin address: %s" % bit_addr)
        # Harvest a user's username and password (userpass)
        elif cmd[0].lower() == "harvest":
            userpass = harvest_user_pass()
            save_valuable("Username/Password: %s %s" % userpass)
            print("Found user pass: %s" % (userpass, ))
        # List files and valuables (secrets such as userpass & bitcoins) the bot has
        elif cmd[0].lower() == "list":
            print("Files stored by this bot: %s" % ", ".join(filestore.keys()))
            print("Valuables stored by this bot: %s" % valuables)
        # Exit command
        elif cmd[0].lower() == "quit" or cmd[0].lower() == "exit":
            break
        else:
            print("Command not recognised")
Beispiel #3
0
                else:
                    break
            print(Fore.GREEN + "[+] " + "File Upload Starting" +
                  Style.RESET_ALL)
            upload_valuables_to_pastebot(fn)
        elif cmd[0].lower() == "mine" and len(cmd) == 1:
            print(Fore.GREEN + "[+] " + "Bitcoin Mining Starting" +
                  Style.RESET_ALL)
            bit_addr = bitcoin_mine()
            save_valuable("Bitcoin: %s" % bit_addr)
            print(Fore.GREEN + "[+] Mined and found Bitcoin address: " +
                  str(bit_addr) + "\n" + Style.RESET_ALL)
        elif cmd[0].lower() == "harvest" and len(cmd) == 1:
            print(Fore.GREEN + "[+] " + "Harvesting User Credentials Started" +
                  Style.RESET_ALL)
            userpass = harvest_user_pass()
            save_valuable("Username/Password: %s %s" % userpass)
            print(Fore.GREEN + "[+] Found credentials %s" % (userpass, ) +
                  "\n" + Style.RESET_ALL)
        elif cmd[0].lower() == "list" and len(cmd) == 1:
            print(Fore.GREEN + "[+] " + "List of Files" + Style.RESET_ALL)
            print(Fore.GREEN + "[+] Files stored by this bot: %s" %
                  ", ".join(filestore.keys()) + Style.RESET_ALL)
            print(Fore.GREEN + "[+] Valuables stored by this bot: " +
                  str(valuables) + "\n" + Style.RESET_ALL)
        elif cmd[0].lower() == "quit" or cmd[0].lower() == "exit":
            print(Fore.CYAN + "[+] " + "Exiting Network\n" + Style.RESET_ALL)
            break
        else:
            print(Fore.RED + "[-] Invalid Command\n" + Style.RESET_ALL)