Create shellcode for either unlink

Assignment Help Other Subject
Reference no: EM132700844

If you can use online c compiler, that would be great, but if the assignment cannot be done with online c compiler, then please let me know asap and which compiler you should use.

shellcode
======
Compile echo.c with the following command

gcc -m32 -fno-stack-protector -z execstack -fcf-protection=none echo.c

If you are using some old gcc versions, you can take out the option

-fcf-protection=none

if it is not available.

(1) Create shellcode for either unlink (Linux system call 10) or rmdir (Linux system call 40). unlink deletes a name and possibly the file it refers to.
rmdir deletes an empty directory.
They both take (char *pathname) as the parameter, where the string refers to the name of the file or directory including optional path.
You can refer to Linux system call manual for more details (google linux ssytem call list).

(2)
Use echo.c as the victim program, create a payload for the shellcode you created in (1).
Create an attack script (printf or python script as demo'ed in class) to inject the payload.
Demonstrate with the following steps.

a) create a file (for unlink) or directory (for rmdir) named "foo" command: "touch foo" to create a file named foo command: "mkdir foo" to create an empty directory named foo
b) inject the shellcode
c) verify file or directory foo is deleted.

(3)
Do (1) and (2) for both system calls unlink and rmdir.

What to submit:
A report, with screenshots or transcript, and drawings (memory layout) if have.

Include your payload in the report.

Also submit your attack script or command.

Attachment:- echo.rar

Reference no: EM132700844

Questions Cloud

Value of martell mining stock : Martell Mining was doing well the first two years growing at a rate of 20%. But from the beginning of the third year (or at the end of the second year)
Cost of the plant including flotation costs-leonardo co : Calculate the cost of the plant including flotation costs. (Round to 2 decimals)
How to recover the actual block of years from the array : How to recover the actual block of years from the array computed while finding the maximal increase in CO2. You can add information to the array when computing
Calculate the operating cash flows for the first year : Calculate the operating cash flows for the first year of the project.
Create shellcode for either unlink : Create shellcode for either unlink (Linux system call 10) or rmdir (Linux system call 40). unlink deletes a name and possibly the file it refers to
How a violation of the fourth amendment might occur : Describe the impact of the Fourth Amendment to the Constitution on issues of privacy. What are our rights? Describe how a violation of the 4th Amendment might.
How do social inequality and stratification : Public Sociology Blog - How do social inequality and stratification among social groups influence the population in the locality.
Explain what cautions, methods, or requirements are needed : Explain what cautions, methods, or requirements are needed for any proposed changes to meet ethical and legal standards for managing employees.
What were bacons four idols of the mind : What were Bacon's four idols of the mind? Provide your won examples of each one. What was Bacon's purpose in identifying them?

Reviews

len2700844

11/18/2020 4:49:25 AM

I am not sure whether shellcode injection lab belongs to the software engineering. ( If it is not belong to this subject, please change to correct subject

Write a Review

Other Subject Questions & Answers

  Advise the sacked directors about the matters

Advise the sacked directors about the matters above. If you do not consider the members have acted correctly

  What is the primary critique of the turkey theory

What issues are emphasized by the gender socialization perspective for understanding gendered behavior? What is the primary critique of the Turkey Theory

  Acetylsalicylic acid or aspirin

Acetylsalicylic acid, or aspirin, has the formula, C9H8O4. A typical extra-strength tablet of the analgesic contains 500.0 mg of acetylsalicylic acid.

  Analyze the key components of three sources of law

Analyze the key components of three sources of law related to the effects that each source could potentially have on your healthcare organization's new initiative.

  How do you manage your own personal inventory

How do you manage your own personal inventory of various supplies? Do you stock up or wait until you run out of something before you replace it? Why? Be sure to use operational management terminology

  Implementation of international strategy

How will the organisational capabilities translate to core competencies that give Cisco a sustainable competitive advantage in their industry?

  Define mechanism of action of your chosen prescription

What additional tests would you order to confirm a diagnosis? Once this has been completed, please indicate and describe your chosen pharmacological treatment

  Strategy and organization in the international firm

Strategy and Organization in the International Firm and Foreign Direct Investment and Collaborative Ventures - Exporting and Global Sourcing

  Strengths of the social cognitive perspective of personality

which of the following is one of the greatest strengths of the social cognitive perspective of personality? Based on your knowledge of the theories of Lawrence Kohlberg, which part of the brain would help with the reasoning of something like the hein..

  Explain a reason to necessitate change in criminal justice

Identify a reason to necessitate change in the criminal justice organization of your choice (police, courts corrections, etc.) and discuss the process in which the change will occur.

  What are the characteristics of communication

Purpose of this paper is to articulate your development as a leader from a Christian worldview. Paper must be 2,500-2,700 words and be APA formatted.

  How did the nazi medical experiments and the tuskegee

1.discuss your thoughts on the concept of corporate environmental responsibility. nbspwhat should businesses be

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd