xd cheatsheet
I am often forgetting the command switches for static analysis tools like objdump
, xxd
and rabin2
. So these notes will server
as my quick reference cheatsheet.
objdump
Command | Description |
---|---|
objdump -M intel | Use the superior intel syntax |
objdump -j .text | Only dump the text section |
objdump -D | Disassemble all data/code in every section of the ELF file |
objdump -d | Disassemble only program code in an ELF file |
objdump -h | Display summary information from the section headers of the object file |
objdump -tT | View all symbols |
rabin2
Command | Description |
---|---|
rabin -z obj | Dump strings with section info |
rabin -I obj | Display general information about a binary |
rabin2 -i obj | Display imported functions/symbols |
rabin2 -l obj | Display the linked libraries |
rax2
Command | Description |
---|---|
rax2 -s 63 6f 6f 6c | hex sting to characters |
rax -S C J i l k | characters to hex string |