Guest User

Untitled

a guest
Sep 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.63 KB | None | 0 0
  1. <?php
  2.  
  3. $url = 'https://www.instagram.com/accounts/web_create_ajax/attempt/';
  4.  
  5.  
  6. $ch = curl_init($url);
  7. $browser = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.16 (KHTML, like Gecko) \Chrome/24.0.1304.0 Safari/537.16';
  8. curl_setopt($ch, CURLOPT_USERAGENT, $browser);
  9.  
  10. curl_setopt($ch, CURLOPT_COOKIE,'rur=PRN; mcd=3; mid=W6icKgALAAFFgbPwbb6Wb4YLaGlZ; csrftoken=WVYe2892ErLQcSF9PDfqVxQBHQPi4BOu; csrftoken=WVYe2892ErLQcSF9PDfqVxQBHQPi4BOu');
  11. curl_setopt($ch, CURLOPT_POST, true);
  12. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  13. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  14. curl_setopt($ch, CURLOPT_POSTFIELDS,"password=lkjdflksjl&phone_number=%2B12514180053&username=kjlsdfklajsdlkfj&first_name=orkiyaa&client_id=W6icKgALAAFFgbPwbb6Wb4YLaGlZ&opt_into_one_tap=false");
  15. curl_setopt($ch, CURLOPT_HEADER, true);
  16. curl_setopt($ch, CURLOPT_HEADER,array(
  17. 'Host: www.instagram.com',
  18. 'Connection: keep-alive',
  19. 'Content-Length: 179',
  20. 'Origin: https://www.instagram.com',
  21. 'X-Instagram-AJAX: 9de6d949df8f',
  22. 'Content-Type: application/x-www-form-urlencoded',
  23. 'Accept: */*',
  24. 'X-Requested-With: XMLHttpRequest',
  25. 'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3542.0 Safari/537.36',
  26. 'X-CSRFToken: WVYe2892ErLQcSF9PDfqVxQBHQPi4BOu',
  27. 'Referer: https://www.instagram.com/',
  28. 'Accept-Encoding: gzip, deflate, br',
  29. 'Accept-Language: en-US,en;q=0.9',
  30. 'Cookie: rur=PRN; mcd=3; mid=W6icKgALAAFFgbPwbb6Wb4YLaGlZ; csrftoken=WVYe2892ErLQcSF9PDfqVxQBHQPi4BOu; csrftoken=WVYe2892ErLQcSF9PDfqVxQBHQPi4BOu'
  31. ));
  32.  
  33.  
  34. $result = curl_exec($ch);
  35. $info = curl_getinfo($ch);
  36. //print_r( $info );
  37. echo $result;
  38.  
  39. ?>
Add Comment
Please, Sign In to add comment