Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2.  
  3. function getbtw($string, $start, $end){
  4. $string = ' ' . $string;
  5. $ini = strpos($string, $start);
  6. if ($ini == 0) return '';
  7. $ini += strlen($start);
  8. $len = strpos($string, $end, $ini) - $ini;
  9. return substr($string, $ini, $len);
  10. }
  11.  
  12. error_reporting(0);
  13. date_default_timezone_set('Asia/Ho_Chi_Minh');
  14. set_time_limit(0);
  15. $dir = dirname(__file__);
  16.  
  17.  
  18. define('COOKIE_FILE', $dir . '/fpt.cookie');
  19. require (''.$dir.'/Curl.php');
  20. $curl = new curl;
  21. $curl->ua('KhanhBQ FPT');
  22. $curl->ua('Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0');
  23. $curl->setopt('timeout', 30);
  24. $curl->ref('https://gamepass.nfl.com/secure/signin');
  25. $curl->postdata('username=trungitaly&password=nfl123&cookielink=false');
  26. $curl->page('https://gamepass.nfl.com/secure/authenticate');
  27.  
  28. $curl->page('https://gamepass.nfl.com/game/49ers-at-chiefs-on-08112017'); // Tr?n nào thì thay d?i link tr?n dó
  29.  
  30.  
  31. $id = $curl->getStr('"id": "', '"');
  32. $pcid = $curl->getStr('var pcid = "', '"');
  33.  
  34. $getlink = 'https://gamepass.nfl.com/service/publishpoint?type=game&id='.$id.'&gt=1&gs=3&pcid='.$pcid.'&format=json&callback=nlPlayerQuad.setPublishPoint';
  35.  
  36.  
  37. $curl->page(htmlspecialchars_decode($getlink));
  38. $final = $curl->getStr('setPublishPoint({"path":"', '","pcmToken');
  39.  
  40. //echo $final;
  41. header('Location: '.$final.'');
  42. exit;
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement