diff options
author | lassulus <lassulus@googlemail.com> | 2013-05-24 17:10:58 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-05-24 17:10:58 +0200 |
commit | 3f21974d495b81d16e49b0808a1a5b121ab0a66b (patch) | |
tree | 19c2a66989f11fa0647511f0d15ec90b689460b0 /usr/bin | |
parent | 82eca39bd5e84fd5df720546570e839e812383c5 (diff) |
fixed bugs in encryption detection
Diffstat (limited to 'usr/bin')
-rwxr-xr-x | usr/bin/autowifi | 10 |
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 $@); |