diff options
author | lassulus <lassulus@googlemail.com> | 2013-09-27 01:00:45 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-09-27 01:00:45 +0200 |
commit | 7823e04b4b3f83f1efcc60f11892714b208db96c (patch) | |
tree | 58ed873d41472bd038777327500e4f3dfe80d0e7 /usr/bin | |
parent | fef22e8458d721c665709aa521d03128f30d0d40 (diff) |
implement painmode
Diffstat (limited to 'usr/bin')
-rwxr-xr-x | usr/bin/autowifi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/bin/autowifi b/usr/bin/autowifi index 07786d67..7efcee62 100755 --- a/usr/bin/autowifi +++ b/usr/bin/autowifi @@ -4,9 +4,10 @@ cd $(dirname $(readlink -f $0)) interface=${interface:-wlan0} root=${root:-../../} -crackdir=$root/usr/lib/autowifi/plugins +crackdir= $root/usr/lib/autowifi/plugins wifi_keys=$root/etc/autowifi/wifi_keys wifi_log=$root/var/log/autowifi.log +painmode=${painmode:-} # exists() run_hooks() . $root/usr/lib/autowifi/lib/core @@ -104,7 +105,7 @@ loop_over_cracks(){ i=$1 KEY='' for crack in $(find $crackdir -type f | sort -u); do - KEY="$(eval root=$root \$crack \"\${ESSID_${i}}\" \"\${MAC_${i}}\" \${FREQ_${i}} \${ENCRYPTION_${i}})" + KEY="$(eval root=$root painmode=$painmode \$crack \"\${ESSID_${i}}\" \"\${MAC_${i}}\" \${FREQ_${i}} \${ENCRYPTION_${i}})" if [ $? -eq 0 ]; then eval connect \"\${MAC_${i}}\" \"\${ESSID_${i}}\" \${ENCRYPTION_${i}} \"\${KEY}\" if [ $? -eq 0 ]; then |