Question: 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
![Write an ASM shellcode for this function [10pts] We will implement a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f54ce66f492_03766f54ce5aecfd.jpg)
[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
Get step-by-step solutions from verified subject matter experts
