summaryrefslogtreecommitdiffstats
path: root/recon/autowifi/plugins/plugin_core
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/plugins/plugin_core
parenta2a46c90db37740ac0d033652bd667ee8c3f55d9 (diff)
wifi_inspector > autowifi (better name anyuway)
Diffstat (limited to 'recon/autowifi/plugins/plugin_core')
-rw-r--r--recon/autowifi/plugins/plugin_core41
1 files changed, 0 insertions, 41 deletions
diff --git a/recon/autowifi/plugins/plugin_core b/recon/autowifi/plugins/plugin_core
deleted file mode 100644
index e79a3c05..00000000
--- a/recon/autowifi/plugins/plugin_core
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-parse_plugin_args(){
- [ $# -ne 4 ] && plugin_usage && exit 1
- # convenience function to put args in ENV variables
- ESSID="$1"
-
- # mac is returned without colon
- MAC=$(printf "%s" "$2" | sed 's/://g')
- # split up the mac address to vendor and private part
- VENDOR_MAC=${MAC:0:6}
- PRIVATE_MAC=${MAC:6:12}
- CHANNEL="$3"
- ENC="$4"
- if [ ${#MAC} -ne 12 ] ;then
- echo "MAC malformed"
- exit 1
- fi
-}
-plugin_usage(){
- cat << EOF
-usage: $0 ESSID MAC CHANNEL ENC"
-
- ESSID - string
- MAC - 00:11:22:33:44:55
- CHANNEL - 4
- ENC - wpa
-EOF
-
-}
-
-check_vendor_mac(){
- needle="$(printf $1 | tr '[A-Z]' '[a-z]')"
- shift
- for i in "$@";do
- [ "$needle" == "$(printf $i | tr '[A-Z]' '[a-z]')" ] && return 0
- done
- return 1
-}
-check_painmode(){
- test -z "${painmode:-}" && echo "painmode required" && exit 1
-}