Skip to content

Instantly share code, notes, and snippets.

@notsobad
Created November 22, 2019 06:38
Show Gist options
  • Save notsobad/10332b195ead40a25279c51c62fa566b to your computer and use it in GitHub Desktop.
Save notsobad/10332b195ead40a25279c51c62fa566b to your computer and use it in GitHub Desktop.
过滤tls1.0的client hello数据包
# 过滤tls1.0的client hello数据包,参考https://www.netmeister.org/blog/tcpdump-ssl-and-tls.html
tcpdump -ni eth0 '((tcp[((tcp[12] & 0xf0) >>2)] = 0x16) && (tcp[((tcp[12] & 0xf0) >> 2)+1] = 0x03) && (tcp[((tcp[12] & 0xf0) >> 2)+9] = 0x03) && (tcp[((tcp[12] & 0xf0) >> 2)+10] = 0x01))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment