Shellcoder is a lightweight plugin for Binary Ninja that enhances shellcode development and analysis. It provides a versatile interface for assembling, disassembling, and formatting shellcode, supporting multiple architectures and output formats akin to the online ShellStorm Assembler/Disassembler.
- Multi-architecture Support: Compatible with all architectures supported by Binary Ninja.
- Flexible Input Formats:
- Assembly instructions
- Inline hex format (e.g., "\x90\x90")
- Space-separated hex format (e.g., 90 90)
- Multiple Output Formats:
- Inline hex
- Space-separated hex
- Python byte string
- C-style array
- Disassembled mnemonics (for disassembling)
- Customizable Mnemonic Display:
- Optional address display
- Optional bytecode display
- Adjustable base address for relative operations
- Comment usage:
- You can annotate your assembly/shellcode with comments (
#
,//
, or;
)
- You can annotate your assembly/shellcode with comments (
- Bad Character Identification: Quickly identify and highlight problematic bytes in your shellcode.
- No External Dependencies: Utilizes only Binary Ninja's built-in functionalities, ensuring a lightweight and easily deployable solution.
- Clone this repository or download the source code.
- Copy the plugin file to your Binary Ninja plugins folder:
- Windows:
%APPDATA%\Binary Ninja\plugins\
- Linux:
~/.binaryninja/plugins/
- macOS:
~/Library/Application Support/Binary Ninja/plugins/
- Windows:
- Restart Binary Ninja or reload plugins.
- Open Binary Ninja and navigate to the "Plugins" menu.
- Select "Shellcoder" to open the plugin interface.
- Enter your assembly code or hex-formatted shellcode in the input area.
- Choose your desired output format and options.
- Click "Assemble" to process your input.
- View the results in the output area.
Note: Alternatively you can use CTRL+p
to open the command palette and search for the plugin.
Contributions to the plugin are more than welcome! Here's how you can contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes with clear, descriptive commit messages.
- Push your branch and submit a pull request.
Please ensure your code adheres to the existing style and includes appropriate tests and documentation whenever necessary.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
- The Binary Ninja team for their excellent reverse engineering platform.
- The ShellStorm online assembler/disassembler for giving me the idea.
For bug reports, feature requests, or general inquiries, please open an issue on the GitHub repository.
Happy shellcoding!