Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python27
- import os, re, sys, socket, binascii, time, json, random, threading, getpass
- import requests
- from multiprocessing import Pool
- from multiprocessing.dummy import Pool as ThreadPool
- from time import time as timer
- import time
- from random import sample as rand
- from Queue import Queue
- from platform import system
- from urlparse import urlparse
- from optparse import OptionParser
- from colorama import Fore
- from colorama import Style
- from pprint import pprint
- from colorama import init
- init(autoreset=True)
- ####### Colors ######
- fr = Fore.RED
- fc = Fore.CYAN
- fw = Fore.WHITE
- fg = Fore.GREEN
- sd = Style.DIM
- sn = Style.NORMAL
- sb = Style.BRIGHT
- #######################
- def banners():
- try:
- os.mkdir('Result')
- except:
- pass
- try:
- os.mkdir('logs')
- except:
- pass
- if system() == 'Linux':
- os.system('clear')
- if system() == 'Windows':
- os.system('cls')
- banner = """{}
- _______ __ __ _______ __
- / \ / | / | / \ / |
- $$$$$$$ | ______ $$/ __ __ ______ _$$ |_ ______ $$$$$$$ | ______ _$$ |_
- $$ |__$$ |/ \ / |/ \ / |/ \ / $$ | / \ $$ |__$$ | / \ / $$ | {}
- $$ $$//$$$$$$ |$$ |$$ \ /$$/ $$$$$$ |$$$$$$/ /$$$$$$ |$$ $$< /$$$$$$ |$$$$$$/
- $$$$$$$/ $$ | $$/ $$ | $$ /$$/ / $$ | $$ | __ $$ $$ |$$$$$$$ |$$ | $$ | $$ | __
- $$ | $$ | $$ | $$ $$/ /$$$$$$$ | $$ |/ |$$$$$$$$/ $$ |__$$ |$$ \__$$ | $$ |/ |{}
- $$ | $$ | $$ | $$$/ $$ $$ | $$ $$/ $$ |$$ $$/ $$ $$/ $$ $$/
- $$/ $$/ $$/ $/ $$$$$$$/ $$$$/ $$$$$$$/ $$$$$$$/ $$$$$$/ $$$$/
- {}
- ->> Coded by RaiC0d3r <<-
- \n""".format(fg, fr, fg, sn)
- print banner
- def mail(url , s):
- sess = requests.session()
- cnn = sess.get(url, timeout=20)
- finder = re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+", cnn.text)
- for email in finder:
- open('logs/emailx.txt', 'a').write(email+'\n')
- lines_seen = set() # holds lines already seen
- outfile = open('Result/email.txt', "w")
- infile = open('logs/emailx.txt', "r")
- for line in infile:
- # print line
- if line not in lines_seen: # not a duplicate
- outfile.write(line)
- lines_seen.add(line)
- outfile.close()
- for line in open('logs/emailx.txt', "r"):
- print line
- #####################normalthreads###########
- def passfor():
- try:
- Get_list = raw_input('[+] Enter List Websites: ')
- with open(Get_list, 'r') as zz:
- Readlist = zz.read().splitlines()
- except IOError:
- print '--------------------------------------------'
- print ' [-] List Not Found in Directory!'
- sys.exit()
- thread = []
- for url in Readlist:
- url = 'http://' + url
- t = threading.Thread(target=mail, args=(url, ''))
- t.start()
- thread.append(t)
- time.sleep(0.1)
- for j in thread:
- j.join()
- banners()
- Passwd = getpass.getpass("Give Passwd : ")
- if "" in Passwd:
- passfor()
- else:
- exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement