Advertisement
RaiC0d3r

Untitled

Jul 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. #!/usr/bin/python27
  2. import os, re, sys, socket, binascii, time, json, random, threading, getpass
  3. import requests
  4. from multiprocessing import Pool
  5. from multiprocessing.dummy import Pool as ThreadPool
  6. from time import time as timer
  7. import time
  8. from random import sample as rand
  9. from Queue import Queue
  10. from platform import system
  11. from urlparse import urlparse
  12. from optparse import OptionParser
  13. from colorama import Fore
  14. from colorama import Style
  15. from pprint import pprint
  16. from colorama import init
  17. init(autoreset=True)
  18.  
  19.  
  20. ####### Colors ######
  21.  
  22. fr = Fore.RED
  23. fc = Fore.CYAN
  24. fw = Fore.WHITE
  25. fg = Fore.GREEN
  26. sd = Style.DIM
  27. sn = Style.NORMAL
  28. sb = Style.BRIGHT
  29.  
  30. #######################
  31. def banners():
  32. try:
  33. os.mkdir('Result')
  34. except:
  35. pass
  36. try:
  37. os.mkdir('logs')
  38. except:
  39. pass
  40.  
  41. if system() == 'Linux':
  42. os.system('clear')
  43. if system() == 'Windows':
  44. os.system('cls')
  45.  
  46. banner = """{}
  47.  
  48. _______ __ __ _______ __
  49. / \ / | / | / \ / |
  50. $$$$$$$ | ______ $$/ __ __ ______ _$$ |_ ______ $$$$$$$ | ______ _$$ |_
  51. $$ |__$$ |/ \ / |/ \ / |/ \ / $$ | / \ $$ |__$$ | / \ / $$ | {}
  52. $$ $$//$$$$$$ |$$ |$$ \ /$$/ $$$$$$ |$$$$$$/ /$$$$$$ |$$ $$< /$$$$$$ |$$$$$$/
  53. $$$$$$$/ $$ | $$/ $$ | $$ /$$/ / $$ | $$ | __ $$ $$ |$$$$$$$ |$$ | $$ | $$ | __
  54. $$ | $$ | $$ | $$ $$/ /$$$$$$$ | $$ |/ |$$$$$$$$/ $$ |__$$ |$$ \__$$ | $$ |/ |{}
  55. $$ | $$ | $$ | $$$/ $$ $$ | $$ $$/ $$ |$$ $$/ $$ $$/ $$ $$/
  56. $$/ $$/ $$/ $/ $$$$$$$/ $$$$/ $$$$$$$/ $$$$$$$/ $$$$$$/ $$$$/
  57. {}
  58. ->> Coded by RaiC0d3r <<-
  59.  
  60. \n""".format(fg, fr, fg, sn)
  61.  
  62. print banner
  63.  
  64.  
  65. def mail(url , s):
  66. sess = requests.session()
  67. cnn = sess.get(url, timeout=20)
  68. finder = re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+", cnn.text)
  69. for email in finder:
  70. open('logs/emailx.txt', 'a').write(email+'\n')
  71.  
  72. lines_seen = set() # holds lines already seen
  73. outfile = open('Result/email.txt', "w")
  74. infile = open('logs/emailx.txt', "r")
  75. for line in infile:
  76. # print line
  77. if line not in lines_seen: # not a duplicate
  78. outfile.write(line)
  79. lines_seen.add(line)
  80. outfile.close()
  81. for line in open('logs/emailx.txt', "r"):
  82. print line
  83.  
  84.  
  85. #####################normalthreads###########
  86. def passfor():
  87. try:
  88. Get_list = raw_input('[+] Enter List Websites: ')
  89. with open(Get_list, 'r') as zz:
  90. Readlist = zz.read().splitlines()
  91. except IOError:
  92. print '--------------------------------------------'
  93. print ' [-] List Not Found in Directory!'
  94. sys.exit()
  95. thread = []
  96. for url in Readlist:
  97. url = 'http://' + url
  98. t = threading.Thread(target=mail, args=(url, ''))
  99. t.start()
  100. thread.append(t)
  101. time.sleep(0.1)
  102. for j in thread:
  103. j.join()
  104.  
  105. banners()
  106.  
  107.  
  108.  
  109. Passwd = getpass.getpass("Give Passwd : ")
  110. if "" in Passwd:
  111. passfor()
  112. else:
  113. exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement