injector icon indicating copy to clipboard operation
injector copied to clipboard

Library for injecting a shared library into a Linux or Windows process

Results 12 injector issues
Sort by recently updated
recently updated
newest added

failed to open /usr/lib/x86_64-linux-gnu/libc-2.31.so.(error: No such file or directory). sudo snap install libreoffice

The test which checks for an error message when injecting `Makefile` fails on newer distros because they return the error string `invalid ELF header` which the test does not expect....

In `include/injector.h`, both `INJERR_NO_LIBRARY` and `INJERR_NO_FUNCTION` are defined as `-4` which makes return values ambiguous.

I have tested this library on Windows 11 arm64 host (MacBook with m1 processor, Windows in virtual machine through Parallels Desktop), successfully injected x86 dynamic library into x86 process.

env: NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.1 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal x86_64 cc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

Hi ! When i try running the injector on ubuntu i get the following error. Could you explain me whats going on here? Thx in advance! failed to open /run/host/usr/lib/x86_64-linux-gnu/libc.so.6....

Hi, @kubo May I ask you if it is possible to inject a shared object library from buffer instead of from the disk. It might be useful when you don't...

On Linux, there is a virtual rootfs path at `/proc//root`, which represents what the process thinks is the rootfs, and also allows you to access those files. For example, on...

Hey, thanks for making this! https://github.com/kubo/injector/blob/6ccf4d4e81b49d07485087315fb41817497df8f3/src/linux/elf.c#L270 I have a suggestion to add an API to either let users set the regex or set the full path of libc in case...