二进制炸弹(Defusing a Binary Bomb)
共有48个炸弹,每个炸弹有7个阶段(其中包括1个隐藏的炸弹):
bomb1的solution(包括隐藏的):
When I get angry, Mr. Bigglesworth gets upset.
1 2 6 24 120 720
5 -962
6 austinpowers
2534+1
1 5 3 4 6 2
20
bomb17的solution(包括隐藏的):
I am not part of the problem. I am a Republican.
0 5 10 15 20 25
0 981
3 austinpowers
!%@+-1
530
35
bomb33的solution(包括隐藏的):
Public speaking is very easy.
1 6 11 16 21 26
2 15
13 austinpowers
/05;=1
636
35
bomb44的solution(包括隐藏的):
I am not part of the problem. I am a Republican.
1 2 3 1 2 3
0 123
17 austinpowers
2534+1
647
20
一样的运行结果:
48个炸弹都是类似的!只要能破解一个bomb,熟悉gdb调试工具,其余的都会迎刃而解。
所用到的gdb的命令:
gdb bomb set args solution.txt r c x/s p/d p/x display VARIABLE b *0x... b FUCTION b NUM
具体的用法可以查找手册。不需要全部都看,主要关注:查看数据、设置断点。