Advertisement
Guest User

Scan.py

a guest
Feb 2nd, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.11 KB | None | 0 0
  1. import smtplib
  2. import urllib2
  3. import thread
  4.  
  5. username = "42000blazeit"
  6. password = "suckitgoogle"
  7. target = "5017916699@mms.att.net"
  8. server = "http://159.203.143.162/"
  9. lst = "0abcdefghijklmnopqrstuvwxyz"
  10. dork = "Not Found"
  11. thread_num = len(lst)
  12. start = 1
  13.  
  14. def baseN(num, b, numerals="0123456789qwertyuiopasdfghjklzxcvbnm"):
  15.     return ((num == 0) and numerals[0]) or (baseN(num // b, b, numerals).lstrip(numerals[0]) + numerals[num % b])
  16.  
  17. def scan(start, thread_num):
  18.     while True:
  19.         try:
  20.             address = server + baseN(start, len(lst), lst) + ".php"
  21.             page = urllib2.urlopen(address).read()
  22.             if dork not in page:
  23.                 try:
  24.                     print(address + " - success!")
  25.                     smtp = smtplib.SMTP("smtp.gmail.com:587")
  26.                     smtp.starttls()
  27.                     smtp.login(username, password)
  28.                     smtp.sendmail(username, target, address)
  29.                     smtp.quit()
  30.                 except Exception, e:
  31.                     print(e)
  32.             else:
  33.                 print(address + " - failed.")
  34.         except Exception:
  35.             print(address + " - Not Found.")
  36.         start += thread_num
  37.  
  38.  
  39. for b in range(start, start+thread_num):
  40.     thread.start_new_thread(scan, (b, thread_num))
  41.  
  42. while True:
  43.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement