From 2bafe012acd61e90a4a3481f004a71a0378506c1 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 24 May 2013 17:25:38 +0200 Subject: more comments --- usr/bin/autowifi | 5 +++-- 1 file 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 -- cgit v1.2.3