Skip to content

Instantly share code, notes, and snippets.

@rskvazh
Created May 4, 2018 07:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rskvazh/8e1551102a1d31b7cde82bc9a464ef41 to your computer and use it in GitHub Desktop.
Save rskvazh/8e1551102a1d31b7cde82bc9a464ef41 to your computer and use it in GitHub Desktop.
Debug encrypted WebRTC DataChannel (SCTP) with Firefox and Wireshark
# Debugging encrypted RTP is more fun than it used to be
# https://blog.mozilla.org/webrtc/debugging-encrypted-rtp-is-more-fun-than-it-used-to-be/
# Firefox 59
MOZ_LOG="timestamp,sctp:5,DataChannel:5,signaling:5,jsep:5,rtplogger:5,SCTP:5" \
MOZ_LOG_FILE=dclog.log \
/Applications/Firefox.app/Contents/MacOS/firefox-bin
grep 'SCTP_PACKET' dclog.log.child-1 | text2pcap -D -n -l 1 -i 17 -u 1234,1235 -t '%H:%M:%S.' - rtc.pcapng
# Open rtc.pcapng file in Wireshark and use Decode As... SCTP feature. ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment