From 66119f8844ab155afafe6c835e4deaeefd212c34 Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Wed, 10 Jul 2024 13:11:02 +1000 Subject: [PATCH 1/3] fix: use upstream injector repo --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index b933fa8..315eb5a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "injector"] path = injector - url = https://github.com/kmaork/injector.git + url = https://github.com/kubo/injector From a503b184ce14effeb53a7d177a26a1f3cb4fdac6 Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Thu, 25 Jul 2024 19:29:57 +1000 Subject: [PATCH 2/3] feat: fix compiling latest injector --- injector | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/injector b/injector index a558e87..7746c5f 160000 --- a/injector +++ b/injector @@ -1 +1 @@ -Subproject commit a558e878a2a6795835bc1635a92ceeecc7059c35 +Subproject commit 7746c5fea3027efc58311f47078e0fc8f42835b9 diff --git a/setup.py b/setup.py index 6d1c99d..05e7c61 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ injector_extension = Extension( 'pyinjector.injector', sources=SOURCES, + extra_objects=[str(INJECTOR_SRC / 'shellcode.S')] if platform == 'linux' else [], include_dirs=[str(INJECTOR_DIR.relative_to(PROJECT_ROOT) / 'include')], export_symbols=['injector_attach', 'injector_inject', 'injector_detach', 'injector_error'], define_macros=[('EM_AARCH64', '183')] # Needed on CentOS for some reason From 96230e7ddd60eaa8689387522dc12c564cc76560 Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Thu, 25 Jul 2024 21:45:24 +1000 Subject: [PATCH 3/3] fix: add shellcode to MANIFEST.in --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index fc616f8..7ad073a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,5 @@ # regardless of the platform where it was built. recursive-include injector *.h recursive-include injector/src *.c +recursive-include injector/src *.S include LICENSE