接上篇[精品]CSAPP Bomb Lab 解题报告(二)
gdb常用指令
设置Intel代码格式:set disassembly-flavor intel
查看反汇编代码:disas phase_1
查看字符串:(gdb) x/s 0x402800
0x402800: "Gunston"
3. Phase 3: conditionals / switches
3.1 本关密码
0 207, 1 311, 2 707, 3 256, 4 389, 5 206, 6 682, 7 327
3.2 解题过程
%rdi = input