[精品]CSAPP Bomb Lab 解题报告(六)

接上篇[精品]CSAPP Bomb Lab 解题报告(五)

gdb常用指令

设置Intel代码格式:set disassembly-flavor intel

查看反汇编代码:disas phase_1

查看字符串:(gdb) x/s 0x402800

0x402800:	"Gunston"

6. Phase 6: linked lists / pointers / structs

6.1 本关密码

4 3 2 1 6 5

6.2 解题过程

%rdi = input

6.2.0 观察函数 phase_6

在 bomb.asm 中找到函数 phase_6 对应的汇编语句:

  00000000004010f4 <phase_6>:
  4010f4:   41 56                   push   %r14
  401

猜你喜欢

转载自blog.csdn.net/wlwdecs_dn/article/details/109575413