SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | system('clear'); | |
4 | $g = "\033[92m"; | |
5 | $r = "\033[91m"; | |
6 | $c = "\033[36m"; | |
7 | $w = "\033[00m"; | |
8 | $bold = "\033[94m"; | |
9 | ||
10 | echo $g."========================================\n".$r."========================================\n".$c."= TOOL GET TOKEN =\n".$w."= BY API RAHMOOOOOOOOOOOOOON =\n".$g."========================================\n".$r."= TAHNKS: FANSA =\n".$c."========================================\n".$w."========================================\n\n"; | |
11 | ||
12 | echo $c."\n[Username Facebook] => "; | |
13 | $iduser = trim(fgets(STDIN, 1024)); | |
14 | ||
15 | echo $g."\n[Password Facebook] => "; | |
16 | $pass = trim(fgets(STDIN, 1024)); | |
17 | echo "\n"; | |
18 | $get = file_get_contents('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email='.$iduser.'&locale=en_US&password='.$pass.'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6'); | |
19 | $j = json_decode($get, true); | |
20 | //print_r($j) | |
21 | ||
22 | $userid = $j['session_cookies'][0]['value']; | |
23 | $token = $j['access_token']; | |
24 | ||
25 | if(preg_match('/session_key/', $get)) { | |
26 | echo $g."========RESULT=========="; | |
27 | echo $g."\n\n[Your ID] = ".$userid." \n\n".$c."[Your Token] = ".$token." \n"; | |
28 | } else { | |
29 | echo $r."=========RESULT=========="; | |
30 | echo $r."Failed Check Your E-Mail and Password\n\n"; | |
31 | } | |
32 | ||
33 | ?> |