Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added a way to hide tpid in readme #4300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ You can simply run the following script in the directory containing **libOsiris.

However, this injection method might be detected by VAC as gdb is visible under **TracerPid** in `/proc/$(pidof cs2)/status` for the duration of the injection.

It's possible to hide the TracerPid by applying the following patch to your kernel sources:

--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -162,7 +162,7 @@

tracer = ptrace_parent(p);
if (tracer)
- tpid = task_pid_nr_ns(tracer, ns);
+ tpid = 0;

tgid = task_tgid_nr_ns(p, ns);
ngid = task_numa_group_id(p);

## License

> Copyright (c) 2018-2024 Daniel Krupiński
Expand Down