Answered step by step
Verified Expert Solution
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
[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., IxooStep 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