Advertisement
LOoLzeC

report.py

Feb 16th, 2019
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.77 KB | None | 0 0
  1. #-*-coding:utf-8-*-
  2. # Fb Mass Reports Account
  3. # Created By Deray
  4.  
  5. import bs4
  6. import json
  7. import threading
  8. import cookielib
  9. import mechanize
  10.  
  11. class reports(threading.Thread):
  12.     def __init__(self,email,pw,target):
  13.         threading.Thread.__init__(self)
  14.         self.email = email
  15.         self.pw = pw
  16.         self.tg = target
  17.     def run(self):
  18.         br = mechanize.Browser()
  19.         url="https://mbasic.facebook.com"
  20.         br.set_handle_equiv(True)
  21.         br.set_handle_referer(True)
  22.         br.set_handle_robots(False)
  23.         br.set_cookiejar(cookielib.LWPCookieJar())
  24.         br.addheaders = [
  25.             (
  26.             "User-Agent","Mozilla/5.0 (Linux; U; Android 5.1)"
  27.             )
  28.         ]
  29.         br.open("https://mbasic.facebook.com")
  30.         br.select_form(nr=0)
  31.         br.form["email"] = "{}".format(
  32.             self.email
  33.         )
  34.         br.form["pass"]  = "{}".format(
  35.             self.pw
  36.         )
  37.         br.submit()
  38.         br.open(
  39.         "https://mbasic.facebook.com/{}".format(
  40.             self.tg
  41.             )
  42.         )
  43.         bb = bs4.BeautifulSoup(
  44.         br.response().read(),
  45.             features = "html.parser"
  46.         )
  47.         for x in bb.find_all("a",href=True):
  48.             if "rapid_report" in x["href"]:
  49.                 kntl=x["href"]
  50.         br.open(kntl)
  51.         br._factory.is_html=True
  52.         j = json.dumps(
  53.             {
  54.             "fake":"profile_fake_account",
  55.             "action_key":"FRX_PROFILE_REPORT_CONFIRMATION",
  56.             "checked":"yes"
  57.             }
  58.         )
  59.         js = json.loads(j)
  60.         br.select_form(nr=0)
  61.         br.form["tag"] =[js["fake"]]
  62.         br.submit()
  63.         br._factory.is_html=True
  64.         br.select_form(nr=0)
  65.         try:
  66.             br.form["action_key"] = [js["action_key"]]
  67.         except:
  68.             return False
  69.         br.submit()
  70.         br._factory.is_html = True
  71.         try:
  72.             br.select_form(nr=0)
  73.             br.form["checked"] = [js["checked"]]
  74.             br.submit()
  75.             res=br.response().read()
  76.             if "Terima kasih atas masukan Anda." in res:
  77.                 print "[*] Reported."
  78.             else:
  79.                 print "[-] Unreported."
  80.         except:
  81.             print "\r[-] Already Reports."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement