]>
Commit | Line | Data |
---|---|---|
4d44774e | 1 | Summary: Transparent and scalable SSL/TLS interception |
23cf3446 | 2 | Summary(pl.UTF-8): Przezroczyste i skalowalne przechwytywanie SSL/TLS |
4d44774e | 3 | Name: sslsplit |
23cf3446 | 4 | Version: 0.5.5 |
8f590134 | 5 | Release: 2 |
4d44774e | 6 | License: BSD |
4d44774e | 7 | Group: Applications/System |
23cf3446 JB |
8 | # see also https://github.com/droe/sslsplit/releases |
9 | #Source0: https://github.com/droe/sslsplit/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | Source0: https://mirror.roe.ch/rel/sslsplit/%{name}-%{version}.tar.bz2 | |
11 | # Source0-md5: c9628996a930bd18ce8e635dbedf0362 | |
8f590134 | 12 | Patch0: openssl3.patch |
23cf3446 | 13 | URL: https://www.roe.ch/SSLsplit |
4d44774e | 14 | BuildRequires: check-devel |
23cf3446 JB |
15 | BuildRequires: libevent-devel >= 2 |
16 | BuildRequires: libnet-devel >= 1:1.1 | |
17 | BuildRequires: libpcap-devel | |
4d44774e | 18 | BuildRequires: openssl-devel |
23cf3446 JB |
19 | BuildRequires: pkgconfig |
20 | BuildRequires: zlib-devel | |
4d44774e AM |
21 | Requires: iproute2 |
22 | Requires: iptables | |
56dcb5e9 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4d44774e AM |
24 | |
25 | %description | |
26 | SSLsplit is a tool for man-in-the-middle attacks against SSL/TLS | |
27 | encrypted network connections. Connections are transparently | |
28 | intercepted through a network address translation engine and | |
29 | redirected to SSLsplit. SSLsplit terminates SSL/TLS and initiates a | |
30 | new SSL/TLS connection to the original destination address, while | |
31 | logging all data transmitted. SSLsplit is intended to be useful for | |
32 | network forensics and penetration testing. | |
33 | ||
34 | It uses Linux netfilter REDIRECT and TPROXY. | |
35 | ||
23cf3446 JB |
36 | %description -l pl.UTF-8 |
37 | SSLsplit to narzędzie do ataków MITM przeciw połączeniom sieciowym | |
38 | szyfrowanym SSL/TLS. Połączenia są w sposób przezroczysty | |
39 | przechwytywane przez silnik tłumaczenia adresów sieciowych i | |
40 | przekierowywane do narzędzia SSLsplit. SSLsplit przerywa SSL/TLS i | |
41 | rozpoczyna nowe połączenie SSL/TLS do oryginalnego adresu docelowego, | |
42 | logując całe przesyłane dane. SSLsplit jest przeznaczony do śledzenia | |
43 | sieci oraz testów penetracyjnych. | |
44 | ||
45 | Narzędzie wykorzystuje funkcjonalność REDIRECT i TPROXY z linuksowego | |
46 | netfiltra. | |
47 | ||
4d44774e AM |
48 | %prep |
49 | %setup -q | |
8f590134 | 50 | %patch0 -p1 |
4d44774e AM |
51 | |
52 | %build | |
53 | %{__make} \ | |
54 | CC="%{__cc}" \ | |
8f590134 | 55 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
23cf3446 JB |
56 | DEBUG_CFLAGS="%{rpmcflags} %{rpmcppflags}" \ |
57 | PKG_LDFLAGS="%{rpmldflags}" | |
4d44774e AM |
58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
4d44774e | 61 | |
23cf3446 JB |
62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT \ | |
64 | PREFIX=%{_prefix} \ | |
65 | SYSCONFDIR=%{_sysconfdir} | |
66 | ||
67 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/sslsplit/sslsplit.conf{.sample,} | |
4d44774e AM |
68 | |
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
23cf3446 | 74 | %doc AUTHORS.md NEWS.md LICENSE LICENSE.third README.md SECURITY.md |
56dcb5e9 | 75 | %attr(755,root,root) %{_bindir}/sslsplit |
23cf3446 JB |
76 | %dir %{_sysconfdir}/sslsplit |
77 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sslsplit/sslsplit.conf | |
4d44774e | 78 | %{_mandir}/man1/sslsplit.1* |
23cf3446 | 79 | %{_mandir}/man5/sslsplit.conf.5* |