RZ-BIN(1)
π NAME π
Bestie, this is the rz-bin(1) page: rz-bin β Binary program info extractor. Iconic. β¨
β¨ SYNOPSIS β¨
rz-bin [-AcdeEghHiIjlLMqrRsSUvVxzZ] [-@ at] [-a arch] [-b bits]
[-B addr] [-C F:C:D] [-f str] [-m addr] [-n str] [-N m:M]
[-P pdb] [-o str] [-O str] [-k query] [-D lang symname] file
No cap, that synopsis is giving βalphabet soup but make it technicalβ β every flag is exactly as written. π«Ά
π DESCRIPTION π
This command is part of the Rizin project.
rz-bin can analyze and extract useful information from binary executable files like ELF, PE, Mach-O, etc. It supports multiple architectures like x86, ARM, MIPS, PowerPC, etc.
π OPTIONS π
Okay bestie, buckle up β this is the full menu, and we are not skipping a single crumb. π
-@ addrβ Show section, symbol, or import at the given address.-Aβ List sub-binaries and their arch-bits pairs.-a archβ Set architecture (x86,arm, .. or<arch>_<bits>).-b bitsβ Set bits (32,64...).-B addrβ Override base address (PIE bins).-cβ List classes.-ccβ List classes in header format.-C fmt:C:Dβ Create[elf, mach0, pe]with Code and Data hexpairs (see-a).-dβ Show debug/dwarf information.-ddβ Load debug/dwarf information from debuginfod server.-D lang nameβ Demangle symbol name (-D allforbin.demangle=true).-eβ Entrypoint.-Eβ Globally exportable symbols.-f strβ Select sub-bin named str.-F binfmtβ Force to use that bin plugin (ignore header check).-gβ Same as-SMZIHVResizcld -SS -SSS -ee(show all information).-G addrβ Load address . offset to header.-hβ Show usage help message.-Hβ Header fields.-iβ Import (symbols imported from libraries).-Iβ Binary info.-jβ Output in JSON.-k sdb-queryβ Run sdb query. for example:'*'.-K algoβ Calculate checksums (md5,sha1, ..).-lβ Linked libraries.-L pluginβ List supported bin plugins or plugin details.-m addrβ Show source line at addr.-Mβ Main (show address of main symbol).-n strβ Show section, symbol, or import named str.-N min:maxβ Force min:max number of chars per string (see-zand-zz).-o strβ Output file/folder for write operations (outby default).-O strβ Write/extract operations (-O help).-pβ Show physical addresses.-Pβ Show debug/pdb information.-PPβ Download pdb file for binary.-qβ Be quiet, just show fewer data.-qqβ Show less info (no offset/size for-zfor ex.).-Qβ Show load address used by dlopen (non-aslr libs).-rβ Show output in rizin format.-Rβ Show relocations.-sβ Symbols.-Sβ Sections.-SSβ Segments.-SSSβ Sections mapping to segments.-Tβ Display file signature.-uβ Unfiltered (no rename duplicated symbols/sections).-Uβ Resources.-vβ Show version information.-Vβ Show binary version information.-wβ Display try/catch blocks.-xβ Extract bins contained in file.-X fmt [f] ..β Package in fat or zip the given files and bins contained in file.-Y fw fileβ Calculate all the possibles base address candidates of a firmware bin.-zβ Show strings (from data section).-zzβ Show strings (from raw strings from bin).-zzzβ Dump raw strings to stdout (for huge files).-Zβ Guess size of binary program.
π¦ ENVIRONMENT π¦
These env vars are the little mood-ring settings, bestie:
RZ_BIN_CODESIGN_VERBOSEβ make code signatures verbose.RZ_BIN_DEBASE64βe bin.debase64β try to debase64 all strings.RZ_BIN_DEBUGINFOD_URLSβe bin.dbginfo.debuginfod_urlsβ use alternative debuginfod server.RZ_BIN_DEMANGLEβe bin.demangleβ do not demangle symbols.RZ_BIN_LANGβe bin.langβ assume lang for demangling.RZ_BIN_MAXSTRBUFβe bin.maxstrbufβ specify maximum buffer size.RZ_BIN_PDBSERVERβe pdb.serverβ use alternative PDB server.RZ_BIN_PREFIXβe bin.prefixβ prefix symbols/sections/relocs with a specific string.RZ_BIN_STRFILTERβe bin.str.filter - rizin -qc 'e bin.str.filter=??' -RZ_BIN_STRPURGEβe bin.str.purgeβ try to purge false positives.RZ_BIN_SYMSTOREβe pdb.symstoreβ path to downstream symbol store.RZ_CONFIGβ sdb config file.RZ_NOPLUGINSβ do not load shared plugins (speedup loading).
π₯ EXAMPLES π₯
List symbols of a program
rz-bin -s a.out
Get offset of symbol
rz-bin -n _main a.out
Get entrypoint
rz-bin -e a.out
Load symbols and imports from rizin
rizin -n /bin/ls
[0x00000000]> .!rz-bin -prsi $FILE
π SEE ALSO π
π AUTHORS π
pancake <pancake@nopcode.org>byteninjaa0
That's the whole RZ_BIN(1) manual, dated Jan 24, 2024 β mwah, bestie πβ¨
π¦ where this page comes from
- arch rolling: rizin 0.8.2-2 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC-PDDC AND CC0-1.0 AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND MIT
- nixos 26.05: rizin 0.8.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms