Advertisement
Guest User

instagram logn

a guest
Apr 19th, 2018
1,893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.06 KB | None | 0 0
  1. <?php
  2. $instagram = curl_init();
  3. curl_setopt($instagram, CURLOPT_URL, "https://www.instagram.com/accounts/login/ajax/");
  4. curl_setopt($instagram, CURLOPT_SSL_VERIFYPEER, false);
  5. curl_setopt($instagram, CURLOPT_RETURNTRANSFER, 1);
  6. curl_setopt($instagram, CURLOPT_FOLLOWLOCATION, 1);
  7. curl_setopt($instagram, CURLOPT_HTTPHEADER, array(
  8.     'Accept: */*',
  9.     'Accept-Encoding: gzip, deflate, br',
  10.     'Accept-Language: en-US,en;q=0.5',
  11.     'Connection: keep-alive',
  12.     'Content-Length: 68',
  13.     'Content-Type: application/x-www-form-urlencoded',
  14.     'DNT: 1',
  15.     'Host: www.instagram.com',
  16.     'Referer: https://www.instagram.com/',
  17.     'X-CSRFToken: fjoerZa6YXtbENOr1DJN8gCH3sx8dZt8',
  18.     'X-Instagram-AJAX: 1',
  19.     'X-Requested-With: XMLHttpRequest'
  20. ));
  21. curl_setopt($instagram, CURLOPT_POSTFIELDS, 'username=USERNAME&password=PASSSWORD&queryParams=%7B%7D');
  22. curl_setopt($instagram, CURLOPT_HEADER, 1);
  23. curl_setopt($instagram, CURLOPT_COOKIE, 'ig_pr=0.8; ig_vw=2400; ig_vh=1191; ig_or=landscape-primary; rur=FRC; csrftoken=fjoerZa6YXtbENOr1DJN8gCH3sx8dZt8; mid=WtibuAALAAE17SK84HJq6Jqw2VFr; fbm_124024574287414=base_domain=.instagram.com; fbsr_124024574287414=mNzjIKCVqR3zbRyMCerWbPc9WlXrbFRFjz8MlVgo9-E.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUNfNG0xSHBpaGNiRUFrQ2s5NUZNb1U0eXhWbVBRSFV5dENJUWJKbzR4amNGUzF1LTBneHp1c1laUmtMTmRUVXEtNnRUUjF3WVd0NHJZNEQtN1k0VzhrWG8xNV95RWV2dE9QcXB4VUliRDJ3LThEU1J4SEotOFpsWVhlbjR4MThEeTMtSU93cERWMUJuT2tNbm9PV3YtWmhRanJtVXhwYzJUU05QdGRBYnFnTHlrX05QeHZxb0lSb0p1dkZ4NjA4ckplOGw5TXp6b2ktQjNiOUFGZnVIRW9jb1RYSk1PNXFMV2tXMzMxVFBjN1ZfdnRJRnBEdWdNVjZHM3pqQ0tKakQtOEhucmpJQ05ucWlZVHVlN0pMZ2s4LUUycGVMNGFrS1lRNFJ5YzlXVktBdFlabWtweVhsTXhNd3pxR05KVENMNXdqSXFWMFNJZHlFWUR3a1hFMV9TNCIsImlzc3VlZF9hdCI6MTUyNDE0NTA4MSwidXNlcl9pZCI6IjEwMDAwODA1Mzg5OTg1MiJ9; urlgen="{\"time\": 1524145081\054 \"36.74.93.90\": 7713}:1f99lC:MKRDK-6edeKsurh2uHxAmRuX6-0"');
  24. curl_setopt($instagram, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0');
  25. $response = curl_exec($instagram);
  26. print '<pre>'.print_r($response,1).'</pre>';
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement