Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post">
- <center>
- <font color="red"> Username :<input type="text" name="username"></font><br><br>
- <font color="red"> Password :<input type="text" name="password"></font><br><br><br>
- <input type="submit" value="Login And Report">
- </center>
- </form>
- <?
- $username = $_POST['username'];
- $password = $_POST['password'];
- $instagram = curl_init();
- curl_setopt($instagram, CURLOPT_URL, "https://www.instagram.com/accounts/login/ajax/");
- curl_setopt($instagram, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($instagram, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($instagram, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($instagram, CURLOPT_HTTPHEADER, array(
- 'Host: www.instagram.com',
- 'X-CSRFToken: 5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU',
- 'Referer: https://www.instagram.com/accounts/login/',
- 'Cookie: csrftoken=5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU;'
- ));
- curl_setopt($instagram, CURLOPT_POSTFIELDS, "username=$username&password=$password");
- curl_setopt($instagram, CURLOPT_HEADER, 1);
- curl_setopt($instagram, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
- $response = curl_exec($instagram);
- if(eregi('"authenticated": true', $response))
- {
- $startsession = explode('sessionid=' , $response );
- $endsession = explode(';' , $startsession[1] );
- $sessionid = $endsession[0];
- //
- $report = curl_init();
- curl_setopt($report, CURLOPT_URL, "https://i.instagram.com/users/625308490/report/");
- curl_setopt($report, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($report, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($report, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($report, CURLOPT_HTTPHEADER, array(
- 'Host: i.instagram.com',
- 'Connection: keep-alive',
- 'X-CSRFToken: 5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU',
- 'Referer: https://i.instagram.com/users/625308490/report',
- 'Cookie: sessionid='.$sessionid.'; csrftoken=5gX4qPPL6RhTWR5u8BDu6dsqJTBZXcRU;'
- ));
- curl_setopt($report, CURLOPT_POSTFIELDS, "source_name=&reason_id=1");
- curl_setopt($report, CURLOPT_HEADER, 1);
- curl_setopt($report, CURLOPT_USERAGENT, "Instagram 10.23.0 Android (21/5.0; 480dpi; 1080x1920; samsung; SM-G900F; klte; qcom; ar_AE)");
- $res = curl_exec($report);
- if(eregi('{"status": "ok"}', $res))
- {
- echo "<font color='green'><center>Reported By @$username<br><center></font>";
- }
- else
- {
- echo "<font color='red'><center>Failed Report By @$username<br><center></font>";
- }
- }
- else
- {
- if(eregi("checkpoint", $response))
- {
- echo "<center>Logged But CheckPoint</center>";
- }
- else
- {
- if(eregi("Please wait a few minutes before you try again.", $response))
- {
- echo "<center> Use Proxy </center>";
- }
- else
- {
- echo "<center> Failed</center>";
- }
- }
- }
- curl_close($instagram);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement