首页
社区
课程
招聘
[讨论]一段用来加密电影播放地址的vbscript
发表于: 2005-4-20 03:22 4882

[讨论]一段用来加密电影播放地址的vbscript

2005-4-20 03:22
4882
<script language="vbscript">
on error resume next
URL="00011468000114630001146000011463000114670001146500011460000114640001146400011466000114600001146300011468000114660001146100011523000115250001153200011519000115150001146600011461000115230001152500011532000115190001151500011461000115230001152500011532000114610001146200011467000114620001146500011465000114630001146100011523000115160001153600011529000114610001146100011511000115220001152200011460000115330001152300011532"
sText        =document.cookie
sField        ="PATHPASS"
sPos        =instr(sText,sField)
sPos2        =instr(sPos+1,sText,";")

if sPos2>0 then
        sText=mid(sText,sPos,sPos2-sPos)
else
        sText=mid(sText,sPos,len(sText)-sPos+1)
end if

sField=split(sText,"=")

PathPass=trim(sField(1))

sText=URL
sTLen=len(sText)

For i=1 to sTLen step 8
        sTmp=cint(mid(sText,i,8))-cint(PathPass)
        If sTmp > 127 Then
                sTmp2 = cint(mid(sText, i + 8, 8)) -cint(PathPass)
                sStr = sStr & chr(ascw(ChrB(sTmp2) & ChrB(sTmp)))
                i = i + 8
        Else
                sStr = sStr & Chr(sTmp)
        End If
Next

MediaPlayer.settings.balance=0*100

MediaPlayer.url="mms://" & sStr
MediaPlayer.filename="mms://" & sStr
MediaPlayer.controls.play
</script>
用URL snooper查出其真实播放地址是:mmst://61.153.224.164/movie4/movie/mov/050331/mfzs/all.wmv
现在的问题是:如果当看这段代码可以算出其真实播放地址吗(不是用包分析工具来捕获得来的)

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 107
活跃值: (54)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
注意以下是我从浏览器上复制的源码(它是用php写的所以可能很多是我们看不到的)
<HTML>
<HEAD>
<title>-播放器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
</HEAD>
<script src="script/cookie.js"></script>

<SCRIPT LANGUAGE="JavaScript">
var WMP7;
try
{
     WMP7 = new ActiveXObject('WMPlayer.OCX');
}catch(e)
{
        alert('请安装微软媒体播放器9.0版本(Windows Media Player 9)!');
        self.location="download_wmp.php";
        window.resizeTo(500,200);
}

var player_width        =        320;                        //宽度
var player_height        =        240;                        //高度
var player_scale        =        player_height/player_width;        //宽高比
window.resizeTo(530,530*player_scale+105);
var movie_id                =        '1755';
var movie_index                =        '0';
var movie_title                =        '魔法灾神 上集';
var cookie_name                =        'player_cookie';
var movie_state                =        new Array();
var movie_state_str;
var cookie_array_length        =3;
var expiryDate                 =         new Date();
expiryDate.setTime(expiryDate.getTime() + 604800000);
</script>

<script src="script/player.js"></script>

<BODY bgColor="#000000" oncontextmenu="return false" leftMargin="0" topMargin="0" onresize="resize();" onload="player_init();" onmousemove="mouse_move();">
<div id="Layer1" style="Z-INDEX: 4; LEFT: 28px; POSITION: absolute; height: 10px; top: 380px; visibility: hidden;" name="Layer1"><img height="10" src="images/bstep.gif" width="23" alt="时间调节"> </div>
<div id="Layer3" style="z-index: 100; left:181px; POSITION: absolute; height: 10px; top: 380px; visibility: hidden;" name="Layer3"><img name="trs" src="images/bstep2.gif" width="23" height="10" style="cursor:hand" onclick="mouse_setpos();" alt=""> <SPAN id="mousetime" style="font-size:12px;color:#666666"></SPAN></div>

<SCRIPT event="NewStream" for="MediaPlayer" language="JScript">
         MediaPlayer_NewStream()
</SCRIPT>

<SCRIPT event="PlayStateChange" for="MediaPlayer" language="javascript">
        MediaPlayer_PlayStateChange()
</SCRIPT>

<SCRIPT event="ReadyStateChange" for="MediaPlayer" language="JScript">
        MediaPlayer_ReadyStateChange()
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_Error( )
        self.location="message.php?er=5&popup=true"
End Sub
</SCRIPT>

  <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="100%" height="100%" align="left" valign="middle" background="images/playerbg.gif">
<OBJECT
ID=MediaPlayer width="320" height="240"
CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="正在加载播放器..."
TYPE="application/x-oleobject" viewastext>
<PARAM NAME="URL"                                                 VALUE="
00011468000114630001146000011463000114670001146500011460000114640001146400011466000114600001146300011468000114660001146100011523000115250001153200011519000115150001146600011461000115230001152500011532000115190001151500011461000115230001152500011532000114610001146200011467000114620001146500011465000114630001146100011523000115160001153600011529000114610001146100011511000115220001152200011460000115330001152300011532
00011468000114630001146000011463000114670001146500011460000114640001146400011466000114600001146300011468000114660001146100011523000115250001153200011519000115150001146600011461000115230001152500011532000115190001151500011461000115230001152500011532000114610001146200011467000114620001146500011465000114630001146100011523000115160001153600011529000114610001146100011511000115220001152200011460000115330001152300011532">
<PARAM NAME="AudioStream"                                 VALUE="-1">
<PARAM NAME="AutoSize"                                         VALUE="-1">
<PARAM NAME="AutoStart"                                 VALUE="0">
<PARAM NAME="AnimationAtStart"                         VALUE="0">
<PARAM NAME="AllowScan"                                 VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize"         VALUE="-1">
<PARAM NAME="AutoRewind"                                 VALUE="0">
<PARAM NAME="Balance"                                         VALUE="0">
<PARAM NAME="BaseURL"                                         VALUE="http://movie.96005.com">
<PARAM NAME="BufferingTime"                         VALUE="5">
<PARAM NAME="CaptioningID"                                 VALUE="">
<PARAM NAME="ClickToPlay"                                 VALUE="-1">
<PARAM NAME="CursorType"                                 VALUE="0">
<PARAM NAME="CurrentPosition"                         VALUE="-1">
<PARAM NAME="CurrentMarker"                         VALUE="0">
<PARAM NAME="DefaultFrame"                                 VALUE="">
<PARAM NAME="DisplayBackColor"                         VALUE="0">
<PARAM NAME="DisplayForeColor"                         VALUE="16777215">
<PARAM NAME="DisplayMode"                                 VALUE="0">
<PARAM NAME="DisplaySize"                                 VALUE="-1">
<PARAM NAME="Enabled"                                         VALUE="-1">
<PARAM NAME="EnableContextMenu"                 VALUE="0">
<PARAM NAME="EnablePositionControls"         VALUE="0">
<PARAM NAME="EnableFullScreenControls"         VALUE="0">
<PARAM NAME="EnableTracker"                         VALUE="-1">
<PARAM NAME="FullScreen"                                 VALUE="0">
<PARAM NAME="InvokeURLs"                                 VALUE="-1">
<PARAM NAME="Language"                                         VALUE="-1">
<PARAM NAME="Mute"                                                 VALUE="0">
<PARAM NAME="PlayCount"                                 VALUE="-1">
<PARAM NAME="PreviewMode"                                 VALUE="0">
<PARAM NAME="Rate"                                                 VALUE="1">
<PARAM NAME="SAMILang"                                         VALUE="">
<PARAM NAME="SAMIStyle"                                 VALUE="">
<PARAM NAME="SAMIFilename"                                 VALUE="">
<PARAM NAME="StretchToFit"                                 VALUE="-1">
<PARAM NAME="SelectionStart"                         VALUE="-1">
<PARAM NAME="SelectionEnd"                                 VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents"                 VALUE="-1">
<PARAM NAME="SendErrorEvents"                         VALUE="-1">
<PARAM NAME="SendKeyboardEvents"                 VALUE="0">
<PARAM NAME="SendMouseClickEvents"                 VALUE="0">
<PARAM NAME="SendMouseMoveEvents"                 VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning"                         VALUE="0">
<PARAM NAME="ShowControls"                                 VALUE="0">
<PARAM NAME="ShowAudioControls"                 VALUE="0">
<PARAM NAME="ShowDisplay"                                 VALUE="0">
<PARAM NAME="ShowGotoBar"                                 VALUE="0">
<PARAM NAME="ShowPositionControls"                 VALUE="0">
<PARAM NAME="ShowStatusBar"                         VALUE="0">
<PARAM NAME="ShowTracker"                                 VALUE="0">
<PARAM NAME="TransparentAtStart"                 VALUE="-1">
<PARAM NAME="VideoBorderWidth"                         VALUE="0">
<PARAM NAME="VideoBorderColor"                         VALUE="0">
<PARAM NAME="VideoBorder3D"                         VALUE="0">
<PARAM NAME="Volume"                                         VALUE="100">
<PARAM NAME="WindowlessVideo"                         VALUE="0">
<PARAM NAME="UiMode"                                         VALUE="none">
</OBJECT>
</td>
    </tr>
        <tr><td height="12"> <DIV ID="DVDMSG" STYLE="FONT-SIZE: 12px; COLOR: white; FONT-FAMILY: 宋体; POSITION: absolute; left: 10px;"><SPAN id="statefield"></SPAN> <SPAN id="bufferfield"></SPAN> <SPAN id="timefield"></SPAN> <SPAN id="movietitle"></SPAN></DIV></td></tr>
    <tr>
      <td height="60"><table width="100%" height="60" border="0" cellpadding="0" cellspacing="0" background="images/player_02.gif">
        <tr>
          <td width="309" valign="top" background="images/player_02.gif"><table width="309" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="images/player_01.gif" alt="" width="309" height="12" border="0" usemap="#Map"></td>
              </tr>
          </table></td>
          <td width="100%" rowspan="2" valign="top" background="images/player_02.gif"> </td>
          <td width="130" rowspan="2" valign="top" background="images/player_02.gif"><img src="images/player_03.jpg" alt="" width="130" height="60" border="0" usemap="#Map2"></td>
        </tr>
        <tr>
          <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="images/player_04.gif" width="12" height="48" alt=""></td>
                <td><img src="images/player_05.gif" width="38" height="48" id="btnplay" alt="播放" style="cursor:hand" onClick="btnplay_onclick()"></td>
                <td><img src="images/stop_06.gif" width="36" height="48" id="btnstop" alt="停止" style="cursor:hand" onClick="btnstop_onclick()"></td>
                <td><img src="images/player_07.gif" width="32" height="48" id="btngop" alt="快退" onclick="btnreverse_onclick()" style="cursor:hand"></td>
                <td><img src="images/player_08.gif" width="29" height="48" id="btngon" alt="快进" onclick="btnforward_onclick()" style="cursor:hand"></td>
                <td><img src="images/player_09.gif" width="11" height="48" alt=""></td>
                <td><img src="images/player_10.gif" width="30" height="48" id="btnmute" onclick="btnmute_onclick()" alt="静音" style="cursor:hand"></td>
                <td><div id="Layer2" style="Z-INDEX: 2; POSITION: absolute; width:10px; height: 19px; left: 245px; top: 404px; visibility: hidden;" name="Layer2"><img height="17" src="images/bsound.gif" width="9" alt="音量调节(volume)"> </div>
                                <img src="images/player_11.gif" width="82" height="48" alt=""></td>
                <td><div id="Layer4" style="Z-INDEX: 1; POSITION: absolute; width:10px; height: 19px; left: 275px; top: 404px; visibility: hidden;" name="Layer4"><img height="17" src="images/bsound.gif" width="9" alt="声道调节"> </div>
                <img src="images/player3_11.gif" width="74" height="48" alt=""></td>
                <td><img src="images/player_12.gif" width="27" height="48" alt="全屏" style="cursor:hand" onClick="btnfullscr_onclick()"></td>
                <td><img src="images/player_13.gif" width="12" height="48" alt=""></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
</table>
<map name="Map2">
<area shape="rect" coords="101,0,142,12" onclick="btnforward_onclick()" alt="快进" href="#">
</map>
<map name="Map">
<area shape="rect" coords="0,2,29,15"  onclick="btnreverse_onclick()" alt="快退" href="#">
</map>
<script language="vbscript">
on error resume next
URL="00011468000114630001146000011463000114670001146500011460000114640001146400011466000114600001146300011468000114660001146100011523000115250001153200011519000115150001146600011461000115230001152500011532000115190001151500011461000115230001152500011532000114610001146200011467000114620001146500011465000114630001146100011523000115160001153600011529000114610001146100011511000115220001152200011460000115330001152300011532"
sText        =document.cookie
sField        ="PATHPASS"
sPos        =instr(sText,sField)
sPos2        =instr(sPos+1,sText,";")

if sPos2>0 then
        sText=mid(sText,sPos,sPos2-sPos)
else
        sText=mid(sText,sPos,len(sText)-sPos+1)
end if

sField=split(sText,"=")

PathPass=trim(sField(1))

sText=URL
sTLen=len(sText)

For i=1 to sTLen step 8
        sTmp=cint(mid(sText,i,8))-cint(PathPass)
        If sTmp > 127 Then
                sTmp2 = cint(mid(sText, i + 8, 8)) -cint(PathPass)
                sStr = sStr & chr(ascw(ChrB(sTmp2) & ChrB(sTmp)))
                i = i + 8
        Else
                sStr = sStr & Chr(sTmp)
        End If
Next

MediaPlayer.settings.balance=0*100

MediaPlayer.url="mms://" & sStr
MediaPlayer.filename="mms://" & sStr
MediaPlayer.controls.play
</script>
</BODY>
</HTML>
2005-4-20 04:07
0
雪    币: 367
活跃值: (42)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
MediaPlayer.settings.balance=0*100
'加上一句显示地址就可以了
inputbox "","","mms://" & sStr
'
MediaPlayer.url="mms://" & sStr
MediaPlayer.filename="mms://" & sStr
MediaPlayer.controls.play
2005-4-20 09:02
0
游客
登录 | 注册 方可回帖
返回
//