Tag: ollydbg

如何用ollydbg找到应用程序的function?

假设我发布了以下应用程序。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show(“Hello World!”,”Message Box”); } } } 现在这是我的问题: 使用ollydbg按下按钮后如何找到负责显示消息框的按钮function? 如何禁用按钮单击? 注意 :这必须仅使用ollydbg完成。 假设我无法访问代码。 我们将非常感谢一步一步的例子。

使用OllyDebug破解C#应用程序

我想知道是否有办法用OllyDebug破解C#Windows应用程序。 我用Visual C#2010 Express编写了一个简单的CrackMe应用程序。 当我用OllyDebug打开它并根据需要修改ASM代码时,OllyDebug中没有“复制到可执行文件”选项,因为我的注册表单窗口是用“new”运算符动态分配的(我相信,VirtualAlloc()函数调用在调试器中)。 虽然我能够修改ASM代码(这只是NOP’ing JE跳转),但是我无法用破解的代码保存我的.exe文件,看起来像OllyDbg“看到”数据段中的代码,当时该代码不存在应用程序启动并且仅动态分配。 任何人都可以帮我解决这个问题吗? 我认为至少有两种方法可以修改* .exe: 1)使用OllyDbg深入挖掘代码,找到分配前实际代码所在的位置(因为新的RegistrationForm实例不会神奇地超出空间,是吗?) 2)如果它允许在VS Express中快速创建应用程序并且不需要太多复杂的代码,则使用静态调用,因此每次单击“Register”时都会显示相同的RegistrationForm窗口(它将保存在应用程序的代码部分中,因此将在OllyDbg中修改。 可以指出如何重写代码并保持简单分配RegistrationForm(singleton?)的相同实例。 我唯一需要的是破解并保存* .exe,重新启动并填写任何数据以“完成注册”。 以下是使用Main()方法的MyCrackMe类的代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyCrackMe { class MyCrackMe { public static void Main() { MyForm mainWindow = new MyForm(); System.Windows.Forms.Application.Run(mainWindow); } } } 主窗口类: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using […]