Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (17 sloc) 419 Bytes
#!/bin/bash
if [ $# -lt 3 ] ; then
echo "$0 file ssid password [-n] [-p printer] [service [service ...]]"
exit 1
fi
for i in FILE SSID PASSWORD ; do
declare $i=$1
shift
done
tshark \
-r "$FILE" \
-R "http.host and http.cookie" \
-T fields -e http.host -e http.cookie \
-o wlan.enable_decryption:TRUE \
-o "wlan.wep_key1:wpa-pwd:$PASSWORD:$SSID" \
| \
./biscuit parse "$@"