Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Binary Bomb lab, please find six numbers to defuse the bomb ( gdb ) disas phase _ 2 Dump of assembler code for function

This Binary Bomb lab, please find six numbers to defuse the bomb
(gdb) disas phase_2
Dump of assembler code for function phase_2:
0x0000000000400f10<+0>: push %rbx
0x0000000000400f11<+1>: sub $0x20,%rsp
0x0000000000400f15<+5>: mov %rsp,%rsi
0x0000000000400f18<+8>: callq 0x401548
0x0000000000400f1d <+13>: cmpl $0x0,(%rsp)
0x0000000000400f21<+17>: js 0x400f2a
0x0000000000400f23<+19>: mov $0x1,%ebx
0x0000000000400f28<+24>: jmp 0x400f40
0x0000000000400f2a <+26>: callq 0x401512
0x0000000000400f2f <+31>: jmp 0x400f23
0x0000000000400f31<+33>: callq 0x401512
0x0000000000400f36<+38>: add $0x1,%rbx
0x0000000000400f3a <+42>: cmp $0x6,%rbx
0x0000000000400f3e <+46>: je 0x400f4d
0x0000000000400f40<+48>: mov %ebx,%eax
0x0000000000400f42<+50>: add -0x4(%rsp,%rbx,4),%eax
0x0000000000400f46<+54>: cmp %eax,(%rsp,%rbx,4)
0x0000000000400f49<+57>: je 0x400f36
0x0000000000400f4b <+59>: jmp 0x400f31
0x0000000000400f4d <+61>: add $0x20,%rsp
0x0000000000400f51<+65>: pop %rbx
0x0000000000400f52<+66>: retq
End of assembler dump.
(gdb) disas read_six_numbers
Dump of assembler code for function read_six_numbers:
0x0000000000401548<+0>: sub $0x8,%rsp
0x000000000040154c <+4>: mov %rsi,%rdx
0x000000000040154f <+7>: lea 0x4(%rsi),%rcx
0x0000000000401553<+11>: lea 0x14(%rsi),%rax
0x0000000000401557<+15>: push %rax
0x0000000000401558<+16>: lea 0x10(%rsi),%rax
0x000000000040155c <+20>: push %rax
0x000000000040155d <+21>: lea 0xc(%rsi),%r9
0x0000000000401561<+25>: lea 0x8(%rsi),%r8
0x0000000000401565<+29>: mov $0x4026f9,%esi
0x000000000040156a <+34>: mov $0x0,%eax
0x000000000040156f <+39>: callq 0x400c30<__isoc99_sscanf@plt>
0x0000000000401574<+44>: add $0x10,%rsp
0x0000000000401578<+48>: cmp $0x5,%eax
0x000000000040157b <+51>: jle 0x401582
0x000000000040157d <+53>: add $0x8,%rsp
0x0000000000401581<+57>: retq
0x0000000000401582<+58>: callq 0x401512
End of assembler dump.

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