![]() |
![]()
| ![]() |
![]()
NAMErasign2 - a tool for generating and managing binary file signatures SYNOPSISrasign2 [options] [file] DESCRIPTIONThe rasign2 tool is designed for creating, dumping, and managing signature files for binary analysis. It facilitates the generation of signature databases (SDB) from binary files, making it easier to identify and catalog functions and other symbols. The tool can interpret FLIRT 'I.sig' files, execute custom Radare2 scripts, and output signatures in multiple formats. OPTIONS
USAGE EXAMPLESBasic signature generation: rasign2 -o libc.sdb libc.so.6
This command generates signatures from 'libc.so.6' and saves them in 'libc.sdb'.
Enhanced analysis: rasign2 -A -o enhanced_libc.sdb libc.so.6
This performs a deeper analysis before generating signatures, potentially
discovering more functions.
Output in Radare2 commands: rasign2 -r input_file | grep main
Prints the discovered signatures for 'main' as Radare2 commands.
JSON output: rasign2 -j input_file
Outputs the generated signatures in JSON format.
Merging signatures: rasign2 -m -o existing_sigs.sdb new_sigs.sdb
Merges or overwrites signatures in 'existing_sigs.sdb' with those from
'new_sigs.sdb'.
THE Z COMMAND IN RADARE2The z command in radare2 is dedicated to the management of binary signatures, known as zignatures. Zignatures are used for identifying and cataloging functions across different binaries by their unique characteristics, such as bytes patterns, graph metrics, and other attributes. CONFIGURATION OPTIONSThe behavior of zignature processing can be fine-tuned through a variety of configuration options, accessible via 'e??zign.' in radare2. Some key configuration options include:
ADDING ZIGNATURESZignatures can be added with the 'za' command, supporting a variety of types such as bytes patterns, graph metrics, and more.
ZIGNATURE COMMANDSThe z command encompasses several subcommands for managing zignatures:
SUPPORTED ZIGNATURE METRICSZignatures in radare2 can be created with a variety of metrics, each capturing different aspects of binary functions. These metrics include:
USAGE EXAMPLES FOR THE Z COMMANDThe z command in radare2 is versatile, offering various functionalities through its subcommands. Here are five usage examples: z
Displays all zignatures currently loaded in radare2.
z.
Searches for and displays zignatures that match at the current offset in the
binary.
z/
Searches and match all signatures loaded against all the analyzed functions in
order to give a name to every one.
zo libc.sdb
Loads zignatures from the specified SDB file into the current session.
zaF
Generates zignatures for all identified functions in the binary and adds them to
the current session.
zb
Searches for and displays the closest matching zignatures to the function at the
current offset, helping identify similar functions across binaries.
These examples showcase the `z` command's ability to manage zignatures efficiently, aiding in the binary analysis process by leveraging the power of zignatures for function identification and comparison. SEE ALSOr2(1), radare2(1) WWWhttps://www.radare.org/ AUTHORSpancake <pancake@nopcode.org>
|