|
*求助技巧:规则求助时,请提供“规则报告.txt”、“帐号密码“、”.hwl数据包“、”.wzdr规则“等,否则可能无法给您满意答案!
*大家也有自己的事情要做,所以尽量详细,有助于更快得到大家的答复。拒绝伸手党!
*如果此求助信息不详细,或者有答案不采纳的,将会被移动灌水版块。
*规则报告内容太多,请保存为.txt文件上传,否则违规文本,会被系统禁止,无法发帖成功。
本帖最后由 拒绝病毒 于 2019-9-27 21:27 编辑
这种怎么写登录规则啊?
■■■■■■■■[14:32:45] 登录提交网址1 【返回】: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<title>跳转提示</title>
<style type="text/css">
*{ padding: 0; margin: 0; }
body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
.system-message{ padding: 24px 48px; }
.system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
.system-message .jump{ padding-top: 10px; }
.system-message .jump a{ color: #333; }
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
</style>
</head>
<body>
<div class="system-message">
<h1>:(</h1>
<p class="error">非法登录!</p>
<p class="detail"></p>
<p class="jump">
页面自动 <a id="href" href="/">跳转</a> 等待时间: <b id="wait">3</b>
</p>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),
href = document.getElementById('href').href;
var interval = setInterval(function(){
var time = --wait.innerHTML;
if(time <= 0) {
location.href = href;
clearInterval(interval);
};
}, 1000);
})();
</script>
</body>
</html>
登录失败
昨天按照1楼的办法没测试成功是因为,没注意登录页和数据提交地址不一样,也没提前访问登录页,所以导致一直登录失败。
1楼的思路是对的,只是我自己没提前发现问题。
最终解决办法:
登录前带上完整协议头访问登录页面,后面正常提交登录数据就可以登录成功了。
[登录前提交网址1]http://vip.xiongzhangtui.com/admin/public/login.html[/登录前提交网址1]
[登录前协议头1]Host: vip.xiongzhangtui.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive[/登录前协议头1]
[登录提交网址1]http://vip.xiongzhangtui.com/admin/public/dologin.html[/登录提交网址1]
[登录验证码]http://vip.xiongzhangtui.com/captcha/new.html?height=42&width=150&font_size=18[/登录验证码]
[登录提交数据1]username={账号}&password={密码}&captcha={登录验证码}&_captcha_id=[/登录提交数据1]
[登录成功特征1]登录成功!===登录成功[/登录成功特征1]
[登录失败特征1]验证码错误===验证码错误[/登录失败特征1]
|
|