f0rb1dd3n / Reptile

LKM Linux rootkit
2.54k stars 571 forks source link

Compile error #49

Closed corefx closed 5 years ago

corefx commented 5 years ago

Hi, Thanks for the beta version. I tried to compile it on Ubuntu 18.04.1 (64 bit) but I got following error:

: In function 'runshell': :118:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] /tmp/ccsXzAOl.o: In function `runshell': :(.text+0x267): undefined reference to `openpty' collect2: error: ld returned 1 exit status Makefile:12: recipe for target 'reverse' failed make[1]: *** [reverse] Error 1 make[1]: Leaving directory '/home/test/Reptile/sbin' Makefile:2: recipe for target 'all' failed make: *** [all] Error 2
iusearch commented 5 years ago

Tried on Ubuntu 16.04 and 18.04.1. Both returned the same error message as above.

f0rb1dd3n commented 5 years ago

See if this commit fixed this issue: 8c7b455

iusearch commented 5 years ago

This problem was solved but another came out.

mkdir -p bin cd sbin && make reverse cmd make[1]: Entering directory '/root/Reptile/sbin' make[1]: 'reverse' is up to date. make[1]: 'cmd' is up to date. make[1]: Leaving directory '/root/Reptile/sbin' make -C /lib/modules/4.15.0-38-generic/build M=$PWD make[1]: Entering directory '/usr/src/linux-headers-4.15.0-38-generic' Makefile:975: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel" CC [M] /root/Reptile/rep_mod.o In file included from /root/Reptile/rep_mod.c:9:0: ./arch/x86/include/asm/uaccess.h:30:27: error: unknown type name ‘mm_segment_t’; did you mean ‘apm_event_t’? static inline void set_fs(mm_segment_t fs) ^~~~ apm_event_t scripts/Makefile.build:332: recipe for target '/root/Reptile/rep_mod.o' failed make[2]: [/root/Reptile/rep_mod.o] Error 1 Makefile:1551: recipe for target 'module/root/Reptile' failed make[1]: [module/root/Reptile] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-38-generic' Makefile:2: recipe for target 'all' failed make: *** [all] Error 2

f0rb1dd3n commented 5 years ago

With this next commit, all should be going right on Ubuntu: 35fb60c

I've tested on Ubuntu 18.04.1 LTS and now is all right.

Let me know if you guys will got more problem.

corefx commented 5 years ago

I can confirm that both bugs are now fixed. Thanks!