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 ae66fd3ec58516f740d55fec3e4d8b0d109f4d18
parent f34236640594648fceaea94eb5d760eb061c5156
Author: Tizian Leonhardt <tizianleonhardt@web.de>
Date:   Thu,  4 Feb 2021 22:48:40 +0100

Remove unnecessary line stuff

Diffstat:
Mproject/type_dict.py | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/project/type_dict.py b/project/type_dict.py @@ -51,12 +51,9 @@ class CodeDict(): def parse(self): ignore = ["*", "->", "(", ")", "[", "]"] - line = self.inf.readline() - dir = len(line) - 1 if line[-1] == "/" else len(line) - for line in self.inf.readlines(): - # Remove directory prefix, insert ./ to reflect the frame representation of source file in gdb - l = ("./" + (line[dir:])).split(" ") + # Insert ./ to reflect the frame representation of source file in gdb + l = "./" + line src = l[0] fn = l[1]