Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an ASM shellcode for this function [10pts] We will implement a shellcode to do a system reboot using the_reboot () function as follow int

Write an ASM shellcode for this function

image text in transcribed

[10pts] We will implement a shellcode to do a system reboot using the_reboot () function as follow int _reboot(int magicl, int magic2, int cmd, void *arg) i reboot () call reboots the system, or enables/disables the reboot keystroke Ctrl-Alt-Delete. This system DESCRIPTION:_ call will fail unless magicl equals LINUX_REBOOT MAGICI (i.c, Oxfee1dead) and magic2 equals LINUX_REBOOT_MAGIC2 (i.e,, 0x28121969) and cmd is LINUX_REBOOT_CMD_POWER_OFF (i.c 0x4321 fedc) eax System call edi Oxa9 sys_reboot int magicl int magic2 junsigned int cmd void "arg esi edx ecx Here is the theme of this_reboot function. reboot (LINUX_REBOOT MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_POWER_OFF) Write your ASM shellcode for this reboot function. Make sure your code contains no null bytes, i.e., Ixoo

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago