How to do it...

Use the following steps to adapt the methodology, skipping unnecessary phases.

  1. Type the following in the Terminal session and review the output:
$ readelf -e -s -W ch04-example2
  1. Next, type the following in the Terminal session and review the output:
$ objdump -d -M intel ch04-example2
  1. In the open Terminal session, type the following and examine the output:
$ ltrace ./ch04-example2
  1. Type the following in the Terminal session:
$ strace ./ch04-example2
  1. Next, type the following in the Terminal session:
$ gdb -q -tui ch04-example2
(gdb) set disassembly-flavor intel
(gdb) layout asm
(gdb) layout regs
(gdb) break main
(gdb) run
  1. From here, we can focus on using GDB for analyzing the binary. Alternatively, you could use EDB for dynamic analysis.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.107.96