Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. $cookie = send_post_get_cookie("https://www.interpals.net/app/auth/login");
  2. if( $curl = curl_init() ) {
  3.  
  4. curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
  5. curl_setopt($curl, CURLOPT_URL, 'https://www.interpals.net/app/auth/login');
  6. curl_setopt ($curl, CURLOPT_POST, 1);
  7. curl_setopt($curl, CURLOPT_COOKIE, $cookie);
  8. $headers = [
  9. 'X-Apple-Tz: 0',
  10. 'X-Apple-Store-Front: 143444,12',
  11. 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  12. 'Accept-Encoding: gzip, deflate',
  13. 'Accept-Language: en-US,en;q=0.5',
  14. 'Cache-Control: no-cache',
  15. 'Content-Type: application/x-www-form-urlencoded; charset=utf-8',
  16. 'Host: www.interpals.net',
  17. 'Referer: https://www.interpals.net/app/auth/login', //Your referrer address
  18. 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0',
  19. 'X-MicrosoftAjax: Delta=true'
  20. ];
  21.  
  22. curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
  23. curl_setopt($curl, CURLOPT_POSTFIELDS,"username={$login}&password={$password}&csrf_token=$csrf_token");
  24. $out = curl_exec($curl);
  25. curl_close($curl);
  26. }
  27.  
  28. <body>
  29. Redirecting to <a href="/">/</a>.
  30. <script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","licenseKey":"651b103a3b","applicationID":"17278031,27395599","transactionName":"MlNbN0FRWkVZAUALCwsZehZARFtbFyNBFgxfDFUMVFla","queueTime":0,"applicationTime":14,"atts":"HhRYQQlLSUs=","errorBeacon":"bam.nr-data.net","agent":""}</script></body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement