求 普通链接转换迅雷链接 php插件
bt300.com/QQ截图20130102112145.png试试这样 的办法 给你一个参考 很简单啊 自己修改一下
#!/usr/bin/php
<?php
print_r("
+--------------------------------------------------------------------------------+
迅雷协议解码工具
by crazyatom
date: 2007-10-26
+--------------------------------------------------------------------------------+
");
if($argc<2) {
print_r("
+--------------------------------------------------------------------------------+
Usage: php ".$argv." codz
codz: 输入的迅雷协议地址
Example:
php ".$argv." thunder://QUFodHRwOi8vd3d3LndvbHZlei5vcmcvWlo=
+--------------------------------------------------------------------------------+
");
exit;
}
ini_set("max_execution_time",0);
error_reporting(7);
$url = (string)$argv;
$url = trim($url);
if(preg_match("#^thunder://+$#D",$url,$code)) {
$url = $code;
$url = substr($url,10);
$url = base64_decode($url);
$url = substr($url,2,-2);
echo "解码成功,结果如下:\n";
print_r("
+--------------------------------------------------------------------------------+
".$url."
+--------------------------------------------------------------------------------+
");
} else {
echo "输入的url有错误,请核对无误后重新输入.\n";
}
?>
迅雷用的是base64加密。很简单的。 pbdq 发表于 2013-1-17 15:29 static/image/common/back.gif
迅雷用的是base64加密。很简单的。
直接编码为BASE64就行? lmj243 发表于 2013-1-18 11:52 static/image/common/back.gif
直接编码为BASE64就行?
base64_decode($url);
是解码。base64_encode($url);
是编码 铜球{:soso_e125:}
页:
[1]