Search Engine for C/C++ data structures

ccrawl allows to extract, collect and search features related to C/C++ data structures (more precisely everthing related to definitions of struct, union, class, templates, enum, typedef, prototypes and macros).


In the context of binary code analysis, tools like IDAPro and Ghidra provide an initial representation of the code in assembly language and usually enhance this simple representation with features extracted from the analysis of the control flow graph (executable code) and the analysis of how the data manipulated by instructions is structured. These various features ideally provide a kind of “decompiled” representation of the program.

Plugins like HexRays perform an analysis of the control flow that leads to a decompiled representation much closer to an equivalent C source code than the initial assembly instruction listing. However, informations related to the nature and structure of manipulated data are still mostly unidentified. Althrough some dedicated tools like TILIB or FLIRT or plugins to import this kind of information from windows PDB files exist, this time consuming identification is still largely performed manually by the user. This is particularly true in the case of embedded system firmware analysis.

ccrawl aims to provide a kind of search engine related to data structures ideally automating the identification of data types as well as constants/macros identifiers. Basically the idea is to allow queries like “find known structures that have a pointer to char at offset 8 and an unsigned integer at offset 56 with total size of 96 bytes ?” or “find every macro that define value 0x1234 ?” or even “find the mask of values from enum X that correspond to 0xabcd ?”

Finally, once collected in its database(s), ccrawl allows to output queried structures in various dedicated formats: C of course, but also ctypes, VTypes (used by Volatility), or amoco. The subset of all types required to fully define a given structure can also be shown as well.

Indices and tables