Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function getbtw($string, $start, $end){
- $string = ' ' . $string;
- $ini = strpos($string, $start);
- if ($ini == 0) return '';
- $ini += strlen($start);
- $len = strpos($string, $end, $ini) - $ini;
- return substr($string, $ini, $len);
- }
- error_reporting(0);
- date_default_timezone_set('Asia/Ho_Chi_Minh');
- set_time_limit(0);
- $dir = dirname(__file__);
- define('COOKIE_FILE', $dir . '/fpt.cookie');
- require (''.$dir.'/Curl.php');
- $curl = new curl;
- $curl->ua('KhanhBQ FPT');
- $curl->ua('Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0');
- $curl->setopt('timeout', 30);
- $curl->ref('https://gamepass.nfl.com/secure/signin');
- $curl->postdata('username=trungitaly&password=nfl123&cookielink=false');
- $curl->page('https://gamepass.nfl.com/secure/authenticate');
- $curl->page('https://gamepass.nfl.com/game/49ers-at-chiefs-on-08112017'); // Tr?n nào thì thay d?i link tr?n dó
- $id = $curl->getStr('"id": "', '"');
- $pcid = $curl->getStr('var pcid = "', '"');
- $getlink = 'https://gamepass.nfl.com/service/publishpoint?type=game&id='.$id.'>=1&gs=3&pcid='.$pcid.'&format=json&callback=nlPlayerQuad.setPublishPoint';
- $curl->page(htmlspecialchars_decode($getlink));
- $final = $curl->getStr('setPublishPoint({"path":"', '","pcmToken');
- //echo $final;
- header('Location: '.$final.'');
- exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement