吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 62211|回复: 126
收起左侧

[.NET逆向] 3DM番茄 修改器 解除限制

[复制链接]
erchioce 发表于 2019-1-25 11:05
本帖最后由 erchioce 于 2019-1-25 18:07 编辑

不发工具,仅思路

波西亚时光 为例

修改器在/My Time At Portia/Portia_Data/Managed/Assembly-CSharp.dll中注入ToGameModManagerNet类来初始化修改器
类中方法private IEnumerator ToLogin()中为登录方法
原方法
原方法

private IEnumerator ToLogin()
{
        this.Button_注册.interactable = false;
        this.Button_登录.interactable = false;
        this.InputField_用户名.interactable = false;
        this.InputField_密码.interactable = false;
        System.Random random = new System.Random();
        int validationCode = this.GetValidationCode(random.Next(10, 10000));
        Debug.Log(validationCode);
        string str = "http://www.togamemod.cn/config/default.php";
        WWW www = new WWW(string.Format(str + "?username={0}&paswd={1}&chaozhuo=denglu&shuiji={2}", WWW.EscapeURL(this.InputField_用户名.text), WWW.EscapeURL(this.InputField_密码.text), validationCode));
        yield return www;
        if (www != null && string.IsNullOrEmpty(www.error))
        {
                string text = new Regex("[a-z0-9].*").Match(www.text).Value;
                byte[] bytes = this.strToToHexByte(text);
                text = Encoding.UTF8.GetString(bytes);
                string[] array = text.Split(new char[]
                {
                        '|'
                });
                if (array[0] == "err#01")
                {
                        this.Text_登录提示.text = "用户不存在,请检查输入!";
                }
                if (array[0] == "err#02")
                {
                        this.Text_登录提示.text = "密码错误,请检查输入!";
                }
                if (array[0] == "ok")
                {
                        Debug.Log(array[1]);
                        base.StartCoroutine(this.SetUserAvatar(array[1]));
                        this.Text_用户名.text = this.InputField_用户名.text;
                        this.Text_用户组.text = this.GetGroupName(array[2]);
                        this.Text_爱心.text = "爱心:" + array[8];
                        this.Text_金币.text = "金币:" + array[6];
                        this.Text_贡献.text = "贡献:" + array[7];
                        this.Text_声望.text = "声望:" + array[5];
                        this.Panel_登录窗口.SetActive(false);
                        PlayerPrefs.SetString("ToUserName", this.InputField_用户名.text);
                        PlayerPrefs.SetString("ToPassWord", this.InputField_密码.text);
                        if (int.Parse(array[8]) >= 10)
                        {
                                this.Button_强行送礼一般.interactable = true;
                                this.Button_强行送礼不喜欢.interactable = true;
                                this.Button_强行送礼喜欢.interactable = true;
                        }
                        Debug.Log(this.Text_用户名.text + " | " + this.Text_用户组.text);
                }
                Debug.Log(text);
        }
        else
        {
                this.Text_登录提示.text = www.error;
                Debug.Log(www.error);
        }
        this.Button_注册.interactable = true;
        this.Button_登录.interactable = true;
        this.InputField_用户名.interactable = true;
        this.InputField_密码.interactable = true;
        yield break;
}

修改为
修改为

private IEnumerator ToLogin()
{
        this.Button_注册.interactable = false;
        this.Button_登录.interactable = false;
        this.InputField_用户名.interactable = false;
        this.InputField_密码.interactable = false;
        this.Text_用户名.text = "ercjul";
        this.Text_用户组.text = "Cracked by ercjul from 52pojie.cn";
        this.Text_爱心.text = "爱心:999";
        this.Text_金币.text = "金币:999";
        this.Text_贡献.text = "贡献:999";
        this.Text_声望.text = "声望:999";
        this.Panel_登录窗口.SetActive(false);
        this.Button_强行送礼一般.interactable = true;
        this.Button_强行送礼不喜欢.interactable = true;
        this.Button_强行送礼喜欢.interactable = true;
        yield break;
}

补图

未修改

1.png
2.png

修改后

3.png
4.png


补充
下dnspy改改就好了,都不用1分钟,这就没必要发工具了
这发了工具,淘宝转手5块6块我也看不爽
有人要写工具的话可以直接改番茄的安装工具

免费评分

参与人数 14吾爱币 +19 热心值 +14 收起 理由
shen97cn + 1 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
冥墨幽 + 1 + 1 谢谢@Thanks!
y惊才风逸 + 1 + 1 我很赞同!
鸢苓 + 1 + 1 我很赞同!
Hmily + 7 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
asdwy1980 + 1 谢谢@Thanks!
杀猪用牛刀 + 1 + 1 谢谢@Thanks!
龍、貓 + 1 + 1 请问下3DM番茄修改器的那些编译的XX怎么解决的啊?
goodnight94 + 1 + 1 我很赞同!
Supermexyh + 1 + 1 那个修真模拟器的是LoginBtnOnClick,不是ToLogin():IE
4876 + 1 + 1 热心回复!
沧恋 + 1 + 1 原来是DLL啊,在玩修仙模拟器正好改了
xindu136480 + 1 + 1 发工具啊,凶碟
wyloveit + 1 + 1 谢谢@Thanks!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

406456915 发表于 2019-3-5 10:22
本帖最后由 406456915 于 2019-3-5 10:23 编辑

大神,修仙模拟器的番茄《了不起的修仙模拟器》 内置八十七项修改器v1.1.8社区版 改成必须花钱注册账号登录后才可以开始安装,我用dnSpy6.0.1打开这个安装程序只找到第一页的花钱注册的文本封包,但是第二页面注册登录的窗口一直找不到。能给看看说一下怎么才可以找出它吗? QQ截图20190305101427.jpg


腾讯微云下载  https://share.weiyun.com/53yUQT6   提取码: hm8r04
 楼主| erchioce 发表于 2019-2-27 17:20
白木 发表于 2019-2-27 17:11
求大佬讲讲番茄太吾修改社区版怎么解除限制

都是差不多的
[C#] 纯文本查看 复制代码
this.Text_爱心.text = "爱心:" + array[8];
this.Text_金币.text = "金币:" + array[6];
this.Text_贡献.text = "贡献:" + array[7];
this.Text_声望.text = "声望:" + array[5];
this.Panel_登录窗口.SetActive(false);
PlayerPrefs.SetString("ToUserName", this.InputField_用户名.text);
PlayerPrefs.SetString("ToPassWord", this.InputField_密码.text);
if (int.Parse(array[8]) >= 10)
{
    this.Button_强行送礼一般.interactable = true;
    this.Button_强行送礼不喜欢.interactable = true;
    this.Button_强行送礼喜欢.interactable = true;


找最上面的设置这些值的地方,或者下面这些设置按钮可以点击的地方
主要就是让程序运行
[C#] 纯文本查看 复制代码
this.[不可用按钮].interactable = true;

Junle 发表于 2019-1-25 12:41
此间少年莼 发表于 2019-1-25 12:49
感谢楼主分享,支持一下! 自己笨就是看不懂
Boxhunter 发表于 2019-1-25 13:33
谢谢大佬
皓哥阿 发表于 2019-1-25 14:47
感谢楼主分享,支持一下!
zhangtianwang 发表于 2019-1-25 14:48
感谢楼主的分享
兜里有秘密 发表于 2019-1-25 15:02
求工具 看不懂!  
fuling 发表于 2019-1-25 15:27
没学过的完全看不懂
tenaiai 发表于 2019-1-25 15:28
感谢提供思路
hot58172485 发表于 2019-1-25 15:32
谢谢楼主分享!!
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-4-27 06:33

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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