m0nad / Diamorphine

LKM rootkit for Linux Kernels 2.6.x/3.x/4.x/5.x/6.x (x86/x86_64 and ARM64)
Other
1.84k stars 431 forks source link

make: *** /lib/modules/4.9.51-10.52.amzn1.x86_64/build: No such file or directory. Stop. #6

Closed ghost closed 7 years ago

ghost commented 7 years ago

Development tools are installed on a 64 bit Fedora based machine.

Diamorphine]$ make
make -C /lib/modules/4.9.51-10.52.amzn1.x86_64/build M=/home/ec2-user/maK_it-Linux-Rootkit/Diamorphine modules
make: *** /lib/modules/4.9.51-10.52.amzn1.x86_64/build: No such file or directory.  Stop.
make: *** [all] Error 2
[ec2-user@ip-172-31-15-233 Diamorphine]$ uname -r
4.9.51-10.52.amzn1.x86_64
m0nad commented 7 years ago

Have you install the kernel headers? It's needed to compile kernel modules like Diamorphine, what distro it is?

ghost commented 7 years ago

Yes, it is kernel headers. I was using Amazon linux to do some pen testing. I was wondering how hackers get these rootkits installed when we need kernel headers that don't seem to be installed by default? Thanks for the help BTW.