f0rb1dd3n / Reptile

LKM Linux rootkit
2.53k stars 571 forks source link

Installing Error on Parrot OS #112

Open MA24th opened 1 year ago

MA24th commented 1 year ago

hi, i follow installation guide but make failed

> make
make[1]: Entering directory '/home/musit/Reptile/userland'
  CC      /home/musit/Reptile/output/shell
  CC      /home/musit/Reptile/output/cmd
make[1]: Leaving directory '/home/musit/Reptile/userland'
make[1]: Entering directory '/usr/src/linux-headers-5.16.0-12parrot1-amd64'
/bin/sh: 1: /usr/src/linux-headers-5.16.0-12parrot1-common/scripts/pahole-flags.sh: not found
/bin/sh: 1: /usr/src/linux-headers-5.16.0-12parrot1-common/scripts/pahole-flags.sh: not found
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-11 (Parrot 11.2.0-16parrot1) 11.2.0
  You are using:           gcc-11 (Parrot 11.2.0-18really16parrot1) 11.2.0
/bin/sh: 1: /usr/src/linux-headers-5.16.0-12parrot1-common/scripts/pahole-flags.sh: not found
  CC [M]  /home/musit/Reptile/output/main.o
/home/musit/Reptile/kernel/main.c: In function ‘khook_audit_alloc’:
/home/musit/Reptile/kernel/main.c:47:42: error: ‘TIF_SYSCALL_AUDIT’ undeclared (first use in this function)
   47 |                 clear_tsk_thread_flag(t, TIF_SYSCALL_AUDIT);
      |                                          ^~~~~~~~~~~~~~~~~
/home/musit/Reptile/kernel/main.c:47:42: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/usr/src/linux-headers-5.16.0-12parrot1-common/scripts/Makefile.build:292: /home/musit/Reptile/output/main.o] Error 1
make[1]: *** [/usr/src/linux-headers-5.16.0-12parrot1-common/Makefile:1870: /home/musit/Reptile/output] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.16.0-12parrot1-amd64'
make: *** [Makefile:35: module] Error 2
mrdragonblack commented 11 months ago
same problem make[1]: Memasuki direktori '/home/dragonsec/Destop/Reptile/userland' CC /home/dragonsec/Destop/Reptile/output/shell CC /home/dragonsec/Destop/Reptile/output/cmd make[1]: Meninggalkan direktori '/home/dragonsec/Destop/Reptile/userland' make[1]: Memasuki direktori '/usr/src/linux-headers-6.3.0-kali1-amd64' CC [M] /home/dragonsec/Destop/Reptile/output/main.o /home/dragonsec/Destop/Reptile/kernel/main.c: In function ‘khook_audit_alloc’: /home/dragonsec/Destop/Reptile/kernel/main.c:47:42: error: ‘TIF_SYSCALL_AUDIT’ undeclared (first use in this function) 47 clear_tsk_thread_flag(t, TIF_SYSCALL_AUDIT); ^~~~~ /home/dragonsec/Destop/Reptile/kernel/main.c:47:42: note: each undeclared identifier is reported only once for each function it appears in In file included from /home/dragonsec/Destop/Reptile/kernel/main.c:208: /home/dragonsec/Destop/Reptile/kernel/include/file.h: At top level: /home/dragonsec/Destop/Reptile/kernel/include/file.h:3: error: "SSIZE_MAX" redefined [-Werror] 3 #define SSIZE_MAX 32767
In file included from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/kernel.h:16, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/percpu.h:27, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/nospec-branch.h:14, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/paravirt_types.h:27, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/ptrace.h:97, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/math_emu.h:5, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/processor.h:13, from /usr/src/linux-headers-6.3.0-kali1-common/arch/x86/include/asm/timex.h:5, from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/timex.h:67, from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/time32.h:13, from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/time.h:60, from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/stat.h:19, from /usr/src/linux-headers-6.3.0-kali1-common/include/linux/module.h:13, from /home/dragonsec/Destop/Reptile/kernel/main.c:1: /usr/src/linux-headers-6.3.0-kali1-common/include/linux/limits.h:10: note: this is the location of the previous definition 10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))

cc1: all warnings being treated as errors make[2]: [/usr/src/linux-headers-6.3.0-kali1-common/scripts/Makefile.build:257: /home/dragonsec/Destop/Reptile/output/main.o] Error 1 make[1]: [/usr/src/linux-headers-6.3.0-kali1-common/Makefile:2050: /home/dragonsec/Destop/Reptile/output] Error 2 make[1]: Meninggalkan direktori '/usr/src/linux-headers-6.3.0-kali1-amd64' make: *** [Makefile:35: module] Error 2