Scroll to navigation

RASIGN2(1) General Commands Manual RASIGN2(1)

NAME

rasign2radare2 signature management tool

SYNOPSIS

rasign2 [-afjhqrvSm] [-A [AAA]] [-i script.r2] [-o sigs.sdb] [-s signspace] [-c] [file]

DESCRIPTION

Generates, dumps, and manages zignature scripts for function identification and cataloging. Zignatures are Radare2 scripts that capture metadata associated with function signatures.

Supports interpretation of FLIRT '.sig' files, execution of zignature scripts, and exporting signatures in various formats.

OPTIONS

Make signatures from all .o files in the provided .a file
[AAA]
Same as r2 -A, the more 'A's the more analysis is performed
Interpret the file as a FLIRT .sig file and dump signatures
Show help menu
Show signatures in json
script.r2
Execute this script in the r2 instance
sigs.sdb
Add signatures to file, create if it does not exist
Quiet mode
Show output in radare commands
Perform operation on sdb signature file ('-o -' to save to same file)
signspace
Save all signatures under this signspace
Add collision signatures before writing file
Show version information
Merge/overwrite signatures with same name

ENVIRONMENT

rasign2 does not use any environment variables.

EXAMPLES

Generate signatures from a library file:


$ rasign2 -o libc.sdb libc.so.6

Perform deep analysis before generating signatures:


$ rasign2 -AA -o enhanced_libc.sdb libc.so.6

Output signatures in JSON format:


$ rasign2 -j input_file

Show signatures as radare2 commands:


$ rasign2 -r input_file

Merge new signatures into an existing file:


$ rasign2 -m -o existing.sdb new_binary

Extract signatures from a FLIRT .sig file:


$ rasign2 -f flirt_signatures.sig

THE Z COMMAND IN RADARE2

The 'z' command in radare2 is dedicated to the management of binary signatures, known as zignatures. Here are the key subcommands:

Show zignatures
Find matching zignatures in current offset
Search for best match
Diff current function and signature
Show zignatures in radare format
Manage zignature files
Manage FLIRT signatures
Search zignatures
Compare current zignspace zignatures
Manage zignspaces
Show zignatures matching information

These commands facilitate a robust workflow for binary analysis, enabling the identification of known functions and comparing binary similarities.

SUPPORTED ZIGNATURE METRICS

Zignatures in radare2 can be created with various metrics:

Bytes pattern (masked)
Raw bytes pattern
Base64 comment
Real function name
Graph metrics (complexity, edges, basic blocks)
Original offset
References
Cross references
Basic block hashes
Variables and arguments

SEE ALSO

radare2(1)

AUTHORS

pancake <pancake@nopcode.org>

July 10, 2025