Skip to content

wp Audio Player 插件音乐地址解密函数

2010 二月 28
by 荒野无灯

看了好久没有找到wp Audio Player 插件的解密函数在哪里,估计应该是在那个flash的播放器里面。希望有flash高手可以把代码弄出来,我把那个.swf文件解密成.fla文件后没有发现解密代码。
下面是我写的解密函数(这个解密函数并不是十分正确,至少我已经测试过有些网址无法解密),可以解密大部分网址:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
function mydecode($string)
{
$codekey = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";
$ntexto='';
$str='';
for ($i = 0; $i < strlen($string); $i++)
{
    //echo '$i:'.$i.'</br>';
   for($j=0;$j<strlen($codekey);$j++)
   {
   if($string{$i}===$codekey{$j})
     {
       $ret=$j;
       break;
     }
   }
   $ntexto.=substr("0000".base_convert($ret, 10, 2), -6);
}
//echo '$ntexto:'.$ntexto.'</br>';
$o='';
$o.='00000';
for($i=strlen($o);$i>0;$i--)
{
    if(substr($o,0,$i)===substr($ntexto,-$i))
    {
    $ntexto=substr($ntexto,0,strlen($ntexto)-$i);
    break;
    }
}
//echo $ntexto;


    for ($i = 0; $i < strlen($ntexto); $i = $i + 8)
            {
             $rs= substr($ntexto, $i, 8);
              $rs=base_convert($rs, 2, 10);
              $str.=chr($rs);
            }  
echo utf8_encode($str);

}

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=3472

2 Responses Post a comment
  1. 二月 28, 2010

    这个解密在我能力之外了,帮顶~

    • 十二月 25, 2010

      万兄真是无处不在啊,能在这里看到 真是缘分啊 哈哈 ~! :grin:

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS