How to find a function of application with ollydbg?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 13:13:40

问题


Let's say i released the application below.

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");
        }
    }
}

Now here is my questions:

  1. How to find the function of button which is responsible to show message box after pressing the button with ollydbg?
  2. How to disable the button click ?

Notes:this must be done with ollydbg only. Assume that i don't have access to the code.

A step-by-step example would be greatly appreciated.


回答1:


Using Olly or IDA is a lot of work for nothing.

Use .NET Reflector for decompilation(there is 14-day trial) and download Reflexil plugin to be able to modify code.

Finding the place should not be too hard since you have decompiled sourcecode.

If you cannot find the place you can try one of these:

  • Connect reflector to Visual studio

  • Export source code and just run it from Visual studio

If code is obfuscated I cannot help you there, you just must start playing with it till you defeat obfuscation

With Reflexil addon you can simply delete/modify the function




回答2:


Why not use IDA? You can "easily" nop out the function.



来源:https://stackoverflow.com/questions/24148651/how-to-find-a-function-of-application-with-ollydbg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!