Advertisement
BugAR

Boomer Single Instagram

Jul 1st, 2017
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.75 KB | None | 0 0
  1. <form action="" method="post">
  2. <center>
  3. <font color="red"> Username :<input type="text" name="username"></font><br><br>
  4. <font color="red"> Password :<input type="text" name="password"></font><br><br><br>
  5. <input type="submit" value="Login And Report">
  6. </center>
  7. </form>
  8. <?
  9. $username = $_POST['username'];
  10. $password = $_POST['password'];
  11. $instagram = curl_init();
  12. curl_setopt($instagram, CURLOPT_URL, "https://www.instagram.com/accounts/login/ajax/");
  13. curl_setopt($instagram, CURLOPT_SSL_VERIFYPEER, false);
  14. curl_setopt($instagram, CURLOPT_RETURNTRANSFER, 1);
  15. curl_setopt($instagram, CURLOPT_FOLLOWLOCATION, 1);
  16. curl_setopt($instagram, CURLOPT_HTTPHEADER, array(
  17.     'Host: www.instagram.com',
  18.     'X-CSRFToken: 5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU',
  19.     'Referer: https://www.instagram.com/accounts/login/',
  20.     'Cookie: csrftoken=5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU;'
  21.     ));
  22. curl_setopt($instagram, CURLOPT_POSTFIELDS, "username=$username&password=$password");
  23. curl_setopt($instagram, CURLOPT_HEADER, 1);
  24. curl_setopt($instagram, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  25. $response = curl_exec($instagram);
  26. if(eregi('"authenticated": true', $response))
  27.     {
  28.         $startsession = explode('sessionid=' , $response );
  29.         $endsession = explode(';' , $startsession[1] );
  30.         $sessionid = $endsession[0];
  31.         //
  32.         $report = curl_init();
  33.         curl_setopt($report, CURLOPT_URL, "https://i.instagram.com/users/625308490/report/");
  34.         curl_setopt($report, CURLOPT_SSL_VERIFYPEER, false);
  35.         curl_setopt($report, CURLOPT_RETURNTRANSFER, 1);
  36.         curl_setopt($report, CURLOPT_FOLLOWLOCATION, 1);
  37.         curl_setopt($report, CURLOPT_HTTPHEADER, array(
  38.             'Host: i.instagram.com',
  39.             'Connection: keep-alive',
  40.             'X-CSRFToken: 5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU',
  41.             'Referer: https://i.instagram.com/users/625308490/report',
  42.             'Cookie: sessionid='.$sessionid.'; csrftoken=5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU;'
  43.             ));
  44.         curl_setopt($report, CURLOPT_POSTFIELDS, "source_name=&reason_id=1");
  45.         curl_setopt($report, CURLOPT_HEADER, 1);
  46.         curl_setopt($report, CURLOPT_USERAGENT, "Instagram 10.23.0 Android (21/5.0; 480dpi; 1080x1920; samsung; SM-G900F; klte; qcom; ar_AE)");
  47.         $res = curl_exec($report);
  48.         if(eregi('{"status": "ok"}', $res))
  49.             {
  50.                 echo "<font color='green'><center>Reported By @$username<br><center></font>";
  51.             }
  52.             else
  53.             {
  54.                 echo "<font color='red'><center>Failed Report By @$username<br><center></font>";
  55.             }
  56.     }
  57.     else
  58.     {
  59.         if(eregi("checkpoint", $response))
  60.         {
  61.             echo "<center>Logged But CheckPoint</center>";
  62.         }
  63.         else
  64.         {
  65.             if(eregi("Please wait a few minutes before you try again.", $response))
  66.             {
  67.                 echo "<center> Use Proxy </center>";
  68.             }
  69.             else
  70.             {
  71.                 echo "<center> Failed</center>";
  72.             }
  73.         }
  74.     }
  75. curl_close($instagram);
  76. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement