Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 1: We provide you with a completed exploit code called exploit.py. You need to adjust the variables of the program accordingly and fill in

image text in transcribed

Task 1: We provide you with a completed exploit code called "exploit.py". You need to adjust the variables of the program accordingly and fill in any missing code to fulfill the buffer overflow attack. Notes on python, you don't need to compile a .py file to run it. Python is an interpreted language, and you can run the scripts directly, either using: python exploit.py Or make your script executable by adding "\#!/usr/bin/python 3 to the top of the script, making the file executable with "chmod u+x exploit.py" and then running: ./exploit.py The book utilizes the second version /exploit.py After you finish adjusting the above program, run it. This will generate the contents for "badfile". Then compile and run the vulnerable program "stack.c". If your exploit is implemented correctly, you should be able to get a shell: \$id uid =1000 (seed ) gid =1000(seed) groups =1000(seed) Task2: Find a way to obtain root shell (read book/slides). you should get the following output: VM\# id uid =1000(seed) gid =1000(seed) euid =0 (root) groups =1000(seed)

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

Students also viewed these Databases questions

Question

Describe new developments in the design of pay structures. page 475

Answered: 1 week ago