Advertisement
Guest User

6um.py

a guest
Aug 12th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. import urllib2
  2. import smtplib
  3. import hashlib
  4. import os
  5. import time
  6.  
  7. # Digital Gangster bitches
  8. # LAN wuz here
  9.  
  10. site = "https://digitalgangster.com/6um/"
  11. username = ""
  12. password = ""
  13. server = ""
  14. port = 587
  15. rec = [""]
  16. msg = "6um change!"
  17. checkfile = "check.txt"
  18.  
  19. while True:
  20.     pagehash = hashlib.md5(urllib2.urlopen(site).read()).hexdigest()
  21.     if os.path.isfile(checkfile):
  22.         if open(checkfile, "r").read() != pagehash:
  23.             for a in range(0, len(rec)):
  24.                 smtp = smtplib.SMTP(server, port)
  25.                 smtp.starttls()
  26.                 smtp.login(username, password)
  27.                 smtp.sendmail(username, rec[a], msg)
  28.                 smtp.quit()
  29.     else:
  30.         open(checkfile, "w").write(pagehash)
  31.     print(pagehash)
  32.     time.sleep(5*60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement