From 88d00b4de33fbdab438ef4e9177ba2d64e361828 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 29 Jul 2017 23:12:08 +0200 Subject: [PATCH] [update] Added script to process wpa key from SSID hash --- network/get-wlan-key | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 network/get-wlan-key diff --git a/network/get-wlan-key b/network/get-wlan-key new file mode 100755 index 0000000..8840cd5 --- /dev/null +++ b/network/get-wlan-key @@ -0,0 +1,17 @@ +#!/bin/bash + +echo "1. Checking argument 'ssid'" +[ $# -lt 1 ] && echo " > failure" && exit; +echo " > done"; + + +echo "2. Fetching SALT and PEPPER from conf"; +source ../clone/clone.conf; +echo " > done"; + + +echo "3. Processing key"; +PASS=`echo -ne "$WIFI_PEPPER$(echo -ne "${WIFI_SALT}${1}" | sha512sum | sed 's/[ \t]*-$//')" | sha512sum | sed 's/[ \t]*-//' | cut -b 1-63`; +echo " > done"; + +echo -e "\n\nKEY is '$PASS'";