开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 2901|回复: 4
打印 上一主题 下一主题
收起左侧

[求助] 为什么搭建DZ论坛注册不成功?

[复制链接]
结帖率:80% (4/5)
跳转到指定楼层
楼主
发表于 2017-11-24 21:16:32 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式   湖北省武汉市
.版本 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>”

结帖率:100% (23/23)

签到天数: 1 天

沙发
发表于 2017-11-24 21:42:30 | 只看该作者   山东省日照市
何必呢 直接去后台搜插件 能P量注册 比你这个写软件爽多了
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)

签到天数: 2 天

板凳
发表于 2017-11-25 01:47:58 | 只看该作者   陕西省咸阳市
WebKitFormBoundary9d1DqccLkScEkjHY  这个参数会变。需要获取
回复 支持 反对

使用道具 举报

结帖率:100% (4/4)
地板
发表于 2017-11-25 10:35:08 | 只看该作者   香港特别行政区*
应该是提交的表单内容格式问题。
内容上面还有个换行的,我看你这边都是直接连了。



补充内容 (2017-11-25 10:35):
还有 附加协yi头 的表单那个值,要和表单提交的那个 值一样
回复 支持 反对

使用道具 举报

结帖率:80% (4/5)
地下
 楼主| 发表于 2017-11-26 22:11:09 | 只看该作者   湖北省武汉市
猥琐小胖子 发表于 2017-11-25 10:35
应该是提交的表单内容格式问题。
内容上面还有个换行的,我看你这边都是直接连了。

谢谢,我再试试
回复 支持 反对

使用道具 举报

  高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:[email protected]
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表