0
Bomb lab phase3
i found the solution.
2 Réponses
0
Dump of assembler code for function phase_3:
=> 0x0000000000400e05 <+0>:	sub    $0x18,%rsp
   0x0000000000400e09 <+4>:	lea    0x8(%rsp),%rcx
   0x0000000000400e0e <+9>:	lea    0xc(%rsp),%rdx
   0x0000000000400e13 <+14>:	mov    $0x4023af,%esi
   0x0000000000400e18 <+19>:	mov    $0x0,%eax
   0x0000000000400e1d <+24>:	callq  0x400b00 <__isoc99_sscanf@plt>
   0x0000000000400e22 <+29>:	cmp    $0x1,%eax
   0x0000000000400e25 <+32>:	jle    0x400e3d <phase_3+56>
   0x0000000000400e27 <+34>:	cmpl   $0x7,0xc(%rsp)
   0x0000000000400e2c <+39>:	ja     0x400eb2 <phase_3+173>
   0x0000000000400e32 <+45>:	mov    0xc(%rsp),%eax
   0x0000000000400e36 <+49>:	jmpq   *0x402220(,%rax,8)
   0x0000000000400e3d <+56>:	callq  0x4012a7 <explode_bomb>
   0x0000000000400e42 <+61>:	jmp    0x400e27 <phase_3+34>
   0x0000000000400e44 <+63>:	mov    $0x2b4,%eax
   0x0000000000400e49 <+68>:	jmp    0x400e50 <phase_3+75>
   0x0000000000400e4b <+70>:	mov    $0x0,%eax
   0x0000000000400e50 <+75>:	sub    $0x3c,%eax
   0x0000000000400e53 <+78>:	add    $0x23b,%eax
   0x0000000000400e58 <+83>:	sub    $0x32a,%eax
   0x0000000000400e5d <+88>:	add    $0x32a,%eax
   0x0000000000400e62 <+93>:	sub    $0x32a,%eax
   0x0000000000400e67 <+98>:	add    $0x32a,%eax
   0x0000000000400e6c <+103>:	sub    $0x32a,%eax
   0x0000000000400e71 <+108>:	cmpl   $0x5,0xc(%rsp)
   0x0000000000400e76 <+113>:	jg     0x400e7e <phase_3+121>
   0x0000000000400e78 <+115>:	cmp    %eax,0x8(%rsp)
--Type <RET> for more, q to quit, c to continue without paging--
   0x0000000000400e7c <+119>:	je     0x400e83 <phase_3+126>
   0x0000000000400e7e <+121>:	callq  0x4012a7 <explode_bomb>
   0x0000000000400e83 <+126>:	add    $0x18,%rsp
   0x0000000000400e87 <+130>:	retq   
   
this is phase 3 and i cant find the solution



