8f195e9
Summary:	Tools for network auditing and penetration testing
8f195e9
Name:		dsniff
8f195e9
Version:	2.4
e42b9de
Release:	0.33.b1%{?dist}
8f195e9
License:	BSD
8f195e9
URL:		http://www.monkey.org/~dugsong/%{name}/
8f195e9
Source:		http://www.monkey.org/~dugsong/%{name}/beta/%{name}-%{version}b1.tar.gz
8f195e9
Patch0:		dsniff-2.4-time_h.patch
8f195e9
Patch1:		dsniff-2.4-mailsnarf_corrupt.patch
8f195e9
Patch2:		dsniff-2.4-pcap_read_dump.patch
8f195e9
Patch3:		dsniff-2.4-multiple_intf.patch
8f195e9
Patch4:		dsniff-2.4-amd64_fix.patch
8f195e9
Patch5:		dsniff-2.4-urlsnarf_zeropad.patch
8f195e9
Patch6:		dsniff-2.4-libnet_11.patch
8f195e9
Patch7:		dsniff-2.4-checksum.patch
8f195e9
Patch8:		dsniff-2.4-openssl_098.patch
8f195e9
Patch9:		dsniff-2.4-sshcrypto.patch
8f195e9
Patch10:	dsniff-2.4-sysconf_clocks.patch
8f195e9
Patch11:	dsniff-2.4-urlsnarf_escape.patch
8f195e9
Patch12:	dsniff-2.4-string_header.patch
8f195e9
Patch13:	dsniff-2.4-arpa_inet_header.patch
8f195e9
Patch14:	dsniff-2.4-pop_with_version.patch
8f195e9
Patch15:	dsniff-2.4-obsolete_time.patch
8f195e9
Patch16:	dsniff-2.4-checksum_libnids.patch
8f195e9
Patch17:	dsniff-2.4-fedora_dirs.patch
8f195e9
Patch18:	dsniff-2.4-glib2.patch
e5ec7df
Patch19:	dsniff-2.4-link_layer_offset.patch
e5ec7df
Patch20:	dsniff-2.4-tds_decoder.patch
e5ec7df
Patch21:	dsniff-2.4-msgsnarf_segfault.patch
e5ec7df
Patch22:	dsniff-2.4-urlsnarf_timestamp.patch
0b65ece
Patch23:	dsniff-2.4-arpspoof_reverse.patch
0b65ece
Patch24:	dsniff-2.4-arpspoof_multiple.patch
0b65ece
Patch25:	dsniff-2.4-arpspoof_hwaddr.patch
0b65ece
Patch26:	dsniff-2.4-modernize_pop.patch
0b65ece
Patch27:	dsniff-2.4-libnet_name2addr4.patch
0b65ece
Patch28:	dsniff-2.4-pntohl_shift.patch
0b65ece
Patch29:	dsniff-2.4-rpc_segfault.patch
1c84f87
Patch30:	dsniff-2.4-openssl_110.patch
1c84f87
Patch31:	dsniff-2.4-remote_typo.patch
479de47
Patch32:	dsniff-2.4-smp_mflags.patch
479de47
Patch33:	dsniff-2.4-libtirpc.patch
16e3285
BuildRequires:	gcc
5429089
BuildRequires:	libnet-devel
1605604
%if 0%{?fedora} || 0%{?rhel} >= 8
5429089
BuildRequires:	openssl-devel
1605604
%else
1605604
BuildRequires:	openssl11-devel
1605604
%endif
5429089
BuildRequires:	libnids-devel
5429089
BuildRequires:	glib2-devel
5a54bcc
BuildRequires:	libpcap-devel
5429089
%if 0%{?fedora} >= 14 || 0%{?rhel} >= 7
e5ec7df
BuildRequires:	libdb-devel
b74a5da
%else
e5ec7df
BuildRequires:	db4-devel
b74a5da
%endif
ec865a4
BuildRequires:	libXmu-devel
5429089
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
5429089
BuildRequires:	rpcgen
5429089
BuildRequires:	libtirpc-devel
5429089
BuildRequires:	libnsl2-devel
ec865a4
%endif
8f195e9
8f195e9
%description
8f195e9
A collection of tools for network auditing and penetration testing. Dsniff,
8f195e9
filesnarf, mailsnarf, msgsnarf, urlsnarf and webspy allow to passively monitor
8f195e9
a network for interesting data (passwords, e-mail, files). Arpspoof, dnsspoof
8f195e9
and macof facilitate the interception of network traffic normally unavailable
8f195e9
to an attacker (e.g, due to layer-2 switching). Sshmitm and webmitm implement
8f195e9
active monkey-in-the-middle attacks against redirected SSH and HTTPS sessions
8f195e9
by exploiting weak bindings in ad-hoc PKI.
8f195e9
8f195e9
%prep
8f195e9
%setup -q
8f195e9
%patch0 -p1 -b .time_h
8f195e9
%patch1 -p1 -b .mailsnarf
8f195e9
%patch2 -p1 -b .pcap_dump
8f195e9
%patch3 -p1 -b .multiple_intf
8f195e9
%patch4 -p1 -b .amd64_fix
8f195e9
%patch5 -p1 -b .urlsnarf_zeropad
8f195e9
%patch6 -p1 -b .libnet_11
8f195e9
%patch7 -p1 -b .checksum
8f195e9
%patch8 -p1 -b .openssl_098
8f195e9
%patch9 -p1 -b .sshcrypto
8f195e9
%patch10 -p1 -b .sysconf_clocks
8f195e9
%patch11 -p1 -b .urlsnarf_escape
8f195e9
%patch12 -p1 -b .string_header
8f195e9
%patch13 -p1 -b .arpa_inet_header
8f195e9
%patch14 -p1 -b .pop_with_version
8f195e9
%patch15 -p1 -b .obsolete_time
8f195e9
%patch16 -p1 -b .checksum_libnids
8f195e9
%patch17 -p1 -b .fedora_dirs
8f195e9
%patch18 -p1 -b .glib2
e5ec7df
%patch19 -p1 -b .link_layer_offset
e5ec7df
%patch20 -p1 -b .tds_decoder
e5ec7df
%patch21 -p1 -b .msgsnarf_segfault
e5ec7df
%patch22 -p1 -b .urlsnarf_timestamp
0b65ece
%patch23 -p1 -b .arpspoof_reverse
0b65ece
%patch24 -p1 -b .arpspoof_multiple
0b65ece
%patch25 -p1 -b .arpspoof_hwaddr
0b65ece
%patch26 -p1 -b .modernize_pop
0b65ece
%patch27 -p1 -b .libnet_name2addr4
0b65ece
%patch28 -p1 -b .pntohl_shift
0b65ece
%patch29 -p1 -b .rpc_segfault
1c84f87
%patch30 -p1 -b .openssl_110
1c84f87
%patch31 -p1 -b .remote_typo
479de47
%patch32 -p1 -b .smp_mflags
5429089
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
479de47
%patch33 -p1 -b .libtirpc
5429089
%endif
8f195e9
8f195e9
%build
1605604
%if 0%{?rhel} == 7
1605604
sed \
1605604
  -e 's|include/openssl/|include/openssl11/openssl/|g' \
1605604
  -e 's|\(SSLINC="\)-I${prefix}/include|\1$(pkg-config --cflags openssl11)|g' \
1605604
  -e 's|\(SSLLIB="\)-L${prefix}/lib -lssl -lcrypto|\1$(pkg-config --libs openssl11)|g' \
1605604
  -i configure
1605604
%endif
1605604
8f195e9
%configure
8e874af
%make_build
8f195e9
8f195e9
%install
8e874af
%make_install install_prefix=$RPM_BUILD_ROOT
8f195e9
8f195e9
%files
1c84f87
%license LICENSE
1c84f87
%doc CHANGES README TODO
5429089
%dir %{_sysconfdir}/%{name}/
8f195e9
%config(noreplace) %{_sysconfdir}/%{name}/*
ec865a4
%{_sbindir}/arpspoof
ec865a4
%{_sbindir}/dnsspoof
ec865a4
%{_sbindir}/%{name}
ec865a4
%{_sbindir}/filesnarf
ec865a4
%{_sbindir}/macof
ec865a4
%{_sbindir}/mailsnarf
ec865a4
%{_sbindir}/msgsnarf
ec865a4
%{_sbindir}/sshmitm
ec865a4
%{_sbindir}/sshow
ec865a4
%{_sbindir}/tcpkill
ec865a4
%{_sbindir}/tcpnice
ec865a4
%{_sbindir}/urlsnarf
ec865a4
%{_sbindir}/webmitm
ec865a4
%{_sbindir}/webspy
ec865a4
%{_mandir}/man8/arpspoof.8*
ec865a4
%{_mandir}/man8/dnsspoof.8*
ec865a4
%{_mandir}/man8/%{name}.8*
ec865a4
%{_mandir}/man8/filesnarf.8*
ec865a4
%{_mandir}/man8/macof.8*
ec865a4
%{_mandir}/man8/mailsnarf.8*
ec865a4
%{_mandir}/man8/msgsnarf.8*
ec865a4
%{_mandir}/man8/sshmitm.8*
ec865a4
%{_mandir}/man8/sshow.8*
ec865a4
%{_mandir}/man8/tcpkill.8*
ec865a4
%{_mandir}/man8/tcpnice.8*
ec865a4
%{_mandir}/man8/urlsnarf.8*
ec865a4
%{_mandir}/man8/webmitm.8*
ec865a4
%{_mandir}/man8/webspy.8*
8f195e9
8f195e9
%changelog
e42b9de
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.33.b1
e42b9de
- Second attempt - Rebuilt for
e42b9de
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e42b9de
f45a032
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.32.b1
f45a032
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f45a032
c1db46a
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.31.b1
c1db46a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c1db46a
16d9513
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.30.b1
16d9513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
16d9513
3600fec
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.29.b1
3600fec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3600fec
a57f3d8
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.28.b1
a57f3d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a57f3d8
5429089
* Sun May 27 2018 Robert Scheck <robert@fedoraproject.org> 2.4-0.27.b1
5429089
- Added patch to allow building dsniff against libtirpc (#1582770)
5429089
d9b9d82
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.26.b1
d9b9d82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d9b9d82
df68b51
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.25.b1
df68b51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
df68b51
fc8d099
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.24.b1
fc8d099
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fc8d099
1c84f87
* Sat Feb 11 2017 Robert Scheck <robert@fedoraproject.org> 2.4-0.23.b1
1c84f87
- Added patch to allow building dsniff with OpenSSL >= 1.1.0
1c84f87
- Added patch to correct a typo related to the -remote option
1c84f87
cf07b6d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.22.b1
cf07b6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cf07b6d
25cf213
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-0.21.b1
25cf213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
25cf213
fba57e5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.20.b1
fba57e5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fba57e5
9df90bf
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.19.b1
9df90bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9df90bf
23e07da
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.18.b1
23e07da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
23e07da
0b65ece
* Fri Dec 20 2013 Robert Scheck <robert@fedoraproject.org> 2.4-0.17.b1
0b65ece
- Corrected patch which touches tabular data stream protocol handler
0b65ece
- Added a patch to add both communication partners in arpspoof
0b65ece
- Added patch to allow multiple targets to be imitated simultaniously
0b65ece
- Added patch to allow the selection of source hw address in arpspoof
0b65ece
- Added a patch which fixes and modernizes the POP decoder
0b65ece
- Fixed segmentation faults related to libnet_name2addr4() (#1009879)
0b65ece
- Added a patch to fix bit-shift in pntohl() macro (#714958, #850496)
0b65ece
- Avoid xdrs being used without being initialised (#715042, #850494)
0b65ece
b8c03ff
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.16.b1
b8c03ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b8c03ff
cdb2fd7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.15.b1
cdb2fd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
cdb2fd7
e5ec7df
* Mon Jul 30 2012 Robert Scheck <robert@fedoraproject.org> 2.4-0.14.b1
e5ec7df
- Added a patch which adds further link layer offsets
e5ec7df
- Avoid opportunity for DoS in tabular data stream protocol handler
e5ec7df
- Added a memset in msgsnarf to correctly 0 out the C struct
e5ec7df
- Patched urlsnarf to use timestamps from pcap file if available
e5ec7df
7bb9192
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.13.b1
7bb9192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7bb9192
dbeadca
* Fri Mar 30 2012 Jon Ciesla <limburgher@gmail.com> - 2.4-0.12.b1
dbeadca
- libnet rebuild
dbeadca
7f9d5d5
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.11.b1
7f9d5d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7f9d5d5
65ce2ba
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.10.b1
65ce2ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
65ce2ba
f0c0e19
* Mon Mar 29 2010 Robert Scheck <robert@fedoraproject.org> 2.4-0.9.b1
f0c0e19
- Rebuild against libnids 1.24
f0c0e19
ec865a4
* Fri Jan 08 2010 Robert Scheck <robert@fedoraproject.org> 2.4-0.8.b1
ec865a4
- Added build requirement to libXmu-devel for webspy (#553230)
ec865a4
9a392ef
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.4-0.7.b1
9a392ef
- rebuilt with new openssl
9a392ef
172749b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-0.6.b1
172749b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
172749b
65b3ee4
* Mon Feb 23 2009 Robert Scheck <robert@fedoraproject.org> 2.4-0.5.b1
65b3ee4
- Rebuild against gcc 4.4 and rpm 4.6
65b3ee4
abb0833
* Sat Aug 30 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.4.b1
abb0833
- Re-diffed dsniff url log escaping patch for no fuzz
abb0833
5429089
* Thu May 29 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.3.b1
55bf1c6
- Rebuild against libnids 1.23
55bf1c6
69553c8
* Sun Feb 10 2008 Robert Scheck <robert@fedoraproject.org> 2.4-0.2.b1
69553c8
- Rebuild against gcc 4.3
69553c8
8f195e9
* Thu Nov 29 2007 Robert Scheck <robert@fedoraproject.org> 2.4-0.1.b1
8f195e9
- Upgrade to 2.4b1 and added many patches from Debian
8f195e9
- Initial spec file for Fedora and Red Hat Enterprise Linux