SandokanCZ / IDAPatchExpression

Patch Expression Plugin lets you search for an expression in IDA and replace all bytes in the matches to the selected value. It can help to NOP some repeating junk instructions and make the code easier to read.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IDAPatchExpression

Patch Expression Plugin lets you search for an expression in IDA and replace all bytes in the matches to the selected value (simple search/replace basically). It can help to NOP some repeating junk instructions and make the code easier to read (mainly in HexRays Decompiler output). Created with Windows PE files in mind, but might be useful in other applications too...

Installation

Just copy .py file to your IDA plugins directory

Usage

  1. (Optional) Select an expression you want to search for and press Alt+Shift+P (or invoke the plugin from the Search menu)

obrazek

  1. Selected bytes appears in the Expression box where you can edit them accordingly.

  2. Edit boundaries or use provided buttons to set an area where you want to perform search and replace

  3. Hit Go to replace all bytes in all matched expressions to the specified value obrazek

Changes are more prominent in the HexRays Decompiler output (situation before and after few simple replacements):

obrazek

About

Patch Expression Plugin lets you search for an expression in IDA and replace all bytes in the matches to the selected value. It can help to NOP some repeating junk instructions and make the code easier to read.

License:MIT License


Languages

Language:Python 100.0%