Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
682c4ddd0b | ||
|
fa0800f9ea | ||
|
9a1da34937 | ||
|
f28596a2d0 | ||
|
d16e9d8e72 | ||
|
233352939d | ||
|
1175d18e1b | ||
|
2dc175d70c | ||
|
1605604d14 | ||
|
8e874af0b8 | ||
|
e42b9de1da | ||
|
f45a0329dc | ||
|
c1db46aa5d | ||
|
16d951394a | ||
|
5a54bcc697 | ||
|
3600fec894 | ||
|
f6b99fce6c | ||
|
479de47f11 | ||
|
16e3285a65 | ||
|
a57f3d8743 | ||
|
5429089413 | ||
|
36d34978fc | ||
|
5a1588487a | ||
|
d9b9d82b94 | ||
|
df68b51af6 | ||
|
fc8d099d86 |
@ -18,7 +18,7 @@ various paths for the Fedora directory structure.
|
|||||||
|
|
||||||
-INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
|
-INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
|
||||||
- -I$(srcdir)/missing
|
- -I$(srcdir)/missing
|
||||||
+INCS = -I. $(X11INC) -I$(srcdir)/missing
|
+INCS = -I. $(X11INC) $(SSLINC) -I$(srcdir)/missing
|
||||||
LIBS = @LIBS@ -L$(srcdir) -lmissing
|
LIBS = @LIBS@ -L$(srcdir) -lmissing
|
||||||
|
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
|
51
dsniff-2.4-libtirpc.patch
Normal file
51
dsniff-2.4-libtirpc.patch
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
Patch by Robert Scheck <robert@fedoraproject.org> for dsniff >= 2.4b1 which
|
||||||
|
allows building against libtirpc (as a separate library) given the Sun RPC
|
||||||
|
support in glibc has been deprecated for a long time.
|
||||||
|
|
||||||
|
--- dsniff-2.4/Makefile.in 2018-05-26 22:04:34.809966900 +0200
|
||||||
|
+++ dsniff-2.4/Makefile.in.libtirpc 2018-05-27 02:56:31.149313503 +0200
|
||||||
|
@@ -16,7 +16,7 @@
|
||||||
|
mandir = @mandir@
|
||||||
|
|
||||||
|
CC = @CC@
|
||||||
|
-CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\"
|
||||||
|
+CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\" -I/usr/include/tirpc
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
|
PCAPINC = @PCAPINC@
|
||||||
|
@@ -93,7 +93,7 @@
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
dsniff: $(HDRS) $(SRCS) $(OBJS) libmissing.a
|
||||||
|
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) -ltirpc
|
||||||
|
|
||||||
|
arpspoof: arpspoof.o arp.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
@@ -102,7 +102,7 @@
|
||||||
|
$(CC) $(LDFLAGS) -o $@ dnsspoof.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
filesnarf: nfs_prot.o filesnarf.o pcaputil.o rpc.o libmissing.a
|
||||||
|
- $(CC) $(LDFLAGS) -o $@ filesnarf.o nfs_prot.o pcaputil.o rpc.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $@ filesnarf.o nfs_prot.o pcaputil.o rpc.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) -ltirpc
|
||||||
|
|
||||||
|
macof: macof.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ macof.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
@@ -114,7 +114,7 @@
|
||||||
|
$(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o libmissing.a
|
||||||
|
- $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) -ltirpc
|
||||||
|
|
||||||
|
sshow: sshow.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
@@ -132,7 +132,7 @@
|
||||||
|
$(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
webmitm: webmitm.o base64.o buf.o decode_http.o record.o libmissing.a
|
||||||
|
- $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
+ $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) -ltirpc
|
||||||
|
|
||||||
|
webspy: webspy.o base64.o buf.o remote.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB)
|
61
dsniff-2.4-pcap_init.patch
Normal file
61
dsniff-2.4-pcap_init.patch
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
Patch by Dennis Filder <d.filder@web.de> for dsniff >= 2.4b1 to resolve naming
|
||||||
|
collision due to libpcap API changes. Dsniff was written with a function named
|
||||||
|
pcap_init() that predates the one in libpcap and is entirely different. This patch
|
||||||
|
renames it out of the way. For some more information, please have a look to Debian
|
||||||
|
bug ID #980588.
|
||||||
|
|
||||||
|
--- dsniff-2.4/dnsspoof.c 2021-07-25 01:00:08.445636429 +0200
|
||||||
|
+++ dsniff-2.4/dnsspoof.c.pcap_init 2021-07-25 01:00:53.540928897 +0200
|
||||||
|
@@ -309,7 +309,7 @@
|
||||||
|
else snprintf(buf, sizeof(buf), "udp dst port 53 and not src %s",
|
||||||
|
libnet_addr2name4(lnet_ip, LIBNET_DONT_RESOLVE));
|
||||||
|
|
||||||
|
- if ((pcap_pd = pcap_init(dev, buf, 128)) == NULL)
|
||||||
|
+ if ((pcap_pd = pcap_init_dsniff(dev, buf, 128)) == NULL)
|
||||||
|
errx(1, "couldn't initialize sniffing");
|
||||||
|
|
||||||
|
if ((pcap_off = pcap_dloff(pcap_pd)) < 0)
|
||||||
|
--- dsniff-2.4/pcaputil.c 2021-07-25 01:00:08.469636585 +0200
|
||||||
|
+++ dsniff-2.4/pcaputil.c.pcap_init 2021-07-25 01:00:59.816969598 +0200
|
||||||
|
@@ -111,7 +111,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
pcap_t *
|
||||||
|
-pcap_init(char *intf, char *filter, int snaplen)
|
||||||
|
+pcap_init_dsniff(char *intf, char *filter, int snaplen)
|
||||||
|
{
|
||||||
|
pcap_t *pd;
|
||||||
|
u_int net, mask;
|
||||||
|
--- dsniff-2.4/pcaputil.h 2001-03-15 09:33:06.000000000 +0100
|
||||||
|
+++ dsniff-2.4/pcaputil.h.pcap_init 2021-07-25 01:07:46.246603851 +0200
|
||||||
|
@@ -11,7 +11,7 @@
|
||||||
|
#ifndef PCAPUTIL_H
|
||||||
|
#define PCAPUTIL_H
|
||||||
|
|
||||||
|
-pcap_t *pcap_init(char *intf, char *filter, int snaplen);
|
||||||
|
+pcap_t *pcap_init_dsniff(char *intf, char *filter, int snaplen);
|
||||||
|
|
||||||
|
int pcap_dloff(pcap_t *pd);
|
||||||
|
|
||||||
|
--- dsniff-2.4/tcpkill.c 2021-07-25 01:00:08.426636306 +0200
|
||||||
|
+++ dsniff-2.4/tcpkill.c.pcap_init 2021-07-25 01:01:06.728014416 +0200
|
||||||
|
@@ -130,7 +130,7 @@
|
||||||
|
|
||||||
|
filter = copy_argv(argv);
|
||||||
|
|
||||||
|
- if ((pd = pcap_init(intf, filter, 64)) == NULL)
|
||||||
|
+ if ((pd = pcap_init_dsniff(intf, filter, 64)) == NULL)
|
||||||
|
errx(1, "couldn't initialize sniffing");
|
||||||
|
|
||||||
|
if ((pcap_off = pcap_dloff(pd)) < 0)
|
||||||
|
--- dsniff-2.4/tcpnice.c 2021-07-25 01:00:08.426636306 +0200
|
||||||
|
+++ dsniff-2.4/tcpnice.c.pcap_init 2021-07-25 01:01:13.816060381 +0200
|
||||||
|
@@ -204,7 +204,7 @@
|
||||||
|
|
||||||
|
filter = copy_argv(argv);
|
||||||
|
|
||||||
|
- if ((pd = pcap_init(intf, filter, 128)) == NULL)
|
||||||
|
+ if ((pd = pcap_init_dsniff(intf, filter, 128)) == NULL)
|
||||||
|
errx(1, "couldn't initialize sniffing");
|
||||||
|
|
||||||
|
if ((pcap_off = pcap_dloff(pd)) < 0)
|
70
dsniff-2.4-smp_mflags.patch
Normal file
70
dsniff-2.4-smp_mflags.patch
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
Patch by Robert Scheck <robert@fedoraproject.org> for dsniff >= 2.4b1 which
|
||||||
|
ensures when building using %{?_smp_mflags} that libmissing.a is built when
|
||||||
|
its being used for linking.
|
||||||
|
|
||||||
|
--- dsniff-2.4/Makefile.in 2018-07-14 02:54:20.405095355 +0200
|
||||||
|
+++ dsniff-2.4/Makefile.in.smp_mflags 2018-07-14 02:54:44.973245128 +0200
|
||||||
|
@@ -92,49 +92,49 @@
|
||||||
|
ar -cr $@ $(LIBOBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
-dsniff: $(HDRS) $(SRCS) $(OBJS)
|
||||||
|
+dsniff: $(HDRS) $(SRCS) $(OBJS) libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
|
||||||
|
-arpspoof: arpspoof.o arp.o
|
||||||
|
+arpspoof: arpspoof.o arp.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-dnsspoof: dnsspoof.o pcaputil.o
|
||||||
|
+dnsspoof: dnsspoof.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ dnsspoof.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-filesnarf: nfs_prot.o filesnarf.o pcaputil.o rpc.o
|
||||||
|
+filesnarf: nfs_prot.o filesnarf.o pcaputil.o rpc.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ filesnarf.o nfs_prot.o pcaputil.o rpc.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-macof: macof.o
|
||||||
|
+macof: macof.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ macof.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-mailsnarf: mailsnarf.o buf.o pcaputil.o
|
||||||
|
+mailsnarf: mailsnarf.o buf.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ mailsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-msgsnarf: msgsnarf.o buf.o pcaputil.o
|
||||||
|
+msgsnarf: msgsnarf.o buf.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o
|
||||||
|
+sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
|
||||||
|
-sshow: sshow.o pcaputil.o
|
||||||
|
+sshow: sshow.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-tcpkill: tcpkill.o pcaputil.o
|
||||||
|
+tcpkill: tcpkill.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ tcpkill.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-tcpnice: tcpnice.o pcaputil.o
|
||||||
|
+tcpnice: tcpnice.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ tcpnice.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
tcphijack: tcphijack.o pcaputil.o
|
||||||
|
$(CC) $(LDFLAGS) -o $@ tcphijack.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-urlsnarf: urlsnarf.o base64.o buf.o pcaputil.o
|
||||||
|
+urlsnarf: urlsnarf.o base64.o buf.o pcaputil.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB)
|
||||||
|
|
||||||
|
-webmitm: webmitm.o base64.o buf.o decode_http.o record.o
|
||||||
|
+webmitm: webmitm.o base64.o buf.o decode_http.o record.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB)
|
||||||
|
|
||||||
|
-webspy: webspy.o base64.o buf.o remote.o
|
||||||
|
+webspy: webspy.o base64.o buf.o remote.o libmissing.a
|
||||||
|
$(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB)
|
||||||
|
|
||||||
|
install:
|
184
dsniff.spec
184
dsniff.spec
@ -1,55 +1,63 @@
|
|||||||
Summary: Tools for network auditing and penetration testing
|
Summary: Tools for network auditing and penetration testing
|
||||||
Name: dsniff
|
Name: dsniff
|
||||||
Version: 2.4
|
Version: 2.4
|
||||||
Release: 0.23.b1%{?dist}
|
Release: 0.39.b1%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Applications/Internet
|
URL: https://www.monkey.org/~dugsong/%{name}/
|
||||||
URL: http://www.monkey.org/~dugsong/%{name}/
|
Source0: https://www.monkey.org/~dugsong/%{name}/beta/%{name}-%{version}b1.tar.gz
|
||||||
Source: http://www.monkey.org/~dugsong/%{name}/beta/%{name}-%{version}b1.tar.gz
|
Patch0: dsniff-2.4-time_h.patch
|
||||||
Patch0: dsniff-2.4-time_h.patch
|
Patch1: dsniff-2.4-mailsnarf_corrupt.patch
|
||||||
Patch1: dsniff-2.4-mailsnarf_corrupt.patch
|
Patch2: dsniff-2.4-pcap_read_dump.patch
|
||||||
Patch2: dsniff-2.4-pcap_read_dump.patch
|
Patch3: dsniff-2.4-multiple_intf.patch
|
||||||
Patch3: dsniff-2.4-multiple_intf.patch
|
Patch4: dsniff-2.4-amd64_fix.patch
|
||||||
Patch4: dsniff-2.4-amd64_fix.patch
|
Patch5: dsniff-2.4-urlsnarf_zeropad.patch
|
||||||
Patch5: dsniff-2.4-urlsnarf_zeropad.patch
|
Patch6: dsniff-2.4-libnet_11.patch
|
||||||
Patch6: dsniff-2.4-libnet_11.patch
|
Patch7: dsniff-2.4-checksum.patch
|
||||||
Patch7: dsniff-2.4-checksum.patch
|
Patch8: dsniff-2.4-openssl_098.patch
|
||||||
Patch8: dsniff-2.4-openssl_098.patch
|
Patch9: dsniff-2.4-sshcrypto.patch
|
||||||
Patch9: dsniff-2.4-sshcrypto.patch
|
Patch10: dsniff-2.4-sysconf_clocks.patch
|
||||||
Patch10: dsniff-2.4-sysconf_clocks.patch
|
Patch11: dsniff-2.4-urlsnarf_escape.patch
|
||||||
Patch11: dsniff-2.4-urlsnarf_escape.patch
|
Patch12: dsniff-2.4-string_header.patch
|
||||||
Patch12: dsniff-2.4-string_header.patch
|
Patch13: dsniff-2.4-arpa_inet_header.patch
|
||||||
Patch13: dsniff-2.4-arpa_inet_header.patch
|
Patch14: dsniff-2.4-pop_with_version.patch
|
||||||
Patch14: dsniff-2.4-pop_with_version.patch
|
Patch15: dsniff-2.4-obsolete_time.patch
|
||||||
Patch15: dsniff-2.4-obsolete_time.patch
|
Patch16: dsniff-2.4-checksum_libnids.patch
|
||||||
Patch16: dsniff-2.4-checksum_libnids.patch
|
Patch17: dsniff-2.4-fedora_dirs.patch
|
||||||
Patch17: dsniff-2.4-fedora_dirs.patch
|
Patch18: dsniff-2.4-glib2.patch
|
||||||
Patch18: dsniff-2.4-glib2.patch
|
Patch19: dsniff-2.4-link_layer_offset.patch
|
||||||
Patch19: dsniff-2.4-link_layer_offset.patch
|
Patch20: dsniff-2.4-tds_decoder.patch
|
||||||
Patch20: dsniff-2.4-tds_decoder.patch
|
Patch21: dsniff-2.4-msgsnarf_segfault.patch
|
||||||
Patch21: dsniff-2.4-msgsnarf_segfault.patch
|
Patch22: dsniff-2.4-urlsnarf_timestamp.patch
|
||||||
Patch22: dsniff-2.4-urlsnarf_timestamp.patch
|
Patch23: dsniff-2.4-arpspoof_reverse.patch
|
||||||
Patch23: dsniff-2.4-arpspoof_reverse.patch
|
Patch24: dsniff-2.4-arpspoof_multiple.patch
|
||||||
Patch24: dsniff-2.4-arpspoof_multiple.patch
|
Patch25: dsniff-2.4-arpspoof_hwaddr.patch
|
||||||
Patch25: dsniff-2.4-arpspoof_hwaddr.patch
|
Patch26: dsniff-2.4-modernize_pop.patch
|
||||||
Patch26: dsniff-2.4-modernize_pop.patch
|
Patch27: dsniff-2.4-libnet_name2addr4.patch
|
||||||
Patch27: dsniff-2.4-libnet_name2addr4.patch
|
Patch28: dsniff-2.4-pntohl_shift.patch
|
||||||
Patch28: dsniff-2.4-pntohl_shift.patch
|
Patch29: dsniff-2.4-rpc_segfault.patch
|
||||||
Patch29: dsniff-2.4-rpc_segfault.patch
|
Patch30: dsniff-2.4-openssl_110.patch
|
||||||
Patch30: dsniff-2.4-openssl_110.patch
|
Patch31: dsniff-2.4-remote_typo.patch
|
||||||
Patch31: dsniff-2.4-remote_typo.patch
|
Patch32: dsniff-2.4-smp_mflags.patch
|
||||||
BuildRequires: libnet-devel, openssl-devel, libnids-devel, glib2-devel, %{_includedir}/pcap.h
|
Patch33: dsniff-2.4-libtirpc.patch
|
||||||
%if 0%{?rhel}%{?fedora} > 6
|
Patch34: dsniff-2.4-pcap_init.patch
|
||||||
BuildRequires: libdb-devel
|
BuildRequires: gcc
|
||||||
|
BuildRequires: libnet-devel
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
|
BuildRequires: openssl-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: db4-devel
|
BuildRequires: openssl11-devel
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?rhel}%{?fedora} >= 5
|
BuildRequires: libnids-devel
|
||||||
BuildRequires: libXmu-devel
|
BuildRequires: glib2-devel
|
||||||
%else
|
BuildRequires: libpcap-devel
|
||||||
BuildRequires: xorg-x11-devel
|
BuildRequires: libdb-devel
|
||||||
|
BuildRequires: libXmu-devel
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
|
BuildRequires: rpcgen
|
||||||
|
BuildRequires: libtirpc-devel
|
||||||
|
BuildRequires: libnsl2-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRequires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A collection of tools for network auditing and penetration testing. Dsniff,
|
A collection of tools for network auditing and penetration testing. Dsniff,
|
||||||
@ -72,9 +80,7 @@ by exploiting weak bindings in ad-hoc PKI.
|
|||||||
%patch7 -p1 -b .checksum
|
%patch7 -p1 -b .checksum
|
||||||
%patch8 -p1 -b .openssl_098
|
%patch8 -p1 -b .openssl_098
|
||||||
%patch9 -p1 -b .sshcrypto
|
%patch9 -p1 -b .sshcrypto
|
||||||
%if 0%{?rhel}%{?fedora} >= 5
|
|
||||||
%patch10 -p1 -b .sysconf_clocks
|
%patch10 -p1 -b .sysconf_clocks
|
||||||
%endif
|
|
||||||
%patch11 -p1 -b .urlsnarf_escape
|
%patch11 -p1 -b .urlsnarf_escape
|
||||||
%patch12 -p1 -b .string_header
|
%patch12 -p1 -b .string_header
|
||||||
%patch13 -p1 -b .arpa_inet_header
|
%patch13 -p1 -b .arpa_inet_header
|
||||||
@ -96,24 +102,31 @@ by exploiting weak bindings in ad-hoc PKI.
|
|||||||
%patch29 -p1 -b .rpc_segfault
|
%patch29 -p1 -b .rpc_segfault
|
||||||
%patch30 -p1 -b .openssl_110
|
%patch30 -p1 -b .openssl_110
|
||||||
%patch31 -p1 -b .remote_typo
|
%patch31 -p1 -b .remote_typo
|
||||||
|
%patch32 -p1 -b .smp_mflags
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
|
%patch33 -p1 -b .libtirpc
|
||||||
|
%endif
|
||||||
|
%patch34 -p1 -b .pcap_init
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
sed \
|
||||||
|
-e 's|include/openssl/|include/openssl11/openssl/|g' \
|
||||||
|
-e 's|\(SSLINC="\)-I${prefix}/include|\1$(pkg-config --cflags openssl11)|g' \
|
||||||
|
-e 's|\(SSLLIB="\)-L${prefix}/lib -lssl -lcrypto|\1$(pkg-config --libs openssl11)|g' \
|
||||||
|
-i configure
|
||||||
|
%endif
|
||||||
|
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install install_prefix=$RPM_BUILD_ROOT
|
||||||
make install_prefix=$RPM_BUILD_ROOT INSTALL='install -p' install
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README TODO
|
%doc CHANGES README TODO
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}/
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/*
|
%config(noreplace) %{_sysconfdir}/%{name}/*
|
||||||
%{_sbindir}/arpspoof
|
%{_sbindir}/arpspoof
|
||||||
%{_sbindir}/dnsspoof
|
%{_sbindir}/dnsspoof
|
||||||
@ -145,6 +158,55 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man8/webspy.8*
|
%{_mandir}/man8/webspy.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.39.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.38.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2.4-0.37.b1
|
||||||
|
- Rebuilt with OpenSSL 3.0.0
|
||||||
|
|
||||||
|
* Sun Jul 25 2021 Robert Scheck <robert@fedoraproject.org> 2.4-0.36.b1
|
||||||
|
- Added patch to work around pcap_init() API change in libpcap
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.35.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.34.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.33.b1
|
||||||
|
- Second attempt - Rebuilt for
|
||||||
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.32.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.31.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.30.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.29.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.28.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun May 27 2018 Robert Scheck <robert@fedoraproject.org> 2.4-0.27.b1
|
||||||
|
- Added patch to allow building dsniff against libtirpc (#1582770)
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.26.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.25.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.24.b1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
* Sat Feb 11 2017 Robert Scheck <robert@fedoraproject.org> 2.4-0.23.b1
|
* Sat Feb 11 2017 Robert Scheck <robert@fedoraproject.org> 2.4-0.23.b1
|
||||||
- Added patch to allow building dsniff with OpenSSL >= 1.1.0
|
- Added patch to allow building dsniff with OpenSSL >= 1.1.0
|
||||||
- Added patch to correct a typo related to the -remote option
|
- Added patch to correct a typo related to the -remote option
|
||||||
@ -216,7 +278,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
* Sat Aug 30 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.4.b1
|
* Sat Aug 30 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.4.b1
|
||||||
- Re-diffed dsniff url log escaping patch for no fuzz
|
- Re-diffed dsniff url log escaping patch for no fuzz
|
||||||
|
|
||||||
* Wed May 29 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.3.b1
|
* Thu May 29 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.3.b1
|
||||||
- Rebuild against libnids 1.23
|
- Rebuild against libnids 1.23
|
||||||
|
|
||||||
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.2.b1
|
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.2.b1
|
||||||
|
Loading…
Reference in New Issue
Block a user