Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am working on an assignment called bomb lab for my computer class where we have to look through assembly language code and find the

I am working on an assignment called bomb lab for my computer class where we have to look through assembly language code and find the passwords. I've been stuck on phase 2 for several days now and I have no idea what to do. I have to find 6 integers in the right order to pass this phase. Can someone please walk me through how to solve this?image text in transcribed

For help, type "help" Type "apropos word" to search for commands related to "word"... Reading symbols from ./bomb...done. (gdb) r pu.txt Starting program: fsdirs/home4/home4/ugrad4/hthan/bomb pu.txt Welcome to my fiendish little bomb. You have 6 phases with which to blow yourself up. Have a nice day! Phase 1 defused. How about the next one? 1 2 3 4 5 6 B00M!!! The bomb has blown up. Your instructor has been notified. [Inferior 1 (process 23814) exited with code 010] (gdb) break phase_2 Breakpoint 1 at 0x400edf (gdb) run pu.txt Starting program: fsdirs/home4/home4/ugrad4/hthan/bomb pu.txt Welcome to my fiendish little bomb. You have 6 phases with which to blow yourself up. Have a nice day! Phase 1 defused. How about the next one? 1 2 3 4 5 6 Breakpoint 1, 0x0000000000400edf in phase 2 () (gdb) disas Dump of assembler code for function phase_2: > 0x0000000000400edf : push %rbp push %rbx 0x0000000000400ee0 0x0000000000400ee5 0x0000000000400ee8 : 0x0000000000400eed jg 0x0000000000400ef3 : 0x0000000000400ef8 jmp0x400f17 0x0000000000400efa 0x0000000000400efc : add 0x8(%rbp),%eax 0x0000000000400eff: cmp %eax,0x4(8Tbp) 0x0000000000400f02: je 0x0000000000400 f04 0x0000000000400f09 : 0x0000000000400f@c45s; 0x000 0000000400f10 : cmp $0x6,%ebx 0x0000000000400f13 jne 0x400efa 0x0000000000400f15 :jmp0x400f21 0x0000000000400f17 562; 0x0000000000400f1a : mov $0x1,sebx 0x0000000000400f1f jmpx400efa mov %rsp,ersi callq 0x4016cd 0x400f17 callq 0x401697 mov %ebx,%eax 0x400f09 add add $0x1,sebx $0x4 , % rbp mov %rsp,%rbp Type to continue, or q

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions