• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H30-Aug-2019-2721

Mk/H30-Aug-2019-405319

docker/sslsplit/H30-Aug-2019-2017

extra/H30-Aug-2019-738483

xnu/H30-Aug-2019-203,992167,195

AUTHORS.mdH A D30-Aug-20191.8 KiB4032

BSDmakefileH A D30-Aug-201956 74

GNUmakefileH A D30-Aug-201919 KiB633417

HASHESH A D30-Aug-20193.7 KiB7473

LICENSEH A D30-Aug-20191.3 KiB2521

LICENSE.contribH A D30-Aug-2019627 119

LICENSE.thirdH A D30-Aug-2019727 2818

NEWS.mdH A D30-Aug-201913.3 KiB274223

README.mdH A D30-Aug-20195.2 KiB12287

SECURITY.mdH A D30-Aug-2019510 139

VERSIONH A D30-Aug-20196 21

attrib.hH A D30-Aug-20192.7 KiB7421

base64.cH A D30-Aug-20196.1 KiB190132

base64.hH A D30-Aug-20191.7 KiB427

base64.t.cH A D30-Aug-20198.5 KiB354269

build.cH A D30-Aug-20191.8 KiB426

build.hH A D30-Aug-20191.7 KiB418

cache.cH A D30-Aug-20194 KiB170106

cache.hH A D30-Aug-20193.2 KiB8545

cachedsess.cH A D30-Aug-20195.8 KiB235167

cachedsess.hH A D30-Aug-20191.9 KiB4912

cachedsess.t.cH A D30-Aug-20195.4 KiB181125

cachefkcrt.cH A D30-Aug-20194.4 KiB184121

cachefkcrt.hH A D30-Aug-20191.8 KiB459

cachefkcrt.t.cH A D30-Aug-20194.1 KiB14899

cachemgr.cH A D30-Aug-20194.6 KiB170101

cachemgr.hH A D30-Aug-20193.6 KiB9052

cachemgr.t.cH A D30-Aug-20191.9 KiB6022

cachessess.cH A D30-Aug-20194.9 KiB205140

cachessess.hH A D30-Aug-20191.8 KiB4610

cachessess.t.cH A D30-Aug-20195.2 KiB186130

cachetgcrt.cH A D30-Aug-20194 KiB162103

cachetgcrt.hH A D30-Aug-20191.8 KiB449

cachetgcrt.t.cH A D30-Aug-20194 KiB14293

cert.cH A D30-Aug-20194.8 KiB222153

cert.hH A D30-Aug-20192.2 KiB5822

cert.t.cH A D30-Aug-20192.7 KiB9248

defaults.hH A D30-Aug-20193.8 KiB9810

defaults.t.cH A D30-Aug-20193 KiB9448

dynbuf.cH A D30-Aug-20193.3 KiB13975

dynbuf.hH A D30-Aug-20191.9 KiB5014

dynbuf.t.cH A D30-Aug-20194 KiB14695

khash.hH A D30-Aug-201921 KiB628290

log.cH A D30-Aug-201945 KiB1,8451,502

log.hH A D30-Aug-20194.1 KiB10565

logbuf.cH A D30-Aug-20195.8 KiB276192

logbuf.hH A D30-Aug-20192.8 KiB7132

logbuf.t.cH A D30-Aug-20192.2 KiB6728

logger.cH A D30-Aug-20199 KiB365220

logger.hH A D30-Aug-20193.3 KiB7539

logpkt.cH A D30-Aug-201926.2 KiB844650

logpkt.hH A D30-Aug-20192.6 KiB7135

main.cH A D30-Aug-201928.2 KiB918784

main.t.cH A D30-Aug-20193.4 KiB11775

nat.cH A D30-Aug-201916.5 KiB678482

nat.hH A D30-Aug-20192.2 KiB6022

opts.cH A D30-Aug-201941.2 KiB1,7081,496

opts.hH A D30-Aug-20197.6 KiB204162

opts.t.cH A D30-Aug-201918 KiB591514

privsep.cH A D30-Aug-201927.3 KiB1,059856

privsep.hH A D30-Aug-20191.8 KiB4510

proc.cH A D30-Aug-201910.8 KiB463325

proc.hH A D30-Aug-20192.6 KiB6628

proxy.cH A D30-Aug-201911.1 KiB440320

proxy.hH A D30-Aug-20191.8 KiB4510

pxyconn.cH A D30-Aug-201975.4 KiB2,6252,079

pxyconn.hH A D30-Aug-20191.9 KiB4913

pxythrmgr.cH A D30-Aug-20197.4 KiB291190

pxythrmgr.hH A D30-Aug-20192 KiB5416

pxythrmgr.t.cH A D30-Aug-20193.6 KiB13082

ssl.cH A D30-Aug-201965.4 KiB2,3651,757

ssl.hH A D30-Aug-20199.3 KiB271179

ssl.t.cH A D30-Aug-201926.9 KiB892749

sslsplit.1.inH A D30-Aug-201937.4 KiB859827

sslsplit.conf.5.inH A D30-Aug-20197.9 KiB210183

sslsplit.conf.inH A D30-Aug-20196 KiB191149

sys.cH A D30-Aug-201923 KiB1,046781

sys.hH A D30-Aug-20193.1 KiB8036

sys.t.cH A D30-Aug-20198.4 KiB377293

thrqueue.cH A D30-Aug-20196 KiB230137

thrqueue.hH A D30-Aug-20192.1 KiB5114

url.cH A D30-Aug-20194.2 KiB12377

url.hH A D30-Aug-20191.6 KiB416

url.t.cH A D30-Aug-20193.4 KiB13683

util.cH A D30-Aug-20191.7 KiB466

util.hH A D30-Aug-20191.6 KiB416

util.t.cH A D30-Aug-20193.1 KiB12272

README.md

1# SSLsplit - transparent SSL/TLS interception
2https://www.roe.ch/SSLsplit
3
4[![Build Status](https://travis-ci.org/droe/sslsplit.svg)](https://travis-ci.org/droe/sslsplit)
5[![Gitter chat](https://badges.gitter.im/droe/sslsplit.png)](https://gitter.im/droe/sslsplit)
6
7## Overview
8
9SSLsplit is a tool for man-in-the-middle attacks against SSL/TLS encrypted
10network connections.  It is intended to be useful for network forensics,
11application security analysis and penetration testing.
12
13SSLsplit is designed to transparently terminate connections that are redirected
14to it using a network address translation engine.  SSLsplit then terminates
15SSL/TLS and initiates a new SSL/TLS connection to the original destination
16address, while logging all data transmitted.  Besides NAT based operation,
17SSLsplit also supports static destinations and using the server name indicated
18by SNI as upstream destination.  SSLsplit is purely a transparent proxy and
19cannot act as a HTTP or SOCKS proxy configured in a browser.
20
21SSLsplit supports plain TCP, plain SSL, HTTP and HTTPS connections over both
22IPv4 and IPv6.  It also has the ability to dynamically upgrade plain TCP to SSL
23in order to generically support SMTP STARTTLS and similar upgrade mechanisms.
24SSLsplit fully supports Server Name Indication (SNI) and is able to work with
25RSA, DSA and ECDSA keys and DHE and ECDHE cipher suites.  Depending on the
26version of OpenSSL built against, SSLsplit supports SSL 3.0, TLS 1.0, TLS 1.1
27and TLS 1.2, and optionally SSL 2.0 as well.
28
29For SSL and HTTPS connections, SSLsplit generates and signs forged X509v3
30certificates on-the-fly, mimicking the original server certificate's subject
31DN, subjectAltName extension and other characteristics.  SSLsplit has the
32ability to use existing certificates of which the private key is available,
33instead of generating forged ones.  SSLsplit supports NULL-prefix CN
34certificates but otherwise does not implement exploits against specific
35certificate verification vulnerabilities in SSL/TLS stacks.
36
37SSLsplit implements a number of defences against mechanisms which would
38normally prevent MitM attacks or make them more difficult.  SSLsplit can deny
39OCSP requests in a generic way.  For HTTP and HTTPS connections, SSLsplit
40mangles headers to prevent server-instructed public key pinning (HPKP), avoid
41strict transport security restrictions (HSTS), avoid Certificate Transparency
42enforcement (Expect-CT) and prevent switching to QUIC/SPDY, HTTP/2 or
43WebSockets (Upgrade, Alternate Protocols).  HTTP compression, encodings and
44keep-alive are disabled to make the logs more readable.
45
46Logging options include traditional SSLsplit connect and content log files as
47well as PCAP files and mirroring decrypted traffic to a network interface.
48Additionally, certificates, master secrets and local process information can be
49logged.
50
51See the manual page sslsplit(1) for details on using SSLsplit and setting up
52the various NAT engines.
53
54
55## Requirements
56
57SSLsplit depends on the OpenSSL, libevent 2.x, libpcap and libnet 1.1.x
58libraries by default; libpcap and libnet are not needed if the mirroring
59feature is omitted.  The build depends on GNU make and a POSIX.2 environment in
60`PATH`.  If available, pkg-config is used to locate and configure the
61dependencies.  The optional unit tests depend on the check library.
62
63SSLsplit currently supports the following operating systems and NAT mechanisms:
64
65-   FreeBSD: pf rdr and divert-to, ipfw fwd, ipfilter rdr
66-   OpenBSD: pf rdr-to and divert-to
67-   Linux: netfilter REDIRECT and TPROXY
68-   Mac OS X: pf rdr and ipfw fwd
69
70Support for local process information (`-i`) is currently available on Mac OS X
71and FreeBSD.
72
73SSL/TLS features and compatibility greatly depend on the version of OpenSSL
74linked against.  For optimal results, use a recent release of OpenSSL or
75LibreSSL.
76
77
78## Installation
79
80With the requirements above available, run:
81
82    make
83    make test       # optional unit tests
84    make sudotest   # optional unit tests requiring privileges
85    make install    # optional install
86
87Dependencies are autoconfigured using pkg-config.  If dependencies are not
88picked up and fixing `PKG_CONFIG_PATH` does not help, you can specify their
89respective locations manually by setting `OPENSSL_BASE`, `LIBEVENT_BASE`,
90`LIBPCAP_BASE`, `LIBNET_BASE` and/or `CHECK_BASE` to the respective prefixes.
91
92You can override the default install prefix (`/usr/local`) by setting `PREFIX`.
93For more build options and build-time defaults see [`GNUmakefile`](GNUmakefile)
94and [`defaults.h`](defaults.h).
95
96
97## Documentation
98
99See the manual pages `sslsplit(1)` and `sslsplit.conf(5)` for user
100documentation.  See [`NEWS.md`](NEWS.md) for release notes listing significant
101changes between releases and [`SECURITY.md`](SECURITY.md) for information on
102security vulnerability disclosure.
103
104
105## License
106
107SSLsplit is provided under a 2-clause BSD license.
108SSLsplit contains components licensed under the MIT and APSL licenses.
109See [`LICENSE`](LICENSE), [`LICENSE.contrib`](LICENSE.contrib) and
110[`LICENSE.third`](LICENSE.third) as well as the respective source file headers
111for details.
112
113
114## Credits
115
116See [`AUTHORS.md`](AUTHORS.md) for the list of contributors.
117
118SSLsplit was inspired by `mitm-ssl` by Claes M. Nyberg and `sslsniff` by Moxie
119Marlinspike, but shares no source code with them.
120
121
122