Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
JahGroupSubmission/runKismet.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (38 sloc)
1.19 KB
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
while true; do | |
echo "Looking For Interface in Moitor Mode" | |
if ip a | grep -q "wlan0mon"; then | |
echo "Taking Interface Device Down" | |
airmon-ng stop wlan0mon | |
echo "Restarting Interafce ....." | |
if airmon-ng start wlan0 | grep -q "kill"; then | |
echo "Trouble Found! Killing Network Processes That Might Interfere" | |
airmon-ng check kill | |
echo "Starting interface" | |
airmon-ng start wlan0 | |
else | |
echo "Starting interface" | |
airmon-ng start wlan0 | |
fi | |
else | |
echo "Starting Interface In Monior Mode" | |
if airmon-ng start wlan0 | grep -q "kill"; then | |
echo "Trouble Found! Killing Network Processes That Might Interfere" | |
airmon-ng check kill | |
echo "Starting interface" | |
airmon-ng start wlan0 | |
else | |
echo "Starting interface" | |
airmon-ng start wlan0 | |
fi | |
fi | |
echo "Starting Kismet ..." | |
kismet -c wlan0mon & | |
sleep 60 | |
echo "Killing Kismet ..." | |
killall kismet | |
sleep 10 | |
echo "Moving Data Into Main Database" | |
python3 Python_org.py | |
echo "Removing Old Database File" | |
rm -f kismet.kismet | |
done |