Last active
June 9, 2019 05:43
-
-
Save braydenhouston/78a9e58547d4a420f1924998f6ff3421 to your computer and use it in GitHub Desktop.
A script to speed up kismet_to_wiglecsv conversions
This file contains 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 | |
sudo systemctl daemon-reload; | |
sudo systemctl -f stop kistmet; | |
if [ ! -d ./csv ]; then | |
echo "Creating ./csv"; | |
mkdir ./csv | |
fi | |
count=0 | |
for i in ./*.kismet; do | |
let "count++"; | |
sudo kismetdb_to_wiglecsv --in $i --out ./csv/$(basename $i .kismet).csv; | |
done | |
echo "$count files processed. Output files are in ./csv"; | |
tar -czf ./csv/Kismet-$(date +'%Y%m%d%H%M%S').tar.gz ./csv/Kismet*.csv | |
echo "Compression Complete. Please upload the .tar.gz to Wigle." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to compress converted files into a .tar.gz for easier uploading.