mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 06:46:09 +03:00
11 lines
349 B
Bash
11 lines
349 B
Bash
|
#!/bin/sh
|
||
|
if [ ! "$1" ]; then
|
||
|
echo "Usage: $0 PCAP_FILE"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
file="$1"
|
||
|
# Remember to disable segmentation offload so pcap files won't capture packets larger than MTU:
|
||
|
# sudo ethtool --offload eth0 gso off gro off
|
||
|
tshark -2 -r "$file" -R tls.handshake.extensions_server_name -T fields -e tls.handshake.extensions_server_name -e tcp.stream
|