Via macOS environment variable:
mkdir -p ~/Library/LaunchAgents- Put
tlskeylogger.plistat~/Library/LaunchAgents/tlskeylogger.plist launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restartlaunchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately- Restart your browser(s)
- See how TLS keys are being written to
~/.tlskeyfileviatail -f ~/.tlskeyfile
Via mitmproxy:
Install xbar (the bitbar successor), use this plugin to toggle the macOS proxy settings for 8080, which is used by Burp and mitmproxy
SSLKEYLOGFILE=~/.tlskeyfile mitmproxy