LOoLzeC

valid-apple.py

Mar 14th, 2019
1,038
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. import requests,os
  2. from multiprocessing.pool import ThreadPool
  3. print "\t[ Valid Apple By Deray ]\n"
  4.  
  5. def main(a):
  6.     r=requests.get(
  7.     "http://ainz.web.id/apple-valid.php?e="+a).json()
  8.     res=r["Result"]
  9.     if res["Status"] !="DIE":
  10.         print("[ \033[1;32m%s\033[0m ] %s"%(
  11.         res["Status"],
  12.             res["Email"]))
  13.         open("valid.txt","a").write(res["Email"]+"\n")
  14.     else:
  15.         print("[ \033[1;37m\033[31m%s \033[0m] %s"%(
  16.         res["Status"]+"E",res["Email"]))
  17.  
  18. t=[]
  19. if os.path.exists("valid.txt"):
  20.     if os.path.getsize("valid.txt") !=0:
  21.         r=raw_input("[?] path exists: valid.txt (replace?y/n): ")
  22.         if r.lower() =="y":
  23.             open("valid.txt","w").close()
  24. else:
  25.     open("valid.txt","w").close()
  26. o=open(raw_input('[+] Mailist: ')).read().splitlines()
  27. print("[+] Output: valid.txt")
  28. p=ThreadPool(10)
  29. p.map(main,o)
Advertisement
Add Comment
Please, Sign In to add comment