[转载]Boblog文本版密码丢失后用来找回密码的findback.php
信息来源:邪恶八进制信息安全团队([url]www.eviloctal.com[/url])[code]<?
require ('global.php');
if (!$actions || !$newpassword) {
echo "<form action='findback.php?actions=1' method='post'> Enter new password: <input name='newpassword' type='text'> <input type='submit' value='CHANGE!'></form>";
}
else {
if ($newpassword) {
$newpassword=md5($newpassword);
if (file_exists("$diruser/userid.php")) $usertemp=@readfromfile("$diruser/userid.php");
$qa=@explode("|",$usertemp);
$qa[2]=$newpassword;
$usertemp=@implode("|", $qa);
writetofile ("$diruser/userid.php", $usertemp);
echo "Password Changed! Please delete this program immediately, Or it will be Very Dangerous!";
}
}
?>[/code]
将以上文件保存为php 上传到服务器执行就可以修改密码了
页:
[1]