forked from ZerBea/hcxtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·150 lines (136 loc) · 4.24 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
INSTALLDIR = /usr/local/bin
OPENCLSUPPORT=off
GPIOSUPPORT=off
DOACTIVE=on
DOSTATUS=on
CC = gcc
CFLAGS = -O3 -Wall -Wextra
ifeq ($(GPIOSUPPORT), on)
CFLAGS += -DDOGPIOSUPPORT
LFLAGS = -lcrypt -lwiringPi -lwiringPiDev
endif
all: build
build:
ifeq ($(GPIOSUPPORT), on)
$(CC) $(CFLAGS) -o pioff pioff.c $(LFLAGS)
endif
$(CC) $(CFLAGS) -o wlandump-ng wlandump-ng.c -lpcap -lrt $(LFLAGS)
$(CC) $(CFLAGS) -o wlanresponse wlanresponse.c -lpcap -lrt $(LFLAGS)
$(CC) $(CFLAGS) -o wlanrcascan wlanrcascan.c -lpcap
$(CC) $(CFLAGS) -o wlancapinfo wlancapinfo.c -lpcap
$(CC) $(CFLAGS) -o wlancap2hcx wlancap2hcx.c -lpcap -lcrypto
$(CC) $(CFLAGS) -o wlanhc2hcx wlanhc2hcx.c
$(CC) $(CFLAGS) -o wlanwkp2hcx wlanwkp2hcx.c
$(CC) $(CFLAGS) -o wlanhcxinfo wlanhcxinfo.c
$(CC) $(CFLAGS) -o wlanhcx2cap wlanhcx2cap.c -lpcap
$(CC) $(CFLAGS) -o wlanhcx2essid wlanhcx2essid.c
$(CC) $(CFLAGS) -o wlanhcx2ssid wlanhcx2ssid.c
$(CC) $(CFLAGS) -o wlanhcxmnc wlanhcxmnc.c
$(CC) $(CFLAGS) -o wlanhashhcx wlanhashhcx.c
$(CC) $(CFLAGS) -o wlanhcxcat wlanhcxcat.c -lcrypto
$(CC) $(CFLAGS) -o wlanpmk2hcx wlanpmk2hcx.c -lcrypto
$(CC) $(CFLAGS) -o wlanjohn2hcx wlanjohn2hcx.c
$(CC) $(CFLAGS) -o wlancow2hcxpmk wlancow2hcxpmk.c
$(CC) $(CFLAGS) -o whoismac whoismac.c -lcurl
$(CC) $(CFLAGS) -o wlanhcx2john wlanhcx2john.c
$(CC) $(CFLAGS) -o wlancap2wpasec wlancap2wpasec.c -lcurl
install: build
ifeq ($(GPIOSUPPORT), on)
install -D -m 0755 pioff $(INSTALLDIR)/pioff
endif
install -D -m 0755 wlandump-ng $(INSTALLDIR)/wlandump-ng
install -D -m 0755 wlanresponse $(INSTALLDIR)/wlanresponse
install -D -m 0755 wlanrcascan $(INSTALLDIR)/wlanrcascan
install -D -m 0755 wlancapinfo $(INSTALLDIR)/wlancapinfo
install -D -m 0755 wlancap2hcx $(INSTALLDIR)/wlancap2hcx
install -D -m 0755 wlanhc2hcx $(INSTALLDIR)/wlanhc2hcx
install -D -m 0755 wlanwkp2hcx $(INSTALLDIR)/wlanwkp2hcx
install -D -m 0755 wlanhcxinfo $(INSTALLDIR)/wlanhcxinfo
install -D -m 0755 wlanhcx2cap $(INSTALLDIR)/wlanhcx2cap
install -D -m 0755 wlanhcx2essid $(INSTALLDIR)/wlanhcx2essid
install -D -m 0755 wlanhcx2ssid $(INSTALLDIR)/wlanhcx2ssid
install -D -m 0755 wlanhcxmnc $(INSTALLDIR)/wlanhcxmnc
install -D -m 0755 wlanhashhcx $(INSTALLDIR)/wlanhashhcx
install -D -m 0755 wlanhcxcat $(INSTALLDIR)/wlanhcxcat
install -D -m 0755 wlanpmk2hcx $(INSTALLDIR)/wlanpmk2hcx
install -D -m 0755 wlanjohn2hcx $(INSTALLDIR)/wlanjohn2hcx
install -D -m 0755 wlancow2hcxpmk $(INSTALLDIR)/wlancow2hcxpmk
install -D -m 0755 whoismac $(INSTALLDIR)/whoismac
install -D -m 0755 wlanhcx2john $(INSTALLDIR)/wlanhcx2john
install -D -m 0755 wlancap2wpasec $(INSTALLDIR)/wlancap2wpasec
ifeq ($(GPIOSUPPORT), on)
rm -f pioff
endif
rm -f wlandump-ng
rm -f wlanresponse
rm -f wlanrcascan
rm -f wlancapinfo
rm -f wlancap2hcx
rm -f wlanhc2hcx
rm -f wlanwkp2hcx
rm -f wlanhcxinfo
rm -f wlanhcx2cap
rm -f wlanhcx2essid
rm -f wlanhcx2ssid
rm -f wlanhcx2john
rm -f wlanhcxmnc
rm -f wlanhashhcx
rm -f wlanhcxcat
rm -f wlanpmk2hcx
rm -f wlanjohn2hcx
rm -f wlancow2hcxpmk
rm -f whoismac
rm -f wlanhcx2john
rm -f wlancap2wpasec
rm -f *.o *~
clean:
ifeq ($(GPIOSUPPORT), on)
rm -f pioff
endif
rm -f wlandump-ng
rm -f wlanresponse
rm -f wlanrcascan
rm -f wlancapinfo
rm -f wlancap2hcx
rm -f wlanhc2hcx
rm -f wlanwkp2hcx
rm -f wlanhcxinfo
rm -f wlanhcx2cap
rm -f wlanhcx2essid
rm -f wlanhcx2ssid
rm -f wlanhcx2john
rm -f wlanhcxmnc
rm -f wlanhashhcx
rm -f wlanhcxcat
rm -f wlanpmk2hcx
rm -f wlanjohn2hcx
rm -f wlancow2hcxpmk
rm -f whoismac
rm -f wlanhcx2john
rm -f wlancap2wpasec
rm -f *.o *~
uninstall:
ifeq ($(GPIOSUPPORT), on)
rm -f $(INSTALLDIR)/pioff
endif
rm -f $(INSTALLDIR)/wlandump-ng
rm -f $(INSTALLDIR)/wlanresponse
rm -f $(INSTALLDIR)/wlanrcascan
rm -f $(INSTALLDIR)/wlandumpfix
rm -f $(INSTALLDIR)/wlancapinfo
rm -f $(INSTALLDIR)/wlancap2hcx
rm -f $(INSTALLDIR)/wlanhc2hcx
rm -f $(INSTALLDIR)/wlanwkp2hcx
rm -f $(INSTALLDIR)/wlanhcx2cap
rm -f $(INSTALLDIR)/wlanhcx2essid
rm -f $(INSTALLDIR)/wlanhcx2ssid
rm -f $(INSTALLDIR)/wlanhcxinfo
rm -f $(INSTALLDIR)/wlanhcxmnc
rm -f $(INSTALLDIR)/wlanhashhcx
rm -f $(INSTALLDIR)/wlanhcxcat
rm -f $(INSTALLDIR)/wlanpmk2hcx
rm -f $(INSTALLDIR)/wlanjohn2hcx
rm -f $(INSTALLDIR)/wlancow2hcxpmk
rm -f $(INSTALLDIR)/whoismac
rm -f $(INSTALLDIR)/wlanhcx2john
rm -f $(INSTALLDIR)/wlancap2wpasec