Advertisement
Guest User

fbshield

a guest
Nov 26th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/python2.7
  2. #------------------#
  3. #-*- coding: utf-8 -*-
  4.  
  5.  
  6. import json
  7. import requests
  8. from getpass import getpass as pw
  9. from os import system as st
  10. from os import mkdir as dir
  11. from time import sleep as sp
  12. import os
  13. a = '\033[38;5;49m'
  14. b = '\033[38;5;92m'
  15. c = '\033[38;5;33m'
  16. m = '\033[91m'
  17. O = '\033[0m'
  18. st('clear')
  19. print '''
  20.                  ........................
  21.           %s{+}---[ %sFacebook Profile Guard %s]---{+}%s
  22.           %s{+}---[ %sSMK Dewantara Cikarang  %s]---{+}%s
  23.                  ````````````````````````
  24.              ________________________________
  25.             { %sCodename : Mr.JSON%s              }
  26.             { %sFacebook : Fb.me/json.403%s }
  27.             ::::::::::::::::::::::::::::::::::
  28.             <1> Generate Token & Facebook ID
  29.             <2> Enable Profile Guard
  30.             <0> Quit
  31. ''' % (a, b, a, b, a, b, a, O, c, O, c, O)
  32. sp(2)
  33.  
  34. def _ashs_():
  35.   try:
  36.       id = raw_input('Email or Phone Number : ')
  37.       passwd = pw('Password : ')
  38.       #f = requests.get('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email='+id+'&locale=en_US&password='+passwd+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
  39.       ab = requests.get("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+id+"&locale=en_US&password="+passwd+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6")
  40.       cont = json.loads(ab.text)
  41.       print c+'[!]----------['+O+' Your Access Token'+c+' ]-----------[!] '+O
  42.       print cont['access_token']
  43.   except KeyboardInterrupt:
  44.       print m+'[x] Aborted\n\n'+O
  45.   except KeyError:
  46.       print m+'[x] Invalid User or passwd \n\n'+O
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. def user_id():
  55.   try:
  56.       tok = raw_input('Enter Your Token : ')
  57.       url = "https://graph.facebook.com/me?access_token=%s" % tok
  58.       r = requests.get(url)
  59.       dat = json.loads(r.text)
  60.       print 'Your Facebook ID : '+m+dat['id']
  61.       print O+'------------'
  62.   except KeyError:
  63.       print m+'[x] Invalid Token\n\n'+O
  64.   except KeyboardInterrupt:
  65.       print m+'[x] Aborted\n\n'
  66.  
  67.  
  68.  
  69.  
  70. def ass():
  71.  try:
  72.      token = raw_input('Token : ')
  73.      id = raw_input('ID : ')
  74.      #url = "https://graph.facebook.com/graphql"
  75.      #tok = 'Authorization: OAuth '+token
  76.      #dat = 'variables={"0":{"is_shielded":true,"actor_id":"%s","client_mutation_id":"b0316dd6-3fd6-4beb-aed4-bb29c5dc64b0"}}&doc_id=1477043292367183' % str(id)
  77.      #t = requests.post(url, tok, dat)
  78.      #print t.text
  79.      a = token
  80.      b = id
  81.      aw = """ curl "https://graph.facebook.com/graphql" -H 'Authorization: OAuth %s' --data 'variables={"0":{"is_shielded":true,"actor_id":"%s","client_mutation_id":"b0316dd6-3fd6-4beb-aed4-bb29c5dc64b0"}}&doc_id=1477043292367183' """ % (a, b)
  82.      c = open('123.sh', 'w')
  83.      c.write(aw)
  84.      c.close
  85.  except KeyboardInterrupt:
  86.      print m+'[x] Aborted \n\n'+O
  87.  
  88.  
  89. def lnj():
  90.   jax = raw_input('Do You Want To Enable Profile Guard[?] [Y]es or [N]o : ')
  91.   if jax == 'Y':
  92.      ass()
  93.      st('sh 123.sh')
  94.   elif jax == 'y':
  95.      ass()
  96.      st('sh 123.sh')
  97.   else:
  98.      exit()
  99.  
  100. def main():
  101.   b3 = raw_input('Choose Number : ')
  102.   if b3 == '1':
  103.      _ashs_()
  104.      print c+'\n\n{-}----{ Generate Facebook ID }----{-}'+O
  105.      user_id()
  106.      lnj()
  107.   elif b3 == '2':
  108.      ass()
  109.      st('sh 123.sh')
  110.   elif b3 == '0':
  111.      exit()
  112.   else:
  113.      print m+'[!] Choose Number list\n'+O
  114.  
  115. if __name__ == '__main__':
  116.  try:
  117.     main()
  118.  except:
  119.     exit()
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. #https://api.facebook.com/restserver.php?api_key=882a8490361da98702bf97a021ddc14d&email={email}&format=JSON&locale=vi_vn&method=auth.login&password={password}&return_ssl_resources=0&v=1.0&sig=ec93f2416ae0f69f9258adbab643d7eb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement