• .net 一些常用的工具来破解


    在.net  我们经常提到破 ReflectorSimpleAssemblyExplorer和CFF Explore几个工具. 我们有一个非常简单的Windows Form方案,例如,说他们如何使用,码,如以下:

    public partial class Conversion : Form
        {
            public Conversion()
            {
                InitializeComponent();
            }
            bool isTrialExpired = true;
            private void button1_Click(object sender, EventArgs e)
            {
                double c = Convert.ToDouble(textBox1.Text);
                double f = (c * 9 / 5) + 32;
                label3.Text = f.ToString();
            }
            private void TrialExpiredCheck()
            {
                if (isTrialExpired)
                {
                    MessageBox.Show(@"Trial Duration has expired! Installed Freh copy", "!!!!Alert Message!!!!");
                    Application.Exit();
                }
            }
            private void Conversion_Load(object sender, EventArgs e)
            {
                TrialExpiredCheck();
            }
           
        }


    正常执行弹出消息框然后程序退出.

    要破解此程序有几个方法:1.让isTrialExpired为false;2.清空Conversion_Load方法 3.清空TrialExpiredCheck方法. 我们如今以上面3个工具依此来实现一下:

    Reflector:

    Reflector必须有Reflexil插件.用Reflector打开程序找到Conversion_Load方法,选择tool中的Reflexil:

    如今我们须要在Conversion_Load方法中加入一句  isTrialExpired = false;的代码, 操作例如以下:

    改动Conversion_Load例如以下:

    点"OK"button,再Save As:

    执行结果:

    SimpleAssemblyExplorer:

     打开程序选择class Editor:

     bool isTrialExpired = true;这句代码事实上是两句   bool isTrialExpired = false;  isTrialExpired = true;第二句在构造方法运行,也相应这里标出的前3个命令,我们仅仅需删除这3个指令就能够了.

    执行结果:

    CFF Explore:

     用ILDASM打开程序

    找到TrialExpiredCheck方法,这里我们做2个破解,1删除 Application.Exit();2.删除方法中的全部内容:

    用CFF Explore打开程序

    在RAV处输入20cc:

    注意

    IL_0018: /* 28 | (0A)00001A */ call void [System.Windows.Forms]System.Windows.Forms.Application::Exit()这句的地址是 28 1A 00 00 0A

    把28 1A 00 00 0A所有改为00, 然后点改动button

    Save As:

    执行结果:

    假设要删除TrialExpiredCheck方法的所有内容,既删除例如以下指令:

     

    须要把标记的部分所有改为00:

    保存后执行结果:

    下载 没有什么不妥的欢迎拍砖!

  • 相关阅读:
    【leetcode】416. Partition Equal Subset Sum
    【leetcode】893. Groups of Special-Equivalent Strings
    【leetcode】892. Surface Area of 3D Shapes
    【leetcode】883. Projection Area of 3D Shapes
    【leetcode】140. Word Break II
    【leetcode】126. Word Ladder II
    【leetcode】44. Wildcard Matching
    【leetcode】336. Palindrome Pairs
    【leetcode】354. Russian Doll Envelopes
    2017.12.22 英语面试手记
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4564285.html
Copyright © 2020-2023  润新知