bomb及跳入secret_phase法二

Welcome to my fiendish little bomb. You have 6 phases with
which to blow yourself up. Have a nice day!
I am not part of the problem. I am a Republican.
Phase 1 defused. How about the next one?
1 2 4 8 16 32
That's number 2. Keep going!
5 -466
Halfway there!
12 3 DrEvil
So you got that one. Try this one.
YONEFG
Good work! On to the next...

6 1 2 3 4 5

Curses, you've found the secret phase!
But finding it and solving it are quite different...

1001
Wow! You've defused the secret stage!
Congratulations! You've defused the bomb!

 

secret_phase 的测试

 

(gdb) x/a 0x603110+0x10
0x603120 <n1+16>: 0x603150 <n22>
(gdb) x 0x603150
0x603150 <n22>: 0x32
(gdb) x/a 0x603150+0x10
0x603160 <n22+16>: 0x6031d0 <n34>
(gdb) x 0x6031d0
0x6031d0 <n34>: 0x6b
(gdb) x/a 0x6031d0+0x10
0x6031e0 <n34+16>: 0x6032d0 <n48>
(gdb) x 0x6032d0
0x6032d0 <n48>: 0x3e9

 

 

跳入secret_phase 法二

(gdb) break phase_1
Breakpoint 1 at 0x400ead
(gdb) break secret_phase
Breakpoint 2 at 0x401297
(gdb) run
Starting program: /root/bombs/bomb_125
Welcome to my fiendish little bomb. You have 6 phases with
which to blow yourself up. Have a nice day!
sdf

Breakpoint 1, 0x0000000000400ead in phase_1 ()
(gdb) jump *0x401297
Continuing at 0x401297.

Breakpoint 2, 0x0000000000401297 in secret_phase ()
(gdb) stepi
0x0000000000401298 in secret_phase ()



 

posted @ 2019-11-05 14:48  柠檬味呀  阅读(414)  评论(0编辑  收藏  举报