百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

AndKittyInjector

> 编程语言
开源

使用 ptrace 将共享库注入进程

353 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

使用 ptrace 将共享库注入进程

AndKittyInjector

AndKittyInjector is a modern ptrace-based Android shared-library injector, built on top of KittyMemoryEx.

Requires C++17 or newer. Inject from /data on Android.

Support

  • Tested on Android 5.0 ~ 17
  • ABI arm, arm64, x86, x86_64
  • Inject emulated arm64 & arm32 via libhoudini.so or libndk_translation.so
  • Inject multiple libs at once
  • Bypass android linker namespace restrictions
  • memfd dlopen support
  • Watch app launch and inject
  • Auto launch app and inject
  • Inject on dlopen breakpoint, or on a specific `` breakpoint
  • Inject & unload lib after entry point execution
  • Hide lib segments from /maps
  • Hide lib from native or emulated linker solist (dladdr & dl_iterate_phdr)
  • Randomize ELF header

How to use

Make sure to chmod +x or 755 the pushed binary.

…

One of --pid or --package is required. --libs accepts one or more paths and each is injected in order.

Examples

…

Embedding as a library

KittyInjector can be used directly instead of through the CLI, e.g. from your own tool:

…

inject_elf_config_t also exposes beforeEntryPoint / afterEntryPoint callbacks (invoked around the remote JNI_OnLoad call) if you need to run code between attach and detach.

Notes

  • Do not start a thread in the library constructor — use JNI_OnLoad instead:
cpp
extern "C" jint JNIEXPORT JNI_OnLoad(JavaVM* vm, void *key)
{
    // key 1337 is passed by the injector to confirm this call came from it.
    if (key != (void*)1337)
        return JNI_VERSION_1_6;

    KITTY_LOGI("JNI_OnLoad called by injector.");

    JNIEnv *env = nullptr;
    if (vm->GetEnv((void**)&env, JNI_VERSION_1_6) == JNI_OK)
    {
        KITTY_LOGI("JavaEnv: %p.", env);
        // ...
    }

    std::thread(thread_function).detach();

    return JNI_VERSION_1_6;
}
  • When using --launch or --watch to inject as soon as the target app launches, you may also need --bp-ld / --bp-sym or --delay, especially when injecting into an emulated (cross-ISA) library.
  • If injection fails, the target app will be force-stopped.

Compile

  • Make sure NDK, CMake, and MAKE are installed and added to your OS's environment path.
  • Set NDK_HOME to point to your NDK folder.
bash
git clone --recursive https://github.com/MJx0/AndKittyInjector.git
cd AndKittyInjector/AndKittyInjector
./build.sh # or build.bat on Windows

--recursive is required for KittyMemoryEx.

Credits

arminject

injectvm-binderjack

TinyInjector

am_proc_start

ReZygisk

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++androidinjectorlinuxptrace

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言