Skip to content

Instantly share code, notes, and snippets.

@braydenhouston
Last active June 9, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braydenhouston/78a9e58547d4a420f1924998f6ff3421 to your computer and use it in GitHub Desktop.
Save braydenhouston/78a9e58547d4a420f1924998f6ff3421 to your computer and use it in GitHub Desktop.
A script to speed up kismet_to_wiglecsv conversions
#!/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."
@braydenhouston
Copy link
Author

Updated to compress converted files into a .tar.gz for easier uploading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment