-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.in
194 lines (140 loc) · 5.87 KB
/
Makefile.in
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#
# Makefile for dsniff
#
# Dug Song <[email protected]>
#
# $Id: Makefile.in,v 1.42 2001/03/15 08:34:42 dugsong Exp $
srcdir = @srcdir@
VPATH = @srcdir@
install_prefix =
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = $(prefix)/share/dsniff
sbindir = @sbindir@
mandir = @mandir@
VER=2.5a1
CC = @CC@
CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\" -I/usr/include/tirpc -DVERSION=\"$(VER)\"
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS@
PCAPINC = @PCAPINC@
PCAPLIB = @PCAPLIB@ @X_IBVERBS_LIB@
LNETINC = @LNETINC@
LNETLIB = @LNETLIB@
NIDSINC = @NIDSINC@
NIDSLIB = @NIDSLIB@
DBINC = @DBINC@
DBLIB = @DBLIB@
SSLINC = @SSLINC@
SSLLIB = @SSLLIB@
X11INC = @X_CFLAGS@
X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
TIRPCLIB = @X_TIRPC_LIB@
INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) -I$(srcdir)/missing
LIBS = @LIBS@ -L$(srcdir) -lmissing
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
RANLIB = @RANLIB@
HDRS = asn1.h base64.h buf.h decode.h hex.h magic.h options.h \
pathnames.h pcaputil.h record.h rpc.h tcp_raw.h trigger.h \
vroot.h env2argv.h dsniff_services.h dsniff_magic.h \
crc32.h
SRCS = asn1.c base64.c buf.c hex.c magic.c mount.c pcaputil.c rpc.c \
tcp_raw.c trigger.c record.c decode.c decode_aim.c \
decode_citrix.c decode_cvs.c decode_ftp.c decode_hex.c \
decode_http.c decode_icq.c decode_imap.c decode_irc.c \
decode_ldap.c decode_mmxp.c decode_mountd.c decode_napster.c \
decode_nntp.c decode_oracle.c decode_ospf.c decode_pcanywhere.c \
decode_pop.c decode_portmap.c decode_postgresql.c decode_pptp.c \
decode_rip.c decode_rlogin.c decode_smb.c decode_smtp.c \
decode_sniffer.c decode_snmp.c decode_socks.c decode_tds.c \
decode_telnet.c decode_ssh.c decode_sni.c decode_vrrp.c decode_yp.c decode_x11.c \
env2argv.c crc32.c
SRCS_EXTRA = arpspoof.c
DIST_EXTRA = configure.ac configure Makefile.in config.h.in install-sh mount.x nfs_prot.x
GEN = mount.h mount.c nfs_prot.h nfs_prot.c
OBJS = $(SRCS:.c=.o)
LIBOBJS = dummy.o @LIBOBJS@
PROGS = arpspoof dnsspoof dsniff filesnarf macof mailsnarf msgsnarf \
sshmitm sshow tcpkill tcpnice @TCPHIJACK@ urlsnarf webmitm @WEBSPY@
CONFIGS = dsniff.magic dsniff.services dnsspoof.hosts
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -c $(srcdir)/$*.c
all: $(PROGS)
mount.h: mount.x
rpcgen -h mount.x -o mount.h
mount.c: mount.x
rpcgen -c mount.x -o mount.c
mount.o: mount.h
decode_mountd.o: mount.h
nfs_prot.h: nfs_prot.x
rpcgen -h nfs_prot.x -o nfs_prot.h
nfs_prot.c: nfs_prot.x
rpcgen -c nfs_prot.x -o nfs_prot.c
nfs_prot.o: nfs_prot.h
filesnarf.o: nfs_prot.h
gen: $(GEN)
$(LIBOBJS):
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -c $(srcdir)/missing/$*.c
libmissing.a: $(LIBOBJS)
ar -cr $@ $(LIBOBJS)
$(RANLIB) $@
dsniff: $(HDRS) $(SRCS) dsniff.o $(OBJS) libmissing.a
$(CC) $(LDFLAGS) -o $@ dsniff.o $(OBJS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) $(TIRPCLIB) $(LIBS)
arpspoof: arpspoof.o arp.o libmissing.a
$(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(PCAPLIB) $(LNETLIB) $(LIBS)
dnsspoof: dnsspoof.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ dnsspoof.o pcaputil.o $(PCAPLIB) $(LNETLIB) $(LIBS)
filesnarf: nfs_prot.o filesnarf.o pcaputil.o rpc.o libmissing.a
$(CC) $(LDFLAGS) -o $@ filesnarf.o nfs_prot.o pcaputil.o rpc.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(TIRPCLIB) $(LIBS)
macof: macof.o libmissing.a
$(CC) $(LDFLAGS) -o $@ macof.o $(PCAPLIB) $(LNETLIB) $(LIBS)
mailsnarf: mailsnarf.o buf.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ mailsnarf.o buf.o pcaputil.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(LIBS)
msgsnarf: msgsnarf.o buf.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(LIBS)
sshmitm: sshmitm.o $(OBJS) ssh.o sshcrypto.o libmissing.a
$(CC) $(LDFLAGS) -o $@ sshmitm.o ssh.o sshcrypto.o $(OBJS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) $(TIRPCLIB) $(LIBS)
sshow: sshow.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(LIBS)
tcpkill: tcpkill.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ tcpkill.o pcaputil.o $(PCAPLIB) $(LNETLIB) $(LIBS)
tcpnice: tcpnice.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ tcpnice.o pcaputil.o $(PCAPLIB) $(LNETLIB) $(LIBS)
tcphijack: tcphijack.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ tcphijack.o pcaputil.o $(PCAPLIB) $(LNETLIB) $(LIBS)
urlsnarf: urlsnarf.o base64.o buf.o pcaputil.o libmissing.a
$(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(LIBS)
webmitm: webmitm.o $(OBJS) libmissing.a
$(CC) $(LDFLAGS) -o $@ webmitm.o $(OBJS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) $(TIRPCLIB) $(LIBS)
webspy: webspy.o base64.o buf.o remote.o libmissing.a
$(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB) $(LIBS)
install:
test -d $(install_prefix)$(sbindir) || \
$(INSTALL) -d $(install_prefix)$(sbindir)
for file in $(PROGS); do \
$(INSTALL_PROGRAM) -m 755 $$file $(install_prefix)$(sbindir); \
done
test -d $(install_prefix)$(libdir) || \
$(INSTALL) -d $(install_prefix)$(libdir)
for file in $(CONFIGS); do \
$(INSTALL_DATA) $$file $(install_prefix)$(libdir); \
done
test -d $(install_prefix)$(mandir)/man8 || \
$(INSTALL) -d $(install_prefix)$(mandir)/man8
for file in *.8; do \
$(INSTALL_DATA) $$file $(install_prefix)$(mandir)/man8; \
done
clean:
rm -f *.o *~ libmissing.a $(PROGS) webmitm.crt
dist:
-rm -rf dsniff-$(VER)
mkdir -p dsniff-$(VER)/missing/sys
cp -a $(SRCS) $(DIST_EXTRA) $(SRCS_EXTRA) $(HDRS) $(CONFIGS) dsniff-$(VER)
cp -a missing/*.[ch] dsniff-$(VER)/missing
cp -a missing/sys/*.[ch] dsniff-$(VER)/missing/sys
tar cfz dsniff-$(VER).tar.gz dsniff-$(VER)
distclean: clean
rm -f Makefile $(GEN) config.h config.cache config.log config.status
# EOF