Advertisement
skip420

process-claims.py

Nov 25th, 2017
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.79 KB | None | 0 0
  1. # this script is to be used in the same directory as login.py
  2.  
  3. import time
  4. import os
  5. import sys
  6. import smtplib
  7. import glob
  8.  
  9. # Import the wallet list
  10. Wallets = [line.rstrip('\n') for line in open(sys.argv[1])]
  11. x = 0
  12. updateTimer = 0
  13.  
  14. # Scan through the list of wallets so that validate-captcha.py will be able to validate any un-tested captchas
  15. while x < 1:
  16.       for y in range(len(Wallets) -1):
  17.           try:
  18.              f = open('Captcha_' + Wallets[y] + '.txt', 'r')
  19.              f.close()
  20.              os.system('python claim.py ' + Wallets[y] + ' &')
  21.           except:
  22.                 # There's no captcha solution associated with this wallet
  23.                 pass
  24.  
  25.       # Update the Global Satoshi Balance
  26.       os.system('python satoshi.py && cat satoshi.html')
  27.  
  28.       #if(updateTimer = 12):
  29.       #  updateTimer = 0
  30.       #  emailUpdate()
  31.       #else:
  32.       #  updateTimer = updateTimer + 1
  33.      
  34.       # Wait 6 minutes
  35.       time.sleep(60 * 5)
  36.      
  37.       # Reload the Wallets file just incease we've added or modified it within the last 6 minutes
  38.       Wallets = [line.rstrip('\n') for line in open(sys.argv[1])]
  39.  
  40.  
  41. def emailUpdate():
  42.     server = smtplib.SMTP('smtp.live.com', 587)
  43.     server.starttls()
  44.     server.login("timothysmercurio@hotmail.com", "T!")
  45.  
  46.     # Get some Captcha Portal Stats
  47.  
  48.     # Global BTC Balance
  49.     f = open('satoshi.html', 'r')
  50.     BTCbalance = f.read()
  51.     f.close()
  52.  
  53.     # Concurrent Faucet Bot Statistics
  54.     Captchas  = glob.glob('./*.jpg*')
  55.     Solutions = glob.glob('./Captcha_*.txt*')
  56.  
  57.     message = "BTC Balance: " + BTCbalance + "\n" + "Que: " + str(len(Captchas)) + "\n" + "Count: " + str(len(Solutions))
  58.  
  59.     server.sendmail("timothysmercurio@hotmail.com", "Ctimothysmercurio@hotmail.com", message)
  60.     server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement