Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Above is my Bomb Lab Assignment. I have to disassemble this lab phase by phase and now I am stuck at phase 4. So far

image text in transcribed

Above is my Bomb Lab Assignment.

I have to disassemble this lab phase by phase and now I am stuck at phase 4.

So far I know that there should be more than two numbers and my first two correct numbers are : 0, 2

(gdb) disas Dump of assembler code for function phase_4: sub lea lea $8x18,%rsp 0xc(%rsp),%rcx 0x8(%rsp),%rdx 0x0000555555555388 : 0x000055555555538C : 0x0000555555555391 : 0x0000555555555396 0x00005555555553a2 :callq 0x555555554ef0 <__isoc99_sscanfoplt> 0x00005555555553a7 : 0x00005555555553aa ; 0x00005555555553ac 0x00005555555553b1 : mov 0xc(%rsp),%esi 0x00005555555553b5 : 0x00005555555553ba : 0x00005555555553bf 0x00005555555553c5 0x00005555555553ca 0x00005555555553cf : mov 0xc(%rsp),%eax 0x00005555555553d3 0x00005555555553d6 0x00005555555553d9 0x00005555555553db # 0x555555556bcd mov $8x0,%eax $0x2, %eax 0x5555555553cf 0x555555555920 cmp ca11q mov $8x8,%edi callq 0x55555555534f 0x5555555553ca calIq add retq sub cmp jbe $0x2,%eax $0x2, %eax 0x5555555553b1 0x5555555553ac End of assembler dump (gdb) disas Dump of assembler code for function phase_4: sub lea lea $8x18,%rsp 0xc(%rsp),%rcx 0x8(%rsp),%rdx 0x0000555555555388 : 0x000055555555538C : 0x0000555555555391 : 0x0000555555555396 0x00005555555553a2 :callq 0x555555554ef0 <__isoc99_sscanfoplt> 0x00005555555553a7 : 0x00005555555553aa ; 0x00005555555553ac 0x00005555555553b1 : mov 0xc(%rsp),%esi 0x00005555555553b5 : 0x00005555555553ba : 0x00005555555553bf 0x00005555555553c5 0x00005555555553ca 0x00005555555553cf : mov 0xc(%rsp),%eax 0x00005555555553d3 0x00005555555553d6 0x00005555555553d9 0x00005555555553db # 0x555555556bcd mov $8x0,%eax $0x2, %eax 0x5555555553cf 0x555555555920 cmp ca11q mov $8x8,%edi callq 0x55555555534f 0x5555555553ca calIq add retq sub cmp jbe $0x2,%eax $0x2, %eax 0x5555555553b1 0x5555555553ac 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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

f. Did they change their names? For what reasons?

Answered: 1 week ago