

On start menu Windows 10 -> search and run `Ubuntu 20.04.Wireshark is a powerful data packet capture analysis tool. Main menu File > Save As > Export > Save as PCAP Run Microsoft Message Analyzer to open file ETL # Method 2: Use Microsoft Message Analyzer Right click on ETL file, then choose "Convert etltopcapng" # Method 1: Use PowerShell => Choose this method :heart:Ĭ:\> pwsh -c Install-Module Convert-Etl2Pcapng -Scope CurrentUserĬ:\> pwsh -c Install-Module Convert-Etl2Pcapng -Scope CurrentUser -ForceĬ:\> pwsh -c Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -ForceĬ:\> pwsh -c Install-Module -Name PowerShellGet -MinimumVersion 2.2.4.1 -Force -AllowClobber Tracing session was successfully stopped. The trace file and additional troubleshooting information have been compiled as "d:\dump\dump_.cab". Capture Event Tracing for Windows (ETW), press Ctrl+C to stopĬ:\> pktmon start -etw -p 0 -l real-timeĬ:\> netsh trace start IPv4.Address=192.168.3.4 capture=yes overwrite=no maxSize=500 tracefile=d:/dump/dump_.etlĪ tracing session is already in progress. Log file d:\dump\PktMon_1.etl (No events lost)Ĭ:\> pktmon format d:/dump/PktMon_1.etl -stats-only -verboseĬ:\> pktmon format d:/dump/PktMon_1.etl -out d:/dump/PktMon_1.txtĬ:\> pktmon pcapng d:/dump/PktMon_1.etl -out d:/dump/PktMon_1.pcapngĬ:\> "c:\Program Files\Wireshark\tshark.exe" -r d:/dump/PktMon_1.pcapng -n -z io,phs -q For instance, filter all SYN packets from or to IP 10.0.0.10Ĭ:\> pktmon filter add -ip 10.10.10.10 -t tcp synġ3 02-00-4C-4F-4F-50 Microsoft KM-TEST Loopback AdapterĢ 4C-BB-58-BA-A3-D5 Bluetooth Device (Personal Area Network)Ĥ B0-83-FE-BB-3D-DC Realtek PCIe GBE Family ControllerĬ:\> pktmon start -capture -comp 4 -pkt-size 0 -file-name d:/dump/PktMon_.etl -file-size 30 -log-mode multi-file Supported flags are FIN, SYN, RST, PSH, ACK, URG, ECE, and CWR.

To further filter TCP packets, an optional list of TCP flags to match can be provided.

Filter any ICMP traffic from or to IP 10.10.10.10Ĭ:\> pktmon filter add MyPingFilter -ip 10.10.10.10 -t icmp It will not distinguish between sourceĬ:\> pktmon filter add MyHttpFilter -port 80 443 NOTE1: When two MACs (-m), IPs (-i), or ports (-p) are specified, the filter Reported, it must match all conditions specified in at least one filter. ] ] ]Īdd a filter to control which packets are reported.

Under high loads, dumpcap is more reliable than tshark, see the test on ] There is no tcpdump on Windows OS as Linux OS. Want to capture network packages by running on the console terminal, and save to PCAP format. # tags: `vht` `tcpdump` `wireshark` `pcap`
