[update] Added script to process wpa key from SSID hash

This commit is contained in:
xdrm-brackets 2017-07-29 23:12:08 +02:00
parent 751bd4b23e
commit 88d00b4de3
1 changed files with 17 additions and 0 deletions

17
network/get-wlan-key Executable file
View File

@ -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'";