精易论坛

标题: 为什么搭建DZ论坛注册不成功? [打印本页]

作者: ttsymn    时间: 2017-11-24 21:16
标题: 为什么搭建DZ论坛注册不成功?
.版本 2
.支持库 spec
.程序集 窗口程序集1
.子程序 _按钮1_被单击
.局部变量 返回结果2, 文本型
.局部变量 返回的Cookie, 文本型
.局部变量 第二次返回的Cookie, 文本型
.局部变量 返回结果1, 文本型
.局部变量 formhash, 文本型
.局部变量 提交信息, 文本型
返回结果1 = 到文本 (网页_访问_对象 (“http://localhost/discuz/member.php?mod=register”, 0, , , 返回的Cookie))
formhash = 文本_取出中间文本 (返回结果1, #常量1, #常量2)
调试输出 (formhash)
提交信息 = #提交信息
提交信息 = 文本_替换 (提交信息, , , , “ac7293cf”, formhash, “77777”, “77889”, “111111”, “778899”, “111111”, “778899”, [url=mailto:“[email protected]]“[email protected][/url]”, [url=mailto:“[email protected]]“[email protected][/url]”)
输出调试文本 (提交信息)
返回结果2 = 到文本 (网页_访问_对象 (“http://localhost/discuz/member.php?mod=register&inajax=1”, 1, 提交信息, 返回的Cookie, 第二次返回的Cookie, #附加协yi头))
网页_Cookie合并更新 (返回的Cookie, 第二次返回的Cookie)
调试输出 (返回结果2)

常量如下:
#提交信息:
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="regsubmit"
yes
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="formhash"
ac7293cf
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="referer"
http://localhost/discuz/forum.php
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="activationauth"

------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="EoA47i"
22222
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="X7QLW8"
111111
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="lAwy9i"
111111
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="yBZtWw"
[email protected]
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodehash"
cSmGua4v
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodemodid"
member::register
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodeverify"
cq6v
------WebKitFormBoundary9d1DqccLkScEkjHY--
附加协yi头:
Referer:http://localhost/discuz/member.php?mod=register
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryy3Dp8DD5tuJbvHWD
#常量1
<input type="hidden" name="formhash" value="
#常量2
" />

输出信息:
* “2da2cf9f”
* ------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="regsubmit"
yes
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="formhash"
2da2cf9f
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="referer"
http://localhost/discuz/forum.php
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="activationauth"

------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="EoA47i"
22222
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="X7QLW8"
778899
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="lAwy9i"
778899
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="yBZtWw"
[email protected]
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodehash"
cSmGua4v
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodemodid"
member::register
------WebKitFormBoundary9d1DqccLkScEkjHY
Content-Disposition: form-data; name="seccodeverify"
cq6v
------WebKitFormBoundary9d1DqccLkScEkjHY--
* “<?xml version="1.0" encoding="gbk"?>
<root><![CDATA[<script type="text/javascript">
var strongpw = new Array();
var pwlength = 6;
</script>
<script src="static/js/register.js?Euz" type="text/javascript"></script>
<div id="ct" class="ptm wp cl">
<div class="nfl" id="main_succeed" style="display: none">
<div class="f_c altw">
<div class="alert_right">
<p id="succeedmessage"></p>
<p id="succeedlocation" class="alert_btnleft"></p>
<p class="alert_btnleft"><a id="succeedmessage_href">如果您的浏览器没有自动跳转,请点击此链接</a></p>
</div>
</div>
</div>
<div class="mn">
<div class="bm" id="main_message">
<div class="bm_h bbs" id="main_hnav">
<span class="y">
<a href="member.php?mod=logging&amp;action=login&amp;referer=http%3A%2F%2Flocalhost%2Fdiscuz%2Fmember.php%3Fmod%3Dregister" class="xi2">已有帐号?现在登录</a>
</span>
<h3 id="layer_reginfo_t" class="xs2">
立即注册</h3>
</div>
<p id="returnmessage4"></p>
<form method="post" autocomplete="off" name="register" id="registerform" enctype="multipart/form-data" action="member.php?mod=register">
<div id="layer_reg" class="bm_c">
<input type="hidden" name="regsubmit" value="yes" />
<input type="hidden" name="formhash" value="2da2cf9f" />
<input type="hidden" name="referer" value="http://localhost/discuz/member.php?mod=register" />
<input type="hidden" name="activationauth" value="" />
<div class="mtw">
<div id="reginfo_a">
<div class="rfm">
<table>
<tr>
<th><span class="rq">*</span><label for="EoA47i">用户名:</label></th>
<td><input type="text" id="EoA47i" name="" class="px" tabindex="1" value="" autocomplete="off" size="25" maxlength="15" required /></td>
<td class="tipcol"><i id="tip_EoA47i" class="p_tip">用户名由 3 到 15 个字符组成</i><kbd id="chk_EoA47i" class="p_chk"></kbd></td>
</tr>
</table>
</div>
<div class="rfm">
<table>
<tr>
<th><span class="rq">*</span><label for="X7QLW8">密码:</label></th>
<td><input type="password" id="X7QLW8" name="" size="25" tabindex="1" class="px" required /></td>
<td class="tipcol"><i id="tip_X7QLW8" class="p_tip">请填写密码, 最小长度为 6 个字符</i><kbd id="chk_X7QLW8" class="p_chk"></kbd></td>
</tr>
</table>
</div>
<div class="rfm">
<table>
<tr>
<th><span class="rq">*</span><label for="lAwy9i">确认密码:</label></th>
<td><input type="password" id="lAwy9i" name="" size="25" tabindex="1" value="" class="px" required /></td>
<td class="tipcol"><i id="tip_lAwy9i" class="p_tip">请再次输入密码</i><kbd id="chk_lAwy9i" class="p_chk"></kbd></td>
</tr>
</table>
</div>
<div class="rfm">
<table>
<tr>
<th><span class="rq">*</span><label for="yBZtWw">Email:</label></th>
<td><input type="text" id="yBZtWw" name="" autocomplete="off" size="25" tabindex="1" class="px" value="" required /><br /><em id="emailmore">&nbsp;</em></td>
<td class="tipcol"><i id="tip_yBZtWw" class="p_tip">请输入正确的邮箱地址</i><kbd id="chk_yBZtWw" class="p_chk"></kbd></td>
</tr>
</table>
</div>
<span id="seccode_cSAv0VmFM"></span>  
<script type="text/javascript" reload="1">updateseccode('cSAv0VmFM', '<div class="rfm"><table><tr><th><span class="rq">*</span><sec>: </th><td><sec><br /><sec></td></tr></table></div>', 'member::register');</script>
</div>
</div>
</div>
<div id="layer_reginfo_b">
<div class="rfm mbw bw0">
<table width="100%">
<tr>
<th>&nbsp;</th>
<td>
<span id="reginfo_a_btn">
<em>&nbsp;</em><button class="pn pnc" id="registerformsubmit" type="submit" name="regsubmit" value="true" tabindex="1"><strong>提交</strong></button>
</span>
</td>
<td></td>
</tr>
</table>
</div>
</div>
</form>
</div>
<div id="layer_regmessage"class="f_c blr nfl" style="display: none">
<div class="c"><div class="alert_right">
<div id="messageleft1"></div>
<p class="alert_btnleft" id="messageright1"></p>
</div>
</div>
<div id="layer_bbrule" style="display: none">
<div class="c" style="width:700px;height:350px;overflow:auto"><br />
<br />
<br />
</div>
<p class="fsb pns cl hm">
<button class="pn pnc"><span>同意</span></button>
<button class="pn"><span>不同意</span></button>
</p>
</div>
<script type="text/javascript">
var ignoreEmail = false;
addFormEvent('registerform', 0);
function showBBRule() {
showDialog($('layer_bbrule').innerHTML, 'info', 'Discuz! Board 网站服务条款');
$('fwin_dialog_close').style.display = 'none';
}
</script>
</div></div>
</div>]]></root>”


作者: 精易求精丶    时间: 2017-11-24 21:42
何必呢 直接去后台搜插件 能P量注册 比你这个写软件爽多了
作者: 白天不懂爺的黑    时间: 2017-11-25 01:47
WebKitFormBoundary9d1DqccLkScEkjHY  这个参数会变。需要获取
作者: 猥琐小胖子    时间: 2017-11-25 10:35
应该是提交的表单内容格式问题。
内容上面还有个换行的,我看你这边都是直接连了。



补充内容 (2017-11-25 10:35):
还有 附加协yi头 的表单那个值,要和表单提交的那个 值一样
作者: ttsymn    时间: 2017-11-26 22:11
猥琐小胖子 发表于 2017-11-25 10:35
应该是提交的表单内容格式问题。
内容上面还有个换行的,我看你这边都是直接连了。

谢谢,我再试试




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4