Use the following steps to adapt the methodology, skipping unnecessary phases.
- Type the following in the Terminal session and review the output:
$ readelf -e -s -W ch04-example2
- Next, type the following in the Terminal session and review the output:
$ objdump -d -M intel ch04-example2
- In the open Terminal session, type the following and examine the output:
$ ltrace ./ch04-example2
- Type the following in the Terminal session:
$ strace ./ch04-example2
- 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
- From here, we can focus on using GDB for analyzing the binary. Alternatively, you could use EDB for dynamic analysis.