简体   繁体   English

IDA Pro 补丁问题

[英]IDA Pro patching issue

I have built a open source program by me and I was using it to practice on Disassembly techniques But I am very use to ollydbg program but In there when you find the address in ollydbg you can put nop's which is no operations and you can then copy to executable you are patching and save it then you got a fix but In in IDA Pro disassembler program how do you do the nop's like ollydbg Or IS it a different kind of setting that I need to choose that's my question.... Thanks for the help....我已经建立了一个开源程序,我用它来练习反汇编技术 但是我非常习惯 ollydbg 程序但是在那里当你在 ollydbg 中找到地址时,你可以把 nop 的没有操作,然后你可以复制到可执行文件,您正在修补并保存它,然后您得到了修复,但是在 IDA Pro 反汇编程序中,您如何像 ollydbg 一样执行 nop 或者是我需要选择的不同类型的设置,这是我的问题....谢谢帮助....

I have tried other things but only in ollydbg instead of ida pro我尝试过其他的东西,但只在 ollydbg 而不是 ida pro

There is no special command for that.没有特殊的命令。 But IDA has very powerful script languages engine.但是 IDA 有非常强大的脚本语言引擎。 You can write simple script in IDC or python, like this:你可以在 IDC 或 python 中编写简单的脚本,如下所示:

IDC:国际数据中心:

// NOP from 0x401357 to 0x401380
auto ea = 0x401357;
auto end_ea = 0x401380;
while (ea < end_ea) {
    patch_byte(ea, 0x90);
    ea = ea + 1;
}

python: Python:

# NOP from 0x401357 to 0x401380
ea = 0x401357
end_ea = 0x401380
while ea < end_ea:
    patch_byte(ea, 0x90)
    ea = ea + 1

Another option is to use plug-ins.另一种选择是使用插件。 Community created many useful plug-ins.社区创建了许多有用的插件。 One of them is ida-patcher.其中之一是ida-patcher。 I never used it, but look at the PR #1 on github.我从未使用过它,但请查看 github 上的 PR #1。 It adds ability to NOP region of memory, like same feature in the OllyDbg.它增加了 NOP 内存区域的能力,就像 OllyDbg 中的相同功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM