Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm trying to defuse a binary bomb and I'm stuck in phase 4. I know I have a resursive method to debug to be able

I'm trying to defuse a binary bomb and I'm stuck in phase 4. I know I have a resursive method to debug to be able to solve the phase and I know my input in %d %d. thats about all i can figure out for this phase. someone please help me debugg this. thanks

image text in transcribed

1 19 Breakpoint 1, 0x0000000000401030 in phase_4 () [(gdb) disas Dump of assembler code for function phase_4: sub lea lea mov mov callq cmp jne $0x18 , %rsp 0xc(%rsp),%rcx 0x8(%rsp),%rdx $0x4027bd,%esi $0x8,%eax 0x400c10 <__isoc99_sscanfoplt> $0x2,%eax 0x40105e 8x0000000000401030 : 0x0000000000401034 : 0x0000000000401039 : 0x000000000040103e : 0x0000000000401043 : 0x0000000000401048 : 0x000000000040104d : 0x0000000000401050 : 8x0000000000401052 : mov 0xc(%rsp),%eax 0x0000000000401056 : 0x0000000000401059 : cmp $0x2,%eax 0x000000000040105c : 0x000000000040105e : 0x0000000000401063 : mov 0xc(%rsp),%esi 0x0000000000401067 8x000000000040106c : 0x800000000040107|: 0x0000000000401077 : 0x000000000040107c : 0x0000000000401080 : sub $0x2,%eax jbe callq 0x401574 0x401063 $0x5,%edi 0x400ff8 mov callq 0x40107c callq 0x401574 add $0x18,%rsp retq End of assembler dump. (gdb) 1 19 Breakpoint 1, 0x0000000000401030 in phase_4 () [(gdb) disas Dump of assembler code for function phase_4: sub lea lea mov mov callq cmp jne $0x18 , %rsp 0xc(%rsp),%rcx 0x8(%rsp),%rdx $0x4027bd,%esi $0x8,%eax 0x400c10 <__isoc99_sscanfoplt> $0x2,%eax 0x40105e 8x0000000000401030 : 0x0000000000401034 : 0x0000000000401039 : 0x000000000040103e : 0x0000000000401043 : 0x0000000000401048 : 0x000000000040104d : 0x0000000000401050 : 8x0000000000401052 : mov 0xc(%rsp),%eax 0x0000000000401056 : 0x0000000000401059 : cmp $0x2,%eax 0x000000000040105c : 0x000000000040105e : 0x0000000000401063 : mov 0xc(%rsp),%esi 0x0000000000401067 8x000000000040106c : 0x800000000040107|: 0x0000000000401077 : 0x000000000040107c : 0x0000000000401080 : sub $0x2,%eax jbe callq 0x401574 0x401063 $0x5,%edi 0x400ff8 mov callq 0x40107c callq 0x401574 add $0x18,%rsp retq End of assembler dump. (gdb)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions