diff options
Diffstat (limited to 'fread.asm')
-rw-r--r-- | fread.asm | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -14,12 +14,23 @@ int 0x80 ;eax now contains our file descriptor. +mov ebx, eax mov al, 3 ;sys_read -mov ebx, esp ;I think? -mov cl, 0xff ;eh, random guess I guess +mov ecx, esp ;I think? +xor edx, edx +mov dl, 0xff ;eh, random guess I guess int 0x80 +mov al, 4 +xor ebx, ebx +mov bl, 1 +mov ecx, esp +;dl stays the same +int 0x80 + + + data: call str_found db "/home/indigo/flag" |