https://github.com/milankovo/instrlen
Custom instruction length for hex-rays
https://github.com/milankovo/instrlen
hex-rays ida ida-plugin ida-pro
Last synced: 4 months ago
JSON representation
Custom instruction length for hex-rays
- Host: GitHub
- URL: https://github.com/milankovo/instrlen
- Owner: milankovo
- Created: 2024-12-13T02:02:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-17T13:20:45.000Z (4 months ago)
- Last Synced: 2026-01-17T23:52:14.449Z (4 months ago)
- Topics: hex-rays, ida, ida-plugin, ida-pro
- Language: C++
- Homepage:
- Size: 116 KB
- Stars: 27
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instrlen Plugin
The Instrlen plugin is a tool for IDA Pro that allows for setting the length of an instruction to a custom value. This can be useful when the code is obfuscated or there are jumps after the instruction prefixes.
## Installation
To install the Instrlen plugin, follow these steps:
1. Copy the `instrlen.(dll|dylib)` file to the IDA plugins folder.
2. Launch IDA Pro.
3. Go to the instruction you want to change the length of.
4. Navigate to the `Edit/Plugins` menu.
5. Choose `Change Instruction Length` from the list of plugins and enter the desired length.
## Building the Plugin
To build the Instrlen plugin, you will need to use the [ida-cmake](https://github.com/allthingsida/ida-cmake) build system.
Please refer to the ida-cmake documentation for instructions on how to set up and use the build system.
Once you have set up the ida-cmake build system, you can build the Instrlen plugin by running the following commands:
```
git clone https://github.com/milankovo/instrlen
cmake -B build64 -DEA64=YES -S src/
cmake --build build64 --config Release
```
Note: The Instrlen plugin is compatible with IDA Pro 9.0. While it has been tested with this version, it might be possible to use it with previous versions of IDA Pro.
## Demonstration
