“BesTV抓包分析”的版本间的差异

来自IPTV爱好者
跳转至: 导航搜索
(新页面: == 首次开机 == 首次开机申请服务,下面是请求和响应: C->S: POST /tv/Service/Open HTTP/1.1 Host: aaa.bbtv.cn Accept: */* Content-Length: 370 Content-Type: applica...)
 
播放
第283行: 第283行:
 
  GET /sharp/index.php/service/getplayurl?itemcode=106410&code=143363 HTTP/1.1
 
  GET /sharp/index.php/service/getplayurl?itemcode=106410&code=143363 HTTP/1.1
 
  User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
 
  User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
  Referer: http://portal1.bbtv.cn/sharp/index.php/movie?pcode=SMG_1002&categorycode=SMG_NEW&code=106410&cur_index=
+
  Referer: http://portal1.bestv.cn/sharp/index.php/movie?pcode=SMG_1002&categorycode=SMG_NEW&code=106410&cur_index=
 
  Cookie: User_Confirm=1; PHPSESSID=1234123412341234123412341234; __userinfo=12341234123412341234123412341234
 
  Cookie: User_Confirm=1; PHPSESSID=1234123412341234123412341234; __userinfo=12341234123412341234123412341234
 
  Connection: Keep-Alive
 
  Connection: Keep-Alive
 
  Accept-Encoding: gzip
 
  Accept-Encoding: gzip
 
  Accept-Language: en,*
 
  Accept-Language: en,*
  Host: portal1.bbtv.cn
+
  Host: portal1.bestv.cn
  
 
S->C:
 
S->C:

2011年9月18日 (日) 14:12的版本

首次开机

首次开机申请服务,下面是请求和响应:

C->S:

POST /tv/Service/Open HTTP/1.1
Host: aaa.bbtv.cn
Accept: */*
Content-Length: 370
Content-Type: application/x-www-form-urlencoded

OpenMode=2&OpenParam=SHARP%24LX830A%2400006879ED0C1234&TVID=SHARP%24LX830A%2400006879ED0C1234
&TVProfile=MTK%2F5395%3BBESTVOS%2F2001%3BBESTVPLAYER%2F2001%3BTVOSB2%2F1000&BCTIVersion=1000&Reserve=
&Authenticator=591234123412341234123412341234......................1234123412341234123412341234&

S->C:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 16 Sep 2011 12:34:56 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 721
X-Via: 1.1 ja234:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<?xml version="1.0" encoding="UTF-8" ?>
<Root>
   <Result ResultCode="0" ResultMsg="0.0!"/>
   <Response>
       <ServerAuthenticator>591234123412341234123412341234......................1234123412341234123412341234</ServerAuthenticator>
       <UserID>020211000001234</UserID>
       <NickName></NickName>
       <AccountDesc></AccountDesc>
       <AAASrvAddress>http://aaa.bbtv.cn/tv</AAASrvAddress>
       <AAASrvAddress2>http://aaa1.bbtv.cn/tv</AAASrvAddress2>
       <AAASrvAddress3>http://aaa2.bbtv.cn/tv</AAASrvAddress3>
   </Response>
</Root>


升级检查

每次开机会先做升级检查,下面是升级检查的请求和响应:

C->S:

GET /tv/Service/UpgradeOS?UserID=020211000001234&TVID=SHARP$LX830A$6879ED0C1234&TerminalKind=0&TVProfile=MTK/5395;BESTVOS/2001;BESTVPLAYER/2001;TVOSB2/1000 HTTP/1.1
User-Agent: curl/7.20.0 (arm-unknown-linux-gnu) libcurl/7.20.0 OpenSSL/1.0.0 zlib/1.2.3 c-ares/1.7.1
Host: aaa.bbtv.cn
Accept: */*

S->C:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 15 Sep 2011 12:34:56 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 103
X-Via: 1.1 ja232:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<?xml version="1.0" encoding="UTF-8" ?>
<Root>
<Result ResultCode="-4001" ResultMsg=""/>
</Root>

鉴权

C->S:

POST /tv/Service/Login HTTP/1.1
Host: aaa.bbtv.cn
Accept: */*
Content-Length: 322
Content-Type: application/x-www-form-urlencoded

UserID=020211000001234&BCTIVersion=1000&TVProfile=MTK%2F5395%3BBESTVOS%2F2001%3BBESTVPLAYER%2F2001%3BTVOSB2%2F1000
&Authenticator=591234123412341234123412341234......................1234123412341234123412341234&

S->C:

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Fri, 16 Sep 2011 12:34:56 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 1595
X-Via: 1.1 ja234:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<?xml version="1.0" encoding="UTF-8" ?>
<Root>
   <Result ResultCode="0" ResultMsg="0.0!"/>
   <Response>
       <ServerAuthenticator>591234123412341234123412341234......................1234123412341234123412341234</ServerAuthenticator>
       <UserToken>12341234123412341234123412341234</UserToken>
       <UserID>020211000001234</UserID>
       <UserGroup>B_GROUP</UserGroup>
       <UserLevel>1</UserLevel>
       <ValidPoints>-1</ValidPoints>
       <ActExpiredDate>111111</ActExpiredDate>
       <AAASrvAddress>http://aaa.bbtv.cn/tv</AAASrvAddress>
       <AAASrvAddress2>http://aaa1.bbtv.cn/tv</AAASrvAddress2>
       <EpgSrvAddress>http://portal1.bbtv.cn/sharp/</EpgSrvAddress>
       <EpgSrvAddress2></EpgSrvAddress2>
       <PlaySrvAddress>http://ps.bbtv.cn/tv</PlaySrvAddress>
       <PlaySrvAddress2>http://ps1.bbtv.cn/tv</PlaySrvAddress2>
       <UpgradeSrvAddress>http://aaa.bbtv.cn/tv</UpgradeSrvAddress>
       <UpgradeSrvAddress2></UpgradeSrvAddress2>
       <IMGSrvAddress>http://tvpic.bbtv.cn</IMGSrvAddress>
       <ServiceAddress>http://222.73.177.144/tvapp/index.php/service</ServiceAddress>
       <DRMSrvAddress></DRMSrvAddress>
       <DRMSrvAddress2></DRMSrvAddress2>
       <DTAlogAdress></DTAlogAdress>
       <DTAlogAdress2></DTAlogAdress2>
       <ForcedUpgrade>0</ForcedUpgrade>
       <SystemTime>2011-09-16 11:43:09</SystemTime>
   </Response>
</Root>

服务协议

C->S:

GET /sharpguide/protocol.html?return_url=http%3A%2F%2Fportal1.bbtv.cn%2Fsharp%2F%3Fuserid%3D020211000001234%26usergroup%3DB_GROUP%26token%3D1234123412341234123412341234 HTTP/1.1
User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: en,*
Host: guide.bbtv.cn

S->C:

HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Fri, 16 Sep 2011 12:34:56 GMT
Content-Type: text/html
Content-Length: 621
Last-Modified: Thu, 10 Feb 2011 09:17:13 GMT
Accept-Ranges: bytes
X-Via: 1.1 ja234:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> New Document </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>
 <body>
  <script type="text/javascript">
  </script>
 </body>
</html>

C->S:

GET /sharp/SERVER/protocol/protocol.html?return_url=http%3A%2F%2Fportal1.bbtv.cn%2Fsharp%2F%3Fuserid%3D020211000001234%26usergroup%3DB_GROUP%26token%3D12341234123412341234123412341234 HTTP/1.1
User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Referer: http://guide.bbtv.cn/sharpguide/protocol.html?return_url=http%3A%2F%2Fportal1.bbtv.cn%2Fsharp%2F%3Fuserid%3D020211000001234%26usergroup%3DB_GROUP%26token%3D12341234123412341234123412341234
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: en,*
Host: guide.bbtv.cn

S->C:

HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Fri, 16 Sep 2011 12:34:56 GMT
Content-Type: text/html
Last-Modified: Wed, 16 Feb 2011 07:55:06 GMT
Transfer-Encoding: chunked
Content-Encoding: gzip
X-Via: 1.1 ja234:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/general.css"/>
<link rel="stylesheet" type="text/css" href="css/protocol.css"/>
<script type="text/javascript" src="js/bestv.js"></script>
<script type="text/javascript" src="js/key.js"></script>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">var $q = jQuery.noConflict();</script>
<script type="text/javascript" src="js/protocol.js"></script>
<title></title>
</head>
<body>
<div id="page" >
  <div id="middle">
    <div id="prohead">
      <p class="title">BesTV</p>
    </div>
    <div id="content">
      <div id="pageud">
        <div class="defaut" id="pageup" att="sublist"></div>
        <div class="defaut" id="pagedown" att="sublist"></div>
      </div>
      <div id="profile">
        <div id="profilepage">
          <p>BBTV</p>
          <p class="content">
          BBTV)SMGBBTV
        </div>
      </div>
      <div id="scrollbar">
        <div class="scroll_bg">
          <div id="dragbar"></div>
        </div>
      </div>
    </div>
    <div id="nav"> <span id="nav_be">1</span>/<span id="nav_en">3</span> </div>
    <div id="buttons">
      <div id="agree"  class="defaut" att="sublist"></div>
      <div id="denial" class="defaut" att="sublist"></div>
    </div>
  </div>
</div>
</body>
</html>

EPG

C->S:

GET /sharp/?userid=020211000001234&usergroup=B_GROUP&token=1234123412341234123412341234 HTTP/1.1
User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Cookie: User_Confirm=1; PHPSESSID=12341234123412341234123412341234
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: en,*
Host: portal1.bbtv.cn

S->C:

HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Thu, 15 Sep 2011 12:34:56 GMT
Content-Type: text/html; charset=utf-8;
Transfer-Encoding: chunked
X-Powered-By: PHP/5.2.14
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: __userinfo=123412341234123412341234; expires=Sat, 15-Oct-2011 12:34:56 GMT; path=/
Content-Encoding: gzip
X-Via: 1.1 ja232:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="http://portal1.bbtv.cn/sharp/VIEW/css/general.css" type="text/css" rel="stylesheet" />
        <link href="http://portal1.bbtv.cn/sharp/VIEW/css/index.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="http://portal1.bbtv.cn/sharp/VIEW/js/key.js"></script>
        <script type="text/javascript" src="http://portal1.bbtv.cn/sharp/VIEW/js/bestv.js"></script>
        <script type="text/javascript" src="http://portal1.bbtv.cn/sharp/VIEW/js/menu.js"></script>
        <title></title>
    </head>
    <body>
    ......
    </body>
</html>

播放

目前BesTV的节目源是700kbps RMVB格式的,网络传输采用P2P技术。

C->S:

GET /sharp/index.php/service/getplayurl?itemcode=106410&code=143363 HTTP/1.1
User-Agent: QtWebKit/4.7 (KHTML, like Gecko) LC-60LX830A
Referer: http://portal1.bestv.cn/sharp/index.php/movie?pcode=SMG_1002&categorycode=SMG_NEW&code=106410&cur_index=
Cookie: User_Confirm=1; PHPSESSID=1234123412341234123412341234; __userinfo=12341234123412341234123412341234
Connection: Keep-Alive
Accept-Encoding: gzip
Accept-Language: en,*
Host: portal1.bestv.cn

S->C:

HTTP/1.1 200 OK
Server: nginx/0.7.67
Date: Fri, 16 Sep 2011 12:34:56 GMT
Content-Type: text/html
Transfer-Encoding: chunked
X-Powered-By: PHP/5.2.14
Content-Encoding: gzip
X-Via: 1.1 ja234:80 (Cdn Cache Server V2.0), 1.1 yz46:88 (Cdn Cache Server V2.0)
Connection: keep-alive

{"ResultCode":"0","ResultMsg":"\u60a8\u7684\u8d26\u6237\u5f53\u524d\u4f59\u989d\u4e3a0.0\u5143!",
 "PlayURL":"tvod:\/\/123412341234123412341234\/%CA%C0%C3%B3%D6%D0%D0%C4.700knew.rmvb?fid=12341234123412341234123412341234
 &token=123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234123412341234"}