Created
May 4, 2018 07:59
-
-
Save rskvazh/8e1551102a1d31b7cde82bc9a464ef41 to your computer and use it in GitHub Desktop.
Debug encrypted WebRTC DataChannel (SCTP) with Firefox and Wireshark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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