游戏破解方法一
发现游戏下载完安装后还需要再次激活抓包发现 联网获取游戏的 encodeKey 来解压游戏启动文件、而每次把客户端游戏启动程序一关闭又会删除原本的游戏启动文件(解压完的游戏文件默认是隐藏的需要电脑设置查看隐藏文件才看得见),获取游戏的encodeKeyapi为:http://yx.haisenyouxi8.com/hsgame/game/getById(post请求 id=hsgame.ini文件里面的id),通过hsgame_client.dll里面来判断是否登录或激活
游戏破解方法二【C#】
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Web.Script.Serialization;
- using System.Windows.Forms;
- namespace GameDLL
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string id = ReadConfig<string>(“.\\hsgame.ini”, “config”, “id”);
- string result = null;
- try
- {
- result = getGameData(id);
- analysis(result);
- }
- catch (Exception)
- {
- MessageBox.Show(“需要联网下载encodeKey和赠品地址”);
- }
- }
- private void getExe(string key) {
- string exename = ReadConfig<string>(“.\\hsgame.ini”, “config”, “exeName”);
- FileStream fileStream = new FileStream(“.\\hsgame.dll”, FileMode.Open, FileAccess.Read);
- BinaryReader binaryReader = new BinaryReader(fileStream);
- FileStream fileStream2 = new FileStream(“.\\” + exename, FileMode.CreateNew);
- bool flag = binaryReader.PeekChar() != -1;
- if (flag)
- {
- byte[] array;
- while ((array = binaryReader.ReadBytes(1024)).Length != 0)
- {
- fileStream2.Write(decodeByte(array, key), 0, array.Length);
- }
- }
- fileStream2.Close();
- binaryReader.Close();
- fileStream.Close();
- }
- private static byte[] decodeByte(byte[] bytes, string key)
- {
- byte[] bytes2 = Encoding.UTF8.GetBytes(key);
- for (int i = 0; i < bytes.Length; i++)
- {
- foreach (byte b in bytes2)
- {
- bytes[i] ^= b;
- }
- }
- return bytes;
- }
- public static T ReadConfig<T>(string FileName, string section, string key)
- {
- bool flag = File.Exists(FileName);
- T result;
- if (flag)
- {
- string text = ReadContentValue(section, key);
- bool flag2 = text == null || string.IsNullOrEmpty(text.Trim());
- if (flag2)
- {
- result = default(T);
- }
- else
- {
- bool isEnum = typeof(T).IsEnum;
- if (isEnum)
- {
- result = (T)((object)Enum.Parse(typeof(T), text, true));
- }
- else
- {
- result = (T)((object)Convert.ChangeType(text, typeof(T)));
- }
- }
- }
- else
- {
- result = default(T);
- }
- return result;
- }
- [DllImport(“kernel32“)]
- private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retval, int size, string filePath);
- public static string ReadContentValue(string Section, string key)
- {
- StringBuilder stringBuilder = new StringBuilder(1024);
- GetPrivateProfileString(Section, key, ““, stringBuilder, 1024, “.\\hsgame.ini“);
- return stringBuilder.ToString();
- }
- private string getGameData(string id) {
- string url = “http://yx.haisenyouxi8.com/hsgame/game/getById”;
- HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
- req.Method = “POST“;
- req.ContentType = “application/x-www-form-urlencoded“;
- byte[] data = Encoding.UTF8.GetBytes(“id=“+id);
- req.ContentLength = data.Length;
- using (Stream reqStream = req.GetRequestStream())
- {
- reqStream.Write(data, 0, data.Length);
- reqStream.Close();
- }
- HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
- Stream stream = resp.GetResponseStream();
- string result = null;
- //获取内容
- using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
- {
- result = reader.ReadToEnd();
- }
- Console.WriteLine(result);
- return result;
- }
- private void analysis(string json) {
- JavaScriptSerializer serializer = new JavaScriptSerializer();
- Dictionary<string, Object> o = (Dictionary<string, Object>)serializer.DeserializeObject(json);
- Dictionary<string, Object> o2 = (Dictionary<string, Object>)o[“json“];
- Object encodeKey = o2[“encodeKey“];
- Object giftUrl = o2[“giftUrl“];
- getExe(encodeKey.ToString());
- openBrowser(giftUrl.ToString());
- }
- private void openBrowser(string url) {
- if (url == null || url.Trim().Length <= 0)
- {
- MessageBox.Show(“没有赠品“);
- }
- else {
- System.Diagnostics.Process.Start(url);
- MessageBox.Show(“赠品地址已经打开 记得保存哦”);
- }
- }
- }
- }
客户端破解说明
客户端移除了每次启动强制更新以及账号登录功能 目前客户端有778个游戏,不过每次客户端启动贼慢要去服务器端获取数据通过抓包发现了获取游戏的api(http://yx.haisenyouxi8.com/hsgame/game/query/(POST请求 没有参数))获取到所有游戏 json格式,返回的数据有用的为::downloadUrl:游戏下载地址,giftUrl:赠品下载地址(修改器存档之类的东西)、encodeKey: 解密游戏的key
使用说明
以下文件自选其一使用
海森游戏VIP客户端:下载海森游戏VIP客户端解压后打开hsgame_query1.exe即可
hsgame_client.dll:复制到程序根目录替换即可
GameDLL.exe:拷贝到安装游戏后桌面创建的快捷方式文件所在目录运行直接解压就可以
6666
666666 大哥还是牛逼的
为人民服务
haobangyo
h
怎么评论了还是下载不了啊
henbuc
先试试看
大神感谢666
66666
kyky
666
..
666
1
1
谢谢分享
感谢作者
ganxie~~~~
shishi
666
ASDASDAD
拿走了
66
111
刚来 看看
666
插眼
怎么样
可不可以
还行
12165415916
试试
666666
这款软件真的很不错
试试
666
大哥可以
评论了也下不了?
不可能吧?
dsfdfwfsczcwfdscsfewefz
想下载,评论看看
刚刚试了,即时评论了也提示说没有下载权限
刷新之后就可以下载了
厉害了大哥
我应用程序打不开为什么啊
下载网页打不开啊我这
我都评论了怎么还不能下载
刷新网页~
大哥可以
xiexie
不错,就是更新有点慢
666
666
✗咧嘴笑✗ ✗咧嘴笑✗ ✗咧嘴笑✗ ✗咧嘴笑✗ ✗咧嘴笑✗ ✗咧嘴笑✗ ✗咧嘴笑✗
回复下载///////
zan
楼主牛逼 找这个好久了
6
真的很棒
很棒
666
很赞
非常感谢
TH
123123132
来看看,好不好玩啊
这个是破解客户端吗
自己动手呗,谢了
来看看,好不好玩啊
感谢分享
感谢分享
3.。。 ✗我爱你✗
感谢分享
感谢分享
试试吧
评论了也不能下载啊
来看看,好不好玩啊
pinglunle 也不能下载??????
5454454545
感谢感谢博主分享
评论才能下载吗?
来看看
不知道怎么用
??????????
来看看好不好用
可以,下载试试
感谢分享
66
!!! 点赞 下载试试
坑爹怎么下载啊
new bee
niubi
666让我试试,谢谢老哥
试一试
地对地导弹
1265464
他人4跳舞(((((ી(・◡・)ʃ)))))
jj
来看看好不好用
怎么下载客户端啊
✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗ ✗哭了✗
试一试看好不好用
shi shi kan
白嫖使我快乐
1
1
111
好使不,好使就太牛皮了
实打实大大
是假的
感谢分享~
谢谢大佬
感谢感谢
niuniandaji
谢谢分享
xixi
好家伙!
xxxxxx
大神你好,为啥我昨天下载游戏还好使,今天下载的东西都需要激活码了呀?
谢谢大神的回复,感谢大神~~~
ss
666
+666
我看看这个有多好
我也看看这个有多好
谢谢分享
xx
h
感谢感谢大佬
1231`2312312132
实时会死u方式来恢复了爽够了溶剂3
楼主厉害
666
好像真能用!
谢谢大佬
感谢大佬!!
牛啊
666
优秀
niub
666
666
啦啦啦啦啦啦啦啦
真牛逼
666
想着想着想着想着
试试呗
不管我会不会用 一率点赞
00000
是不是不要登录器了 最讨厌这个东西了
大佬
大佬nb
学习大佬
汗淮欣喜地收下了
大佬!!
666
666
来来来看看看
大佬NB
adaddsadwdxsad f?
大佬np
大佬牛逼牛逼
666
谢谢大佬
大佬牛逼啊
顶!~~~~~~~
牛皮66
666
666
666 谢谢
666
666
大佬牛
?感谢大佬分享
NB
二万五若无
来看看,好不好玩啊
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
QWWQC
试一下,可不可以用
感谢大佬的分享 谢谢
感谢大佬分享
xx
谢谢分享
666
谢谢谢谢666
股份的广告
感谢
aaaaaaaaaaaaaaaaaaaa
感谢
大神,现在下载的游戏替换文件后虽然显示激活了,但是会闪退,请问怎么搞?
使用方法1试试
大神大大,方法一好像只能打开vip目录下载游戏,并不能启动
本来就是不能启动的,你只能在网盘内下载这游戏,这么小的压缩包怎么可能有那么多游戏
太棒了楼主
0.0
11
6
厉害
666
1
a
厉害
怎么下载
3333
牛逼大佬
怎么下载
6666
怎么下载
我要下载!
试一试不知道行不行