Open alichtman opened 5 years ago
~For some reason, the VM throws a "failed to load kernel modules" error when rebooted. Have not yet figured out how to get more information~
STATUS: Have rootkit persistence working. Settings do not persist, and file permissions seem to be fucked on the symlinked files. Have not debugged past this.
Copied from random tutorials on the internet.
It is important to note that kernel parameters that are set using sysctl will only be enforced during the current session and will disappear when the system is rebooted.
To set these values permanently, edit /etc/sysctl.conf
with the desired values.
This is recommended way. First open /etc/sysctl.conf
file, enter:
$ vim /etc/sysctl.conf
Now add value:
variable = value
Close and save the changes. Type the following command to load sysctl
settings from the file /etc/sysctl.conf
file:
$ sysctl -p
OR
$ sysctl -p /etc/sysctl.conf
The last method will load settings permanently at boot time from /etc/sysctl.conf
file. Read man page of sysctl
for information:
$ man sysctl
Load the rootkit at startup, enabling persistence. Basically, follow this tutorial: https://askubuntu.com/a/307375