Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ubuntu@ubuntu-VirtualBox: /gdb-7.11/bomb19 Find the GDB nanual and other docunentation resources online at: tt://www.gnu.org/software/gdb/documentation/> For help, type heLp Type apropos word to search for commands related
ubuntu@ubuntu-VirtualBox: /gdb-7.11/bomb19 Find the GDB nanual and other docunentation resources online at: tt://www.gnu.org/software/gdb/documentation/> For help, type "heLp Type "apropos word" to search for commands related to "word"... Reading symbols from bomb...done (gdb) b phase 2 Breakpoint 1 at 4@@f49 (gdb) Starting progran: /hone/ubuntu/gdb-7.11/bonb19/bomb Helcone to my fiendish little bonb. You have 6 phases with which to blow yourself up. Have a nice day! 1 2 3 4 5 BOOM!!! The bomb has blown up Your instructor has been notified [Inferior 1 (process 24889) exited with code 010] (gdb) disas phase_2 of assenbler code for function phase_2: push %rbp push %rbs sub $ex28,rsp %eax , %eax %rsp,Srsi 6x0000000000400162 25s; callq0x4016a7 read-six-numbers ex006000e00040f6b s+34 e x400f72 : cmp %eax,0x4(Srbs) je 0x400f88 - %rbp,Srbs 6x0000000000488 f91 : 0x0000000000400f96 +77> 6x000000000040019f86: 6x0000000000400fa188: 0x18(%rsp),Krax %fs :0x28,Srax 0x400fa6 xphase_2+93 mov je callq6x400b98.-Stack-chkfatl@plt $0x28,rsp +97> : pop pop %rbp End of assembler dump ubuntu@ubuntu-VirtualBox: /gdb-7.11/bomb19 Find the GDB nanual and other docunentation resources online at: tt://www.gnu.org/software/gdb/documentation/> For help, type "heLp Type "apropos word" to search for commands related to "word"... Reading symbols from bomb...done (gdb) b phase 2 Breakpoint 1 at 4@@f49 (gdb) Starting progran: /hone/ubuntu/gdb-7.11/bonb19/bomb Helcone to my fiendish little bonb. You have 6 phases with which to blow yourself up. Have a nice day! 1 2 3 4 5 BOOM!!! The bomb has blown up Your instructor has been notified [Inferior 1 (process 24889) exited with code 010] (gdb) disas phase_2 of assenbler code for function phase_2: push %rbp push %rbs sub $ex28,rsp %eax , %eax %rsp,Srsi 6x0000000000400162 25s; callq0x4016a7 read-six-numbers ex006000e00040f6b s+34 e x400f72 : cmp %eax,0x4(Srbs) je 0x400f88 - %rbp,Srbs 6x0000000000488 f91 : 0x0000000000400f96 +77> 6x000000000040019f86: 6x0000000000400fa188: 0x18(%rsp),Krax %fs :0x28,Srax 0x400fa6 xphase_2+93 mov je callq6x400b98.-Stack-chkfatl@plt $0x28,rsp +97> : pop pop %rbp 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