Question: Please only edit/answer part that states Put your code here Thank you 2.4 Task 2: Exploiting the Vulnerability We provide you with a partially completed

Please only edit/answer part that states "Put your code here"

Thank you

Please only edit/answer part that states "Put your code here" Thank you2.4 Task 2: Exploiting the Vulnerability We provide you with a partially

2.4 Task 2: Exploiting the Vulnerability We provide you with a partially completed exploit code called "exploit.c". The goal of this code is to construct contents for badfile. In this code, the shellcode is given to you. You need to develop the rest /exploit.c /A program t hat creates a file containing code for launching shll/ include include char shellcode [ "1x311 xcO / Line 1: xorl /* Line 2: pushl %eax / Line 3: pushl $0x68732121 / Line: pushl $0x6e69622 / Line 5: movl /> Line 6: pushl %eax / Line 7: pushl tebx / Line 8: movl / Line 9 cdq / Line 10: movb / Line 11: int eax, teax x50 x68/sh" x68 "/bin" esp, %ebx x50 x53 x89 xe1" x99 %esp, %ecx s0x0b, %al $0x80 "xcdx80 void main (int argc, char argv) char buffer [517 FILE +badfile Initialize buffer with 0x90 (NOP instruction) 2.4 Task 2: Exploiting the Vulnerability We provide you with a partially completed exploit code called "exploit.c". The goal of this code is to construct contents for badfile. In this code, the shellcode is given to you. You need to develop the rest /exploit.c /A program t hat creates a file containing code for launching shll/ include include char shellcode [ "1x311 xcO / Line 1: xorl /* Line 2: pushl %eax / Line 3: pushl $0x68732121 / Line: pushl $0x6e69622 / Line 5: movl /> Line 6: pushl %eax / Line 7: pushl tebx / Line 8: movl / Line 9 cdq / Line 10: movb / Line 11: int eax, teax x50 x68/sh" x68 "/bin" esp, %ebx x50 x53 x89 xe1" x99 %esp, %ecx s0x0b, %al $0x80 "xcdx80 void main (int argc, char argv) char buffer [517 FILE +badfile Initialize buffer with 0x90 (NOP instruction)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!