summaryrefslogtreecommitdiffstats
path: root/recon/autowifi/inspector_wifi
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2014-12-22 20:09:43 +0100
committerlassulus <lass@aidsballs.de>2014-12-22 20:09:43 +0100
commit3a7a49b9bda4b2df849db827c61aa347a68a96be (patch)
tree4d0627a7715463f685ce1f48413e6138b236f1f6 /recon/autowifi/inspector_wifi
parenta2a46c90db37740ac0d033652bd667ee8c3f55d9 (diff)
wifi_inspector > autowifi (better name anyuway)
Diffstat (limited to 'recon/autowifi/inspector_wifi')
-rwxr-xr-xrecon/autowifi/inspector_wifi75
1 files changed, 0 insertions, 75 deletions
diff --git a/recon/autowifi/inspector_wifi b/recon/autowifi/inspector_wifi
deleted file mode 100755
index 06f37ddb..00000000
--- a/recon/autowifi/inspector_wifi
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-# Usage; sudo iwlist wlan0 scan | ./inspector_wifi
-#
-#
-set -eu
-
-cd "$(dirname "$(readlink -f "$0")")"
-echo "waiting for iwlist scan data..." >&2
-
-crack_wifi(){
- for i in plugins/*;do
- if RET=$(./$i "$@" 2>/dev/null);then
- echo "$@ - with crack $i succeeded - Key is $RET"
- fi
- done
-}
-
-shell_escape(){
- sed 's/./\\&/g'
-}
-remove_quotes(){
- sed 's/^"\|"$//g'
-}
-
-
-iwlist_scan_parser(){
- count=0
- while read line;
- do
- case "$line" in
-
- *"Cell "*)
- if [ $count -ne 0 ];then
- crack_wifi "$ESSID" $MAC $CHANNEL any_encryption
- fi
- WPA=0
- WPA2=0
- : $((count+=1))
- MAC=${line#*Address: }
- ;;
- *Channel:*)
- CHANNEL=${line#*:}
- ;;
- *Quality=*)
- QUALITY="`printf '%s' ${line#*Quality=} | cut -d/ -f 1`"
- ;;
- *"Encryption key:"*)
- ENCRYPTION=${line#*key:}
- ;;
- *ESSID:*)
- ESSID=$(echo "${line#*ESSID:}" | remove_quotes)
- ;;
- *"IE: IEEE 802.11i/WPA2"*)
- WPA2=1
- ;;
- *"IE: WPA Version 1"*)
- WPA=1
- ;;
- *);; #important, do not delete!
- esac
- done;
- crack_wifi "$ESSID" $MAC $CHANNEL any_encryption
- echo WIFI_COUNT=$count
-}
-
-wifi_init(){
- iwlist_scan_parser
-}
-
-loop_networks(){
- for i in `seq 1 $WIFI_COUNT`; do
- loop_over_cracks "$i"
- done
-}
-wifi_init