Created
June 27, 2018 22:58
-
-
Save dark-vex/02e5990afc262062b1aeefdce4a1ebbd to your computer and use it in GitHub Desktop.
Script for convert pcapng files to pcap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| convert=`which tshark` | |
| list_pcap=`ls -lh |grep -v .sh |awk '{ print $9 }'|awk -F.pcapng '{ print $1 }'` | |
| for i in $list_pcap; do | |
| echo "Converting: "$i | |
| $convert -F pcap -r $i.pcapng -w $i.pcap | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment