The Structure Creator Plugin is a powerful utility for IDA Pro that enables users to create and edit data structures directly within the IDA Pro interface. Developed by Cynic, this plugin streamlines the process of structure manipulation with an intuitive form-based interface.
- Create new structures with a user-friendly form interface
- Edit existing structures by selecting them in the disassembly view
- Support for multiple structure definitions in a single input
- Automatic semicolon handling for structure fields
- Comment removal functionality
- Intelligent structure parsing and validation
- Support for complex nested structures
The plugin is accessible via the hotkey combination: Ctrl-Alt-S
- StructureCreatorFormClass: Handles the UI form for structure input
- Type Information Processing:
get_tid()
: Retrieves type information at a specific addressget_struc()
: Obtains structure information from type IDremove_comments()
: Cleans up structure definitions by removing commentsprocess_structure_definition()
: Ensures proper syntax with semicolonssplit_multiple_structures()
: Handles multiple structure definitions
- Captures current cursor position
- Checks for existing structure at cursor location
- Displays input form with current structure (if any)
- Processes user input:
- Removes comments
- Adds necessary semicolons
- Splits multiple structures
- Validates and creates/updates structures
- Position cursor on an existing structure (optional)
- Press
Ctrl-Alt-S
to open the Structure Creator form - Enter or modify structure definition
- Submit to create/update the structure
- Place the plugin file in IDA Pro's plugins directory
struct example_struct {
int field1;
char field2[32];
void* ptr_field;
};