0
点赞
收藏
分享

微信扫一扫

dnSpy新手入门 一

念川LNSC 2022-04-07 阅读 89
windows

dedot是.Net反混淆和脱壳器

mono 和il2cpp结构 的区别是mono在data /manage里有大量dll而il2cpp有GameAssembly.dll

C#底层的代码不是汇编,是IL语言

用VS创建一个验证程序

 class Program
    {
        static void Main(string[] args)
        {
            string inputpassworld;
            inputpassworld= Console.ReadLine();
            if (inputpassworld == "123456")
            {
                Console.WriteLine("密码正确");

            }
            else
            {
                Console.WriteLine("密码错误");
            }
            Console.ReadKey();
        }
    }

然后去bin/debug/找到exe

用管理员打开dnspy,文件——>打开路径->打开exe

 直接看到了源码,和VS里差不多,只多生成了一个flag布尔变量

于是我们可以愉快的修改了

右键或者ctrl shift +e 编辑方法

 把flag改成true

然后编译,文件->全部保存

 打开后随便输入一串正确

 

举报

相关推荐

0 条评论