#!/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 if [ ! -z wpa_sup ]; then make_config $@ $RET else echo "$@ - with crack $i succeeded - Key is $RET" fi fi done } make_config(){ cat<