6
0
mirror of https://github.com/avast/ioc synced 2024-06-16 11:58:39 +00:00
ioc-collection/SyslogkRootkit/Research Tools/unhide_rootkit.c
2022-06-13 08:48:05 +02:00

14 lines
293 B
C

// It unhides the Syslog Rootkit
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
void main(void)
{
int fd = open("/proc/syslogk", O_WRONLY);
lseek(fd, 0 , SEEK_SET);
write(fd, "1", 1); // Command for unhiding the module
close(fd);
}