summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-24 17:25:38 +0200
committerlassulus <lassulus@googlemail.com>2013-05-24 17:25:38 +0200
commit2bafe012acd61e90a4a3481f004a71a0378506c1 (patch)
tree813bdce7798ac7931aa15453f0a7a9a2096270dd /usr
parentcdb4bf2e4370757325452b70ade06aed79a643d5 (diff)
more comments
Diffstat (limited to 'usr')
-rwxr-xr-xusr/bin/autowifi5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index fcb5b59c..46a3b7f9 100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -73,12 +73,13 @@ iwlist_scan(){
done; print_iwlist_env ;echo WIFI_COUNT=$count)
}
crack_wifi(){
+ #SSID MAC CHANNEL ENCRYPTION WPA WPA2
if [ "$4" == off ];then
encr=open
- elif [ "$5" -eq 1 ]; then
- encr=psk
elif [ "$6" -eq 1 ]; then
encr=psk2
+ elif [ "$5" -eq 1 ]; then
+ encr=psk
elif [ "$4" == on ]; then
encr=wep
fi