Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Last active October 20, 2022 00:32
Show Gist options
  • Save gregjhogan/3a5cf79bebd78c1a0ca6566400dd357e to your computer and use it in GitHub Desktop.
Save gregjhogan/3a5cf79bebd78c1a0ca6566400dd357e to your computer and use it in GitHub Desktop.
wireshark tls sni and http filter
ssl.handshake.extension.type == "server_name" || http.host
@ezbik
Copy link

ezbik commented Sep 23, 2020

tshark -l -i enp0s3 -f 'dst port ( 80 or 8054 or 443 or 993 ) ' -Y 'ssl.handshake.extension.type == "server_name" || http.host' -T fields -e ip.src -e ip.dst -e tcp.dstport -e ssl.handshake.extensions_server_name -e http.host

@mac-zhou
Copy link

change ssl.handshake.extensions_server_name to tls.handshake.extensions_server_name

tshark -l -i enp0s3 -f 'dst port ( 80 or 8054 or 443 or 993 ) ' \
-Y 'ssl.handshake.extension.type == "server_name" || http.host' \
-T fields -e ip.src -e ip.dst -e tcp.dstport -e tls.handshake.extensions_server_name -e http.host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment