HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rabin2 — Get information about binary files (ELF, PE, Java CLASS, Mach-O) - symbols, sections, linked librari

Submitted by: @import:tldr-pages··
0
Viewed 0 times
rabin2commandfilescliinformationaboutbinaryget

Problem

How to use the rabin2 command: Get information about binary files (ELF, PE, Java CLASS, Mach-O) - symbols, sections, linked libraries, etc. Comes bundled with radare2. More information: <https://manned.org/rabin2>.

Solution

rabin2 — Get information about binary files (ELF, PE, Java CLASS, Mach-O) - symbols, sections, linked libraries, etc. Comes bundled with radare2. More information: <https://manned.org/rabin2>.

Display general information about a binary (architecture, type, endianness):
rabin2 -I {{path/to/binary}}


Display linked libraries:
rabin2 -l {{path/to/binary}}


Display symbols imported from libraries:
rabin2 -i {{path/to/binary}}


Display strings contained in the binary:
rabin2 -z {{path/to/binary}}


Display the output in JSON:
rabin2 -j -I {{path/to/binary}}

Code Snippets

Display general information about a binary (architecture, type, endianness)

rabin2 -I {{path/to/binary}}

Display linked libraries

rabin2 -l {{path/to/binary}}

Display symbols imported from libraries

rabin2 -i {{path/to/binary}}

Display strings contained in the binary

rabin2 -z {{path/to/binary}}

Display the output in JSON

rabin2 -j -I {{path/to/binary}}

Context

tldr-pages: common/rabin2

Revisions (0)

No revisions yet.