Bod

objdump beautifier

screenshot

Aim

bod (Beautify ObjDump) is a python script that

  • colorizes objdump’s output to make it more readable
  • allows to disassemble a single function (see Main options)
  • allows to have a glance at the binary (see Main options)

Supported Targets

  • elf32-littlearm
  • elf32-tradlittlemips
  • elf32-tradbigmips
  • elf32-i386
  • elf64-x86-64

Tested versions of objdump

  • GNU objdump (GNU Binutils for Ubuntu) 2.26.1
  • GNU objdump (GNU Binutils for Raspbian) 2.25

Notes

  • bod will work properly only on a system using an English locale
  • bod is not compatible with the -r and -R options of objdump

License

bod is licensed under the GNU General Public License v3.0

Installation

Download

Download bod here or for the latest version on GitHub

Installation instructions

If you downloaded bod here

sudo cp bod /usr/local/bin/bod
sudo chmod +x /usr/local/bin/bod

otherwise follow the instruction on GitHub

Usage

Basic

Pipe objdump’s output to bod, for example with:

objdump -d ./binary | bod

If needed, this output can itself be piped to less thanks to

objdump -d ./binary | bod | less -R

Main options

bod allows:

  • to have a glance at what is in the binary with -l or --list
  • to look at the disassembly of a single function with -f or --function