Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the fourth phase of my binary bomb lab. Need to find two numbers move on to the next phase. So far, I've managed

This is the fourth phase of my binary bomb lab. Need to find two numbers move on to the next phase.

So far, I've managed to find that the second number is 24. I've looked at other examples of this problem and they all either require only one number or they have a constraint on what the first number can be, 0-14,but as far as I can tell, I have a constraint of 0-2.

When I've input all the different cominations [0,24],[1,24],[2,24], they aren't correct so I've looked into function func4, but I can't figure out what the recursive function is doing.

image text in transcribed

image text in transcribed

Dump of assembler code for function phase_4: $0x2c, %esp 0x1c (%esp), %eax %eax, 0xc (%esp) 0x18 (%esp), %eax %eax, 0x8 (%esp) sub lea mov lea mov mov! $0x804a5e1, 0x4(%esp) mov mov call 0x80489101soc99 sscanfeplt> cmip jne 0x8048dda mov sub cmip jbe 0x8048ddf call 0x804934c mov mov movl $0x5 , (%esp) call 0x8048d58 cmip 0x08048dbl 0x08048db5 0x08048dbd 0x08048dcl 0x08048dc4 0x30 (%esp), %eax %eax, (%esp) $0x2, %eax 0x08048dcc 0x08048dce 0x08048dd2 0x08048dd5 0x08048dd8 0x08048dda 0x1c (%esp), %eax $0x2, %eax $0x2, %eax 0x1c (%esp), %eax %eax, 0x4 (%esp) 0x08048de3 0x08048de7 0x08048dee 0x18 (%esp), %eax 0x8048dfephase 0x08048df7 0x08048df9 0x08048dfe 0x08048e01 4+92> call 0x804934c add ret $0x2c, %esp Dump of assembler code for function phase_4: $0x2c, %esp 0x1c (%esp), %eax %eax, 0xc (%esp) 0x18 (%esp), %eax %eax, 0x8 (%esp) sub lea mov lea mov mov! $0x804a5e1, 0x4(%esp) mov mov call 0x80489101soc99 sscanfeplt> cmip jne 0x8048dda mov sub cmip jbe 0x8048ddf call 0x804934c mov mov movl $0x5 , (%esp) call 0x8048d58 cmip 0x08048dbl 0x08048db5 0x08048dbd 0x08048dcl 0x08048dc4 0x30 (%esp), %eax %eax, (%esp) $0x2, %eax 0x08048dcc 0x08048dce 0x08048dd2 0x08048dd5 0x08048dd8 0x08048dda 0x1c (%esp), %eax $0x2, %eax $0x2, %eax 0x1c (%esp), %eax %eax, 0x4 (%esp) 0x08048de3 0x08048de7 0x08048dee 0x18 (%esp), %eax 0x8048dfephase 0x08048df7 0x08048df9 0x08048dfe 0x08048e01 4+92> call 0x804934c add ret $0x2c, %esp

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

Students also viewed these Databases questions

Question

Identify the five components of a data communications system.

Answered: 1 week ago

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago