|
发表于 2013-1-17 15:29:00
|
显示全部楼层
给你一个参考 很简单啊 自己修改一下
#!/usr/bin/php
<?php
print_r("
+--------------------------------------------------------------------------------+
迅雷协议解码工具
by crazyatom
date: 2007-10-26
+--------------------------------------------------------------------------------+
");
if($argc<2) {
print_r("
+--------------------------------------------------------------------------------+
Usage: php ".$argv[0]." codz
codz: 输入的迅雷协议地址
Example:
php ".$argv[0]." thunder://QUFodHRwOi8vd3d3LndvbHZlei5vcmcvWlo=
+--------------------------------------------------------------------------------+
");
exit;
}
ini_set("max_execution_time",0);
error_reporting(7);
$url = (string)$argv[1];
$url = trim($url);
if(preg_match("#^thunder://[a-zA-Z0-9+=/]+$#D",$url,$code)) {
$url = $code[0];
$url = substr($url,10);
$url = base64_decode($url);
$url = substr($url,2,-2);
echo "解码成功,结果如下:\n";
print_r("
+--------------------------------------------------------------------------------+
".$url."
+--------------------------------------------------------------------------------+
");
} else {
echo "输入的url有错误,请核对无误后重新输入.\n";
}
?>
|
|