This is phase 2 of the Binary Bomb Lab
Please help, I know the first digit is 0 , and something about add 4 to next num,
I will like to know the full 6 digit and how to solve it?
Dump of assembler code for function phase_2: OX0000555555555380 ; push Erbp OX000055555555538d : push %rbx OX000055555555538e ; sub $0x28, %rsp OX0000555555555392 ; MOV %rsp,%rsi > Ox0000555555555395 ; calla Ox55555555599f
OX000055555555539a ; cmpl $0x0,(%rsp) Ox000055555555539e ; jne Ox5555555553a7 Ox00005555555553a0 ; cmpl $0x1,0x4(%rsp) Ox00005555555553a5 ; je Ox5555555553ac Ox00005555555553a7 ; calle Ox555555555979 Ox00005555555553ac : MOV %rsp,%rbx OX00005555555553af ; lea Ox10(%rbx),%rbp Ox00005555555553b3 ; jmp Ox5555555553c3 OX00005555555553b5 ; calle Ox 555555555979 Ox00005555555553ba ; add $0x4,%rbx Ox00005555555553be ; CMP %rbp,%rbx Ox00005555555553c1 ; je 0x5555555553cf Ox00005555555553c3 ; MOV Ox4(%rbx), %eax OX00005555555553c6 ; add (%rbx), %eax OX00005555555553c8 ; CMP %eax, Ox8(%rbx) OX00005555555553cb ; je Ox 5555555553ba Ox00005555555553cd ; jmp Ox555555555365 OX00005555555553cf ; add $0x28, %rsp OX00005555555553d3 ; pop %rbx OX0000555555555304 ; pop %rbp OX0000555555555305 : reta End of assembler dump. [(gdb) si OX000055555555599f in read_six_numbers 0 [{gdb) disas Dump of assembler code for function read_six_numbers: => OX000055555555599f ; sub $0x8,%rsp OX00005555555559a3 ; MOV %rsi,%rdx OX00005555555559a6 ; lea Ox4(%rsi),%rcx OX00005555555559aa ; lea Ox14(%rsi),%rax OX00005555555559ae ; push %rax OX00005555555559af ; lea Ox10(%rsi),%rax Ox00005555555559b3 ; push %rax Ox00005555555559b4 ; lea Oxc(%rsi),%r9 Ox0000555555555968 ; lea Ox8(%rsi),%r8 OX00005555555559bc ; lea Ox1800(%rip),%rsi # Ox5555555572a3 OX00005555555559c3 ; MOV $0x0, %eax OX00005555555559c8 ; calla Ox555555555120 OX00005555555559cd ; add $0x10,%rsp OX00005555555559d1 ; CMP $0x5, %eax OX00005555555559d4 ; ile 0x5555555559db OX00005555555559d6 ; add $0x8,%rsp Ox00005555555559da ; retq OX00005555555559db ; calla Ox555555555979 End of assembler dump. Dump of assembler code for function phase_2: OX0000555555555380 ; push Erbp OX000055555555538d : push %rbx OX000055555555538e ; sub $0x28, %rsp OX0000555555555392 ; MOV %rsp,%rsi > Ox0000555555555395 ; calla Ox55555555599f OX000055555555539a ; cmpl $0x0,(%rsp) Ox000055555555539e ; jne Ox5555555553a7 Ox00005555555553a0 ; cmpl $0x1,0x4(%rsp) Ox00005555555553a5 ; je Ox5555555553ac Ox00005555555553a7 ; calle Ox555555555979 Ox00005555555553ac : MOV %rsp,%rbx OX00005555555553af ; lea Ox10(%rbx),%rbp Ox00005555555553b3 ; jmp Ox5555555553c3 OX00005555555553b5 ; calle Ox 555555555979 Ox00005555555553ba ; add $0x4,%rbx Ox00005555555553be ; CMP %rbp,%rbx Ox00005555555553c1 ; je 0x5555555553cf Ox00005555555553c3 ; MOV Ox4(%rbx), %eax OX00005555555553c6 ; add (%rbx), %eax OX00005555555553c8 ; CMP %eax, Ox8(%rbx) OX00005555555553cb ; je Ox 5555555553ba Ox00005555555553cd ; jmp Ox555555555365 OX00005555555553cf ; add $0x28, %rsp OX00005555555553d3 ; pop %rbx OX0000555555555304 ; pop %rbp OX0000555555555305 : reta End of assembler dump. [(gdb) si OX000055555555599f in read_six_numbers 0 [{gdb) disas Dump of assembler code for function read_six_numbers: => OX000055555555599f ; sub $0x8,%rsp OX00005555555559a3 ; MOV %rsi,%rdx OX00005555555559a6 ; lea Ox4(%rsi),%rcx OX00005555555559aa ; lea Ox14(%rsi),%rax OX00005555555559ae ; push %rax OX00005555555559af ; lea Ox10(%rsi),%rax Ox00005555555559b3 ; push %rax Ox00005555555559b4 ; lea Oxc(%rsi),%r9 Ox0000555555555968 ; lea Ox8(%rsi),%r8 OX00005555555559bc ; lea Ox1800(%rip),%rsi # Ox5555555572a3 OX00005555555559c3 ; MOV $0x0, %eax OX00005555555559c8 ; calla Ox555555555120 OX00005555555559cd ; add $0x10,%rsp OX00005555555559d1 ; CMP $0x5, %eax OX00005555555559d4 ; ile 0x5555555559db OX00005555555559d6 ; add $0x8,%rsp Ox00005555555559da ; retq OX00005555555559db ; calla Ox555555555979 End of assembler dump