From 50135e5f87544cbad417d2f536afd420f0657ec0 Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Sun, 18 Oct 2026 21:40:12 +0800 Subject: [PATCH] Add acknowledgements for the original ptrace-inject project Credit Artemis21/ptrace-inject (https://github.com/Artemis21/ptrace-inject) as the original Rust project this C++ port is based on, in both READMEs and the public header. --- README.ZH.md | 5 +++++ README.md | 7 +++++++ include/ptrace_inject.h | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/README.ZH.md b/README.ZH.md index 4125c83..6f07e5a 100644 --- a/README.ZH.md +++ b/README.ZH.md @@ -317,3 +317,8 @@ cat /tmp/ptrace_inject_sample.txt - **不 `dlclose`**:加载后的库会一直留在目标进程里,符合「注入」的预期。 - **路径可见性**:`canonicalize` 发生在注入器进程,目标进程必须能访问同一路径 (同一 mount namespace)。 + +## 致谢 + +本项目是 [Artemis21/ptrace-inject](https://github.com/Artemis21/ptrace-inject) +的 C++ 移植版。整体思路、基于 shellcode 的注入方式以及很多设计细节都来自原项目。 diff --git a/README.md b/README.md index e202f22..c6aaa1f 100644 --- a/README.md +++ b/README.md @@ -353,3 +353,10 @@ the target process. the expected behaviour for injection. - **Path visibility**: `canonicalize` runs in the injector process, so the target must be able to access the same path (same mount namespace). + +## Acknowledgements + +This project is a C++ port of +[Artemis21/ptrace-inject](https://github.com/Artemis21/ptrace-inject). +The original idea, the shellcode-based injection approach, and much of the +design come from that project. diff --git a/include/ptrace_inject.h b/include/ptrace_inject.h index 62b24bd..eb885ec 100644 --- a/include/ptrace_inject.h +++ b/include/ptrace_inject.h @@ -1,3 +1,10 @@ +/* + * ptrace_inject - C ABI for injecting shared libraries with ptrace. + * + * C++ port of the original Rust project: + * https://github.com/Artemis21/ptrace-inject + */ + #ifndef PTRACE_INJECT_H #define PTRACE_INJECT_H