NENote of Exploiting


[SC] iotest.s : 2006-11-19


.globl main

main:

    #read
    mov    $0x3,   %al
    xorl   %ebx,   %ebx
    mov    %esp,   %ecx
    xorl   %edx,   %edx
    inc    %edx
    int    $0x80
    mov    %ebx,   %esi

    #write
    mov    $0x4,   %al
    mov    $0x1,   %bl
    int    $0x80

    #exit
    mov    $0x1,   %al
    xorl   %ebx,   %ebx
    int    $0x80

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