Skip to content

Instantly share code, notes, and snippets.

@csereno
Created March 19, 2018 21:25
Show Gist options
  • Save csereno/0bcfb55a8e91c6d1e7327e164dbf3c6c to your computer and use it in GitHub Desktop.
Save csereno/0bcfb55a8e91c6d1e7327e164dbf3c6c to your computer and use it in GitHub Desktop.
Converts PCAPng files to the PCAP format
# Created by csereno
# Requires Wireshark's editcap to be installed
# 1. CHANGE PATH TO CONVERT DIRECTORY (replace the $$$'s)
# 2. Add the capture files to the 'Convert' folder
# 3. Run the script
#
for %%f in (C:\$$$\Convert\*cap*) do ("C:\Program Files\Wireshark\editcap" -F libpcap %%f %%f.pcap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment