Skip to content

Instantly share code, notes, and snippets.

@csereno
Created October 5, 2018 19:32
Show Gist options
  • Save csereno/7fee28acc69e8e6e941ee06f2fccb6c2 to your computer and use it in GitHub Desktop.
Save csereno/7fee28acc69e8e6e941ee06f2fccb6c2 to your computer and use it in GitHub Desktop.
Batch file to start a Wireshark (dumpcap) capture and output the files to a directory.
@ECHO OFF
CD C:\Temp\WireSharkCaptures\
DEL *.* /F /Q
"C:\Program Files\Wireshark\dumpcap.exe -i1 -n -t -b files:400 -b filesize:40000 -f "not port 3389" -w "C:\Temp\WireSharkCaptures\filename.pcap"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment