dlinject
dlinject copied to clipboard
Inject a shared library (i.e. arbitrary code) into a live linux process, without ptrace
Hi David, I'm testing this code and getting this error. Can you help me? 
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 ...
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