
Untitled
By: a guest on
Apr 15th, 2012 | syntax:
None | size: 0.62 KB | hits: 10 | expires: Never
#!/bin/bash
echo "This script requires tshark"
echo
echo "Checking for tshark"
type -P tshark &>/dev/null || { echo "I require tshark but it's not installed. Aborting." >&2; exit 1; }
echo "tshark found"
echo
echo "Moving on...."
echo
echo "Please the path to the capture (ex. /home/john/NETGEAR.cap)"
read cap_path
echo
echo "Please enter the ESSID (ex. NETGEAR)"
read essid
echo
echo "Stripping file...."
tshark -r $cap_path -R 'eapol || wlan_mgt.tag.interpretation eq "$essid"' -w stripped.cap
echo
echo "Your stripped file should be located in the current directory and named stripped.cap."