![]() |
EpiRootkit
By STDBOOL
|
Go to the source code of this file.
Functions | |
| static int | dns_worker (void *data) |
| Kernel thread function to process DNS-based commands. | |
| int | start_dns_worker (void) |
| Starts the DNS worker kernel thread. | |
| int | stop_dns_worker (void) |
| Stops the DNS worker kernel thread. | |
Variables | |
| static struct task_struct * | dns_worker_thread = NULL |
|
static |
Kernel thread function to process DNS-based commands.
This function runs in a loop as a kernel thread. It waits for commands sent over DNS, processes them, and executes the corresponding rootkit commands. The thread periodically sleeps for a defined interval to avoid busy-waiting.
| data | Unused parameter, passed as NULL. |
Definition at line 17 of file dns/worker.c.
| int start_dns_worker | ( | void | ) |
Starts the DNS worker kernel thread.
This function initializes and starts a kernel thread that listens for commands sent over DNS. If the thread is already running, it returns an error code indicating that the resource is busy.
Definition at line 45 of file dns/worker.c.
| int stop_dns_worker | ( | void | ) |
Stops the DNS worker kernel thread.
This function stops the running DNS worker thread and cleans up its resources. If the thread is not running, it returns an error code indicating invalid operation.
Definition at line 72 of file dns/worker.c.
|
static |
Definition at line 4 of file dns/worker.c.