summaryrefslogtreecommitdiffstats
path: root/usr/bin
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-24 17:10:58 +0200
committerlassulus <lassulus@googlemail.com>2013-05-24 17:10:58 +0200
commit3f21974d495b81d16e49b0808a1a5b121ab0a66b (patch)
tree19c2a66989f11fa0647511f0d15ec90b689460b0 /usr/bin
parent82eca39bd5e84fd5df720546570e839e812383c5 (diff)
fixed bugs in encryption detection
Diffstat (limited to 'usr/bin')
-rwxr-xr-xusr/bin/autowifi10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index 0eaf72c0..1e5a5a6b 100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -73,14 +73,14 @@ iwlist_scan(){
done; print_iwlist_env ;echo WIFI_COUNT=$count)
}
crack_wifi(){
- if [ $4 == off ];then
+ if [ "$4" == off ];then
encr=open
- elif [ -n "$5" ]; then
+ elif [ "$5" -eq 1 ]; then
encr=psk
- elif [ -n "$6" ]; then
+ elif [ "$6" -eq 1 ]; then
+ encr=wep
+ elif [ "$4" == on ]; then
encr=wep
- elif [ $4 == on ]; then
- encr=open
fi
for hack in $(find /usr/lib/autowifi/ -type f); do
key=$($hack $@);