dlinject icon indicating copy to clipboard operation
dlinject copied to clipboard

Inject a shared library (i.e. arbitrary code) into a live linux process, without ptrace

Results 7 dlinject issues
Sort by recently updated
recently updated
newest added

Hi David, I'm testing this code and getting this error. Can you help me? ![image](https://user-images.githubusercontent.com/33227097/108945604-788f7300-768f-11eb-85f6-1abb89ddc57d.png)

hey I tested this code and got this error. > error while loading shared libraries: dlopen: invalid caller My environment: centos7 64bit + ld-2.17.so + glibc-2.17-260.el7_6.6.x86_64 + kernel 3.10.0-957.27.2.el7.x86_64 ![image](https://user-images.githubusercontent.com/25022186/92231334-28ed9d00-eedf-11ea-93a3-c344b7622247.png)...

For obvious reasons, the `stage2*.bin` file will be created as root when launching the script with `sudo`. In this case, the shellcode (that will run as non privileged user) won't...

Used command: `./dlinject.py 5246 --stopmethod cgroup_freeze ../sampleso.so` Python: 3.10.12 OS: basic Ubuntu 20.24 inside docker container (`docker run -ti ubuntu:22.04`) User: root Traceback: ``` [*] searching for dlopen... [*] located...

root@pgq-virtual-machine:/home/pgq/桌面/linux-inject/dlinject# python3 dlinject.py 5007 /home/pgq/桌面/linux-inject/trp.so .___.__ .__ __ __ __| _/| | |__| ____ |__| ____ _____/ |_ ______ ___.__. / __ | | | | |/ \ | |/...

May I ask if there is a limit on the file size when injecting "so"? Why do I encounter failure when the file size exceeds a certain limit?For example, 1MB