SSLSNIFF(1)

✨ SSLSNIFF(1) β€” the sslsniff glow-up ✨

okay bestie, sit down, we're reading the sslsniff manual page together πŸ’– it lives in the General Commands Manual section, and it's literally the whole vibe.


🌸 NAME 🌸

sslsniff β€” SSL/TLS man-in-the-middle attack tool πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

sslsniff [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so this page is the little quick rundown of the sslsniff command, no cap.

sslsniff is built to cook up man-in-the-middle (MITM) attacks on SSL/TLS connections, and it dynamically generates certs for the domains that are being accessed on the fly ✨. Those new certificates get constructed in a certificate chain that's signed by any certificate you provide. it's giving ✨effortless✨.

and sslsniff also supports other attacks, like null-prefix or OCSP attacks, to achieve silent interceptions of connections when possible. sneaky! πŸ’…


πŸ’œ OPTIONS πŸ’œ

πŸ‘‘ Modes:

  • -a β€” Authority mode. Specify a certificate that will act as a CA.
  • -t β€” Targeted mode. Specify a directory full of certificates to target.

🫢 Required options:

  • -c <file|directory> β€” File containing CA cert/key (authority mode) or directory containing a collection of certs/keys (targeted mode)
  • -s <port> β€” Port to listen on for SSL interception.
  • -w <file> β€” File to log to

πŸ“ Optional options:

  • -u <updateLocation> β€” Location of any Firefox XML update files.
  • -m <certificateChain> β€” Location of any intermediary certificates.
  • -h <port> β€” Port to listen on for HTTP interception (required for fingerprinting).
  • -f <ff,ie,safari,opera> β€” Only intercept requests from the specified browser(s).
  • -d β€” Deny OCSP requests for our certificates.
  • -p β€” Only log HTTP POSTs
  • -e <url> β€” Intercept Mozilla Addon Updates
  • -j <sha256> β€” The sha256sum value of the addon to inject

⭐ NOTES ⭐

heads up bestie: sslsniff works only on the FORWARD traffic (not on INPUT or OUTPUT). that's the rule, periodt.

🌈 EXAMPLES 🌈

so say you wanna intercept traffic on port 8443 β€” first, start sslsniff on a local port:

sslsniff -a -c /usr/share/sslsniff/certs/wildcard -s 4433 -w /tmp/sslsniff.log

and then redirect traffic to this port using the iptables nat table:

iptables -t nat -A PREROUTING -p tcp --destination-port 8443 -j REDIRECT --to-ports 4433

like, that's it. slay. πŸ”₯


πŸ’– AUTHOR πŸ’–

sslsniff was written by Moxie Marlinspike.

This manual page was written by Pierre Chifflier <pollux@debian.org>, for the Debian project (and may be used by others).


mwah πŸ’‹ that's the whole page, bestie β€” and for the receipts: this came from the Debian sslsniff package, and the source date on it is August 16, 2009, filed under SSLSNIFF(1). iconic behavior honestly. go forth and read your man pages, ily 🫢✨

πŸ“¦ where this page comes from