Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is binary Bomb lab phase 4 , please give me solution to defuse the bomb ( gdb ) disas phase _ 4 Dump of
This is binary Bomb lab phase please give me solution to defuse the bomb
gdb disas phase
Dump of assembler code for function phase:
x: sub $xrsp
x: lea xrsprcx
xd : lea xcrsprdx
x: mov $xesi
x: mov $xeax
xc : callq xcisocsscanf@plt
x: cmp $xeax
x: jne xd
x: cmpl $xexcrsp
xb : jbe x
xd : callq x
x: mov $xeedx
x: mov $xesi
xc : mov xcrspedi
x: callq xfe
x: cmp $xeax
x: jne x
xa : cmpl $xxrsp
xf : je x
x: callq x
x: add $xrsp
xa : retq
End of assembler dump.
gdb disas func
Dump of assembler code for function func:
xfe: push rbx
xfe: mov edx,eax
xfe: sub esi,eax
xfe: mov eax,ebx
xfe: shr $xfebx
xfec : add eax,ebx
xfee : sar ebx
xff: add esi,ebx
xff: cmp edi,ebx
xff: jg xffc
xff: jl x
xff: mov ebx,eax
xffa : pop rbx
xffb : retq
xffc : lea xrbxedx
xfff : callq xfe
x: add eax,ebx
x: jmp xff
x: lea xrbxesi
xb : callq xfe
x: add eax,ebx
x: jmp xff
End of assembler dump.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started