完美算数教室's Archiver

DoraJDJ 发表于 2015-5-1 12:02

[已解决][BUG]不能正常使用Linux免客户端验证?

[i=s] 本帖最后由 DoraJDJ 于 2015-5-29 20:47 编辑 [/i]

已解决。

昨天刚刚申请成功的Linux免客户端验证,今天弄了下结果不能正常进入服务器

我先通过[url=http://cirno.biz/mclogindiy.php]http://cirno.biz/mclogindiy.php[/url]获取用户名和Session,然后把用户名和session放到启动代码中
[img]http://img.cirno.biz/di/4HIU/Screenshot.png[/img][img]http://img.cirno.biz/di/MDD2/Screenshot-1.png[/img]

启动游戏后一切正常,但是进入服务器时出现Bad Login
[img]http://img.cirno.biz/di/FQTQ/Screenshot-2.png[/img]

(终端输出:[img]http://img.cirno.biz/dm/K3OO/Screenshot-3.png[/img])

我想问一下[url=http://cirno.biz/space.php?uid=9]@⑨[/url]  ,是不是因为某些原因导致免客户端验证不可用?预计什么时候能修好?

顺便带上我自己弄的启动代码:[url=https://bitbucket.org/snippets/DoraJDJ/zq9q]https://bitbucket.org/snippets/DoraJDJ/zq9q[/url]

发表于 2015-5-1 13:39

[b]回复 [url=http://cirno.biz/redirect.php?goto=findpost&pid=130388&ptid=24218]1#[/url] [i]DoraJDJ[/i] [/b]


    hash改变了.
你需要重新获得一下
这不是bug
每次登录启动器 或者获取hash时都会改变的.

mysql_fetch_array(
    mysql_query("SELECT mc,uid,mcid,mcloginsmp,mcmod,mcserverid,groupid,mclastloginip,password FROM {$tablepre}members WHERE mcid='{$mcid}' AND mchash='{$hash}'")
    ) or $errmsg.=" No Res ";
只有没有查到结果才会出 No Res.

DoraJDJ 发表于 2015-5-1 15:09

好吧,抓包发现sessionId没有发给验证服务器,查log也发现Cirnocraft_Auth疑似被禁用
OTZ

AtlantisStuart 发表于 2015-5-1 17:15

不行了。。。。看到程序猿在这里互相秀代码简直把我秀得到处爬{:7_290:}

发表于 2015-5-2 23:16

[b]回复 [url=http://cirno.biz/redirect.php?goto=findpost&pid=130428&ptid=24218]4#[/url] [i]AtlantisStuart[/i] [/b]


    表示这是很初级的代码。
因为功能也不复杂。所以都没用框架什么的
你也可以很轻易写出来。

DoraJDJ 发表于 2015-5-29 18:31

[i=s] 本帖最后由 DoraJDJ 于 2015-5-29 18:43 编辑 [/i]

今天重新把这个坟挖一下,因为刚才在Windows下使用同样的方法测试:
[attach]37630[/attach]
* 使用启动器依旧正常使用
[url=http://cirno.biz/space.php?uid=9]@⑨[/url]    这是什么原因造成的?

临时补充:
刚才重新到mclogindiy.php那获得了session,然后到[url]http://cirno.biz/mcjoinserver.php[/url]做个验证:
[code]mcid(MC帐号):DoraJDJ
Hash:e94ac8a6411403f1[/code]

[code]http://cirno.biz/mcjoinserver.php?user=DoraJDJ&session=e94ac8a6411403f1

密码错误,或者你使用的是离线模式=w=再或者你需要重新打开登陆器登录..User:DoraJDJ Session:[/code]

发表于 2015-5-29 19:35

[b]回复 [url=http://cirno.biz/redirect.php?goto=findpost&pid=132895&ptid=24218]6#[/url] [i]DoraJDJ[/i] [/b]


    [url=http://cirno.biz/mcjoinserver.php]http://cirno.biz/mcjoinserver.php[/url]
已经没有在用了.

还是不行么?

发表于 2015-5-29 19:52

现在应该好了..你再去试试吧

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.