linux-rootkit

Feature-rich interactive rootkit that targets Linux kernel 4.19, accompanied by a dynamic kernel memory analysis GDB plugin for in vivo introspection (e.g. using QEMU)
git clone git://git.deurzen.net/linux-rootkit
Log | Files | Refs

rkctl.h (795B)


      1 #ifndef _GROUP7_RKCTL_H
      2 #define _GROUP7_RKCTL_H
      3 
      4 #define ARGVCMP(i, x) (!strcmp(argv[i], (x)))
      5 #define ASSERT_ARGC(x, msg) \
      6     do { \
      7         if (argc <= x) { \
      8             fprintf(stderr, "%s: %s\n", progname, msg); \
      9             exit(1); \
     10         } \
     11     } while (0)
     12 
     13 
     14 typedef struct {
     15     int (*f)(void *);
     16     void * arg;
     17 } cmd_t;
     18 
     19 cmd_t parse_input(int, char **);
     20 int issue_ioctl(unsigned long, const char *);
     21 void help();
     22 
     23 int handle_ping(void *);
     24 int handle_modhide(void *);
     25 int handle_filehide(void *);
     26 int handle_openhide(void *);
     27 int handle_pidhide(void *);
     28 int handle_tcphide(void *);
     29 int handle_udphide(void *);
     30 int handle_packhide(void *);
     31 int handle_backdoor(void *);
     32 int handle_shellbd(void *);
     33 int handle_togglebd(void *);
     34 int handle_logging(void *);
     35 
     36 #endif//_GROUP7_RKCTL_H