1、创建asp文件粘贴代码,上传更目录,执行.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<% dim action : action=getForm("action","get") if action="pass" then editPass Sub editPass dim GroupID,PassWord,rePassword GroupID=getForm("GroupID","post") PassWord=getForm("PassWord","post") rePassword=getForm("rePassword","post") if isnul(PassWord) then alertMsgAndGo "密码不能为空","-1" if rePassword<>Password then alertMsgAndGo "两次输入密码不相同","-1" conn.Exec "update {prefix}User set [Password]='"&md5(PassWord,16)&"' where GroupID="&GroupID&"","exe" alertMsgAndGo "修改成功","-1" End Sub %> < FORM name="form" action="?action=pass" method="post" > < INPUT type="hidden" value="1" name="GroupID"/></ TD > 新密码 < INPUT type="password" class="input" name="Password"/> 确认密码 < input type="password" class="input" name="rePassword"/> < INPUT class="button" type="submit" value="修改"/> |
2、以下文件仅针对aspcms有效,适用于全所有版本;
1
2
3
4
5
6
|
<!--#include file="inc/AspCms_MainClass.asp" --> <% conn.exec "update Aspcms_Admins set AdminPassWord='49ba59abbe56e057' where UserName='admin'" ,"exe" alertMsgAndGo "密码已经修改为""123456""!请删除此文件!","/" %> |
使用方法:
上传到网站根目录,直接访问,修改admin密码为123456
3、改数据库
如果上面办法无法实施,则可以通过MD5在线加解密软件直接生成一串字符串,然后直接在数据库软件ACCESS或者MYSQL打开后的管理字段里面,直接替换;即可;
32位与64位字符串:
md5(123456,32) = e10adc3949ba59abbe56e057f20f883e
md5(123456,16) = 49ba59abbe56e057
以上密码为:123456