挂海论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
 友情提示:文字/图片广告均非网站意见,请担保交易勿直接付款,由此产生的责任自负
玩游戏来117游戏网(H5不下载也能玩手游传奇,吃鸡,竞技都有)不懂社区·好资源不错过·各位资源站大佬欢迎来采集搬运寻找会做《单机》游戏修改器的开发作者长期合作,价格不是问题!联系QQ:1874088565
IOS签名/udid证书出售/送证书加群1040456405 ██【我要租此广告位】██.
.. .
查看: 8079|回复: 25
打印 上一主题 下一主题

[网页游戏教程] 网页游戏 数据分析 软件工具 教程

[复制链接]

18

积分

13

主题

6

听众
已帮网友解决0 个问题
好评
0
贡献
5
海币
1817
交易币
0
跳转到指定楼层
楼主
发表于 2014-6-12 11:27:36 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
提醒:若下载的软件是收费的"请不要付款",可能是骗子,请立即联系本站举报,执意要付款被骗后本站概不负责。(任何交易请走第三方中介,请勿直接付款交易以免被骗!切记).

友情提示:文字/图片广告均非本站意见,请担保交易勿直接付款,由此产生的责任自负!!!↑↑


这里以qq农场做举例,以下内容绝大部分转贴:

登录农场有两个渠道:

  1、通过QQ校友登录;

  2、通过QQ空间登录;

介绍一下工具:fiddler(HTTP抓包工具)

这个是在空间渠道登录的截图:








可以看到,从空间登录农场的地址是:http://happyfarm.qzone.qq.com/

            从校友登录农场的地址:http://happyfarm.xiaoyou.qq.com/          紧接着POST了一个包到:http://happyfarm.qzone.qq.com/api.php?mod=user&act=run





可以看见  body一栏内,POST的数据主要包括两大部分:

    1、各功能swf的版本;

    2、farmkey 和 farmtime;(这是一组对应的编码,farmkey是依据farmtime生成的一组32位的MD5码;

顺带介绍一下时间戳。也就是上面的farmtime;详细请参见 时间戳-百度百科

          Delphi将当前时间转换成时间戳代码:DatetimeToUnix(Now - 8 / 24);(中国处于GMT +8时区)

          记得在uses里加上DateUtils

核心内容:  返回的数据内容,也就是HTML源码。

{"farmlandStatus":[{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":2,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255605382,"r":1255756582},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255551999,"r":1255703199},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255551999,"r":1255703199},{"a":33,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":3,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255604257,"r":1255751857},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552000,"r":1255703200},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552000,"r":1255703200},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552001,"r":1255703201},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552002,"r":1255703202},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552002,"r":1255703202},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552003,"r":1255703203},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":2,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255605383,"r":1255756583},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552003,"r":1255703203},{"a":34,"b":1,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":0,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255585357,"r":1255585357},{"a":34,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":1,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255552004,"r":1255703204},{"a":33,"b":4,"c":0,"d":0,"e":1,"f":0,"g":0,"h":1,"i":100,"j":2,"k":0,"l":0,"m":0,"n":[],"o":0,"p":[],"q":1255542157,"r":1255689757}],"items":{"1":{"itemId":213},"2":{"itemId":214},"3":{"itemId":215},"4":{"itemId":216}},"exp":53725,"weather":{"weatherId":1,"weatherDesc":"\u6674\u5929"},"serverTime":{"time":1255789091},"user":{"uId":155893,"userName":null,"money":462700,"headPic":null,"exp":53725,"yellowlevel":0,"yellowstatus":0,"canbad":50,"pf":false},"cacheControl":{"seed":9,"tool":1,"diy":3},"a":true,"b":1255686763,"c":false,"task":{"taskId":0,"taskFlag":0}}

上面的这些是JSON数据格式!可以用firefox 带的json插件来分析。当然也有其他工具。后面会讲到。
分析:

  可以看到,登录后会发一个(我们定义为run动作)数据,告诉服务器开始游戏,服务器立即返回当前登录帐户的农场信息,也就是以上的JSON格式的数据。

  也就是说,只要能模拟发出首个POST数据包即可获得自己农场的信息。

  网上有牛人破解了farmtime和farmkey的关系,我这里把规则写好了。

获取farmkey:

function TCommon.getFarmKey(time: TDateTime): string;   
var
  md5: TIdHashMessageDigest5;
  temp1: Integer;
  temp3: string;
begin
  temp3 := 'sdoit78sdopig7w34057';
  temp1 := DatetimeToUnix(time - 8 / 24);
  Delete(temp3, 1, temp1 mod 10);
  temp3 := IntToStr(temp1) + temp3;
  md5 := TIdHashMessageDigest5.Create;
  Result := LowerCase(md5.AsHex(md5.HashValue(temp3)));
end;


不过这个farmkey 还有以上的JSON数据 tx 每过一段是会变动的。发在这只是参考。更深入交流更多的讨论。欢迎加入 易语言快手双修群 95353051   共同进步!那里有更详细的图文教程。数量多。就不要一一贴出!上面只是给个引子


联系我时,请说是在 挂海论坛 上看到的,谢谢!



上一篇:Flash网页游戏 工具制作简析
下一篇:QQ农场 编程探索
免责声明:
1、本主题所有言论和图片纯属会员个人意见,与本论坛立场无关。一切关于该内容及资源商业行为与www.52ghai.com无关。

2、本站提供的一切资源内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。

3、本站信息来自第三方用户,非本站自制,版权归原作者享有,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。

4、如果您喜欢该程序,请支持正版,购买注册,得到更好的正版服务。如有侵犯你版权的,请邮件与我们联系删除(邮箱:xhzlw@foxmail.com),本站将立即改正。

3正式会员
212/300

212

积分

89

主题

4

听众
已帮网友解决0 个问题
好评
0
贡献
123
海币
6092
交易币
0
沙发
发表于 2014-7-4 18:29:07 | 只看该作者
很好啊!!!!!!!!!!

9

积分

8

主题

3

听众
已帮网友解决0 个问题
好评
0
贡献
1
海币
340
交易币
0
板凳
发表于 2014-7-18 11:51:10 | 只看该作者
看帖回帖 谢谢!

0

积分

0

主题

3

听众
已帮网友解决0 个问题
好评
0
贡献
0
海币
307
交易币
0
地板
发表于 2014-7-28 06:42:12 | 只看该作者
楼主,不论什么情况你一定要hold住!hold住就是胜利!

11

积分

6

主题

4

听众
已帮网友解决0 个问题
好评
0
贡献
5
海币
1660
交易币
0
5#
发表于 2014-8-3 19:54:26 | 只看该作者
楼主 有想法

0

积分

0

主题

2

听众
已帮网友解决0 个问题
好评
0
贡献
0
海币
311
交易币
0
6#
发表于 2014-8-8 23:10:19 | 只看该作者
我支持一下

0

积分

0

主题

2

听众
已帮网友解决0 个问题
好评
0
贡献
0
海币
-2
交易币
0
7#
发表于 2014-8-14 16:31:49 | 只看该作者
楼主 有想法

30

积分

15

主题

4

听众
已帮网友解决0 个问题
好评
0
贡献
15
海币
50
交易币
0
8#
发表于 2014-12-23 21:27:06 | 只看该作者
佩服佩服!
3正式会员
110/300

110

积分

37

主题

1

听众
已帮网友解决0 个问题
好评
0
贡献
73
海币
2203
交易币
0
9#
发表于 2015-1-4 21:24:28 | 只看该作者
为毛老子总也抢不到沙发?!!
3正式会员
128/300

128

积分

51

主题

5

听众
已帮网友解决0 个问题
好评
0
贡献
77
海币
6700
交易币
0
10#
发表于 2015-1-9 04:20:26 | 只看该作者
路过的帮顶
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

免责声明|Archiver|手机版|小黑屋|挂海论坛

GMT+8, 2025-4-5 22:07 , Processed in 0.093930 second(s), 34 queries , Gzip On.

Powered by Discuz! X3.2

本站资源来自互联网用户收集发布,如有侵权请邮件与我们联系处理。xhzlw@foxmail.com

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