Skip to content

Linux shellcode code memory injection library .so .dll injection without ptrace example PoC

License

Notifications You must be signed in to change notification settings

v-a-c-u-u-m/mem_inject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mem_inject

Linux shellcode code memory injection library .so .dll injection without ptrace example PoC [x86_64, ARM!] (own development)

Build - library injection (x86_64, arm)

make

Build - shellcode (x86_64, arm)

make BUILD=common

Loop

./hello

Inject - library (test)

./mem_inject $(pidof hello) modules/injected_library.so

Inject - library (print registers)

./mem_inject $(pidof hello) modules/reg_info.so

Inject - shellcode

./mem_inject.py $(pidof hello)

Custom Shellcode

change the file src/shellcode.h or src/shellcode.py as example RET only instruction

echo "unsigned const char shellcode[] = {0xc3};" > src/shellcode.h
make

Custom Library

create your own library with _start function as entry_point

nano modules/my_own_lib.c
make
./mem_inject $(pidof hello) modules/my_own_lib.so

About

Linux shellcode code memory injection library .so .dll injection without ptrace example PoC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published