Skip to content

Instantly share code, notes, and snippets.

View felixhammerl's full-sized avatar

Felix Hammerl felixhammerl

View GitHub Profile
@felixhammerl
felixhammerl / Pipfile
Created November 15, 2023 11:02
Lightweight Python logging
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[packages]
requests = "*"
python-json-logger = "*"
structlog = "*"

Keybase proof

I hereby claim:

  • I am felixhammerl on github.
  • I am fhammerl (https://keybase.io/fhammerl) on keybase.
  • I have a public key whose fingerprint is 71CB 1FD6 6575 1F5F B702 95C0 7859 E652 0888 D02E

To claim this, I am signing this object:

@felixhammerl
felixhammerl / README.md
Last active March 20, 2024 02:58
MitM TLS encrypted traffic in macOS using SSLKEYLOGFILE

Option 1: Via macOS environment variable:

  1. mkdir -p ~/Library/LaunchAgents
  2. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  3. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  4. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  5. Restart your browser(s)
  6. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile

NB: This may be hit or miss and many apps do not respect the env var.