text stringlengths 0 93.6k |
|---|
def grupsaya(): |
os.system('clear') |
try: |
toket = open('login.txt', 'r').read() |
except IOError: |
print '\x1b[1;91m[!] Token not found' |
os.system('rm -rf login.txt') |
time.sleep(1) |
login() |
else: |
os.system('clear') |
print logo |
print 52 * '\x1b[1;97m\xe2\x95\x90' |
jalan('\x1b[1;91m[\xe2\x9c\xba] \x1b[1;92mPlease wait \x1b[1;97m...') |
print 52 * '\x1b[1;97m\xe2\x95\x90' |
try: |
uh = requests.get('https://graph.facebook.com/me/groups?access_token=' + toket) |
gud = json.loads(uh.text) |
for p in gud['data']: |
nama = p['name'] |
id = p['id'] |
f = open('grupid.txt', 'w') |
listgrup.append(id) |
f.write(id + '\n') |
print '\x1b[1;91m[\x1b[1;96m\xe2\x9c\x93\x1b[1;91m] \x1b[1;92mName \x1b[1;91m:\x1b[1;97m ' + str(nama) |
print '\x1b[1;91m[+] \x1b[1;92mID \x1b[1;91m:\x1b[1;97m ' + str(id) |
print 52 * '\x1b[1;97m=' |
print '\n\r\x1b[1;91m[+] \x1b[1;97mTotal Group \x1b[1;96m%s' % len(listgrup) |
print '\x1b[1;91m[+] \x1b[1;97mSaved \x1b[1;91m: \x1b[1;97mgrupid.txt' |
f.close() |
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]') |
lain() |
except (KeyboardInterrupt, EOFError): |
print '\x1b[1;91m[!] Stopped' |
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]') |
lain() |
except KeyError: |
os.remove('grupid.txt') |
print '\x1b[1;91m[!] Group not found' |
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]') |
lain() |
except requests.exceptions.ConnectionError: |
print '\x1b[1;91m[\xe2\x9c\x96] No connection' |
keluar() |
except IOError: |
print '\x1b[1;91m[!] Error when creating file' |
raw_input('\n\x1b[1;91m[ \x1b[1;97mBack \x1b[1;91m]') |
lain() |
def guard(): |
global toket |
os.system('clear') |
try: |
toket = open('login.txt', 'r').read() |
except IOError: |
print '\x1b[1;91m[!] Token not found' |
os.system('rm -rf login.txt') |
time.sleep(1) |
login() |
os.system('clear') |
print logo |
print 52 * '\x1b[1;97m\xe2\x95\x90' |
print '║-> \x1b[1;37;40m1. Enable' |
print '║-> \x1b[1;37;40m2. Disable' |
print '║-> \x1b[1;31;40m0. Back' |
print '\x1b[1;37;40m║' |
g = raw_input('╚═\x1b[1;91m▶\x1b[1;97m ') |
if g == '1': |
aktif = 'true' |
gaz(toket, aktif) |
else: |
if g == '2': |
non = 'false' |
gaz(toket, non) |
else: |
if g == '0': |
lain() |
else: |
if g == '': |
keluar() |
else: |
keluar() |
def get_userid(toket): |
url = 'https://graph.facebook.com/me?access_token=%s' % toket |
res = requests.get(url) |
uid = json.loads(res.text) |
return uid['id'] |
def gaz(toket, enable=True): |
id = get_userid(toket) |
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' % (enable, str(id)) |
headers = {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': 'OAuth %s' % toket} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.