summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2013-05-24 17:18:11 +0200
committerlassulus <lassulus@googlemail.com>2013-05-24 17:18:11 +0200
commit2f2311697d0c448717db34998ca497d245c28bca (patch)
treee1ff3477bff3d80688b25991d1295ac7a6b43610 /usr
parent3f21974d495b81d16e49b0808a1a5b121ab0a66b (diff)
now escaped fuu
Diffstat (limited to 'usr')
-rwxr-xr-xusr/bin/autowifi6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi
index 1e5a5a6b..73d5db18 100755
--- a/usr/bin/autowifi
+++ b/usr/bin/autowifi
@@ -83,10 +83,10 @@ crack_wifi(){
encr=wep
fi
for hack in $(find /usr/lib/autowifi/ -type f); do
- key=$($hack $@);
+ key=$($hack "$@");
ret=$?
if [ $ret -eq 0 ];then
- connect_wifi $3 $1 $encr $key
+ connect_wifi "$3" "$1" $encr "$key"
sleep 20
if check_gateway; then
(cat /etc/autowifi/wifi_keys | grep -v "$1|$2|" ; echo "$1|$2|$key" ) | sort | uniq > /etc/autowifi/wifi_keys2
@@ -107,7 +107,7 @@ loop_over_networks(){
. /tmp/${wifi}.scan
for i in `seq 1 $WIFI_COUNT`; do
eval grep -q \${MAC_${i}} /etc/autowifi/blacklist && continue
- eval crack_wifi \${ESSID_${i}} \${MAC_${i}} \${CHANNEL_${i}} \${ENCRYPTION_${i}} \${WPA_${i}} \${WPA2_${i}}
+ eval crack_wifi "\${ESSID_${i}}" \${MAC_${i}} \${CHANNEL_${i}} \${ENCRYPTION_${i}} \${WPA_${i}} \${WPA2_${i}}
done
}