Marc e676793328
Update Modules for 2.6.0+ (Wave 1) (#71)
* Misc: Ignore JetBrains IDE files

* Modules: Update Modules for 2.6.0 (1)

* SiteSurvey: Actually install mdk3 dependency.

* Modules: Bump version numbers for updated modules
2019-08-21 21:15:53 +01:00

28 lines
697 B
Bash
Executable File

#!/bin/sh
#2015 - Whistle Master
[[ -f /tmp/OnlineHashCrack.progress ]] && {
exit 0
}
LOG=/tmp/onlinehashcrack.log
EMAIL=`uci get onlinehashcrack.settings.email`
HASH=$1
touch /tmp/OnlineHashCrack.progress
rm -rf ${LOG}
if [ -n "$EMAIL" ]; then
echo -e "Sent to www.onlinehashcrack.com web service successfully. Notification will be sent to ${EMAIL}. The following has been sent:" > ${LOG}
echo -e "${HASH}" >> ${LOG}
echo -e "" >> ${LOG}
curl -s -v -d emailHashes="${EMAIL}" -d textareaHashes="${HASH}" https://www.onlinehashcrack.com/hash-cracking.php > /dev/null 2>> ${LOG}
else
echo -e "Notification email not set in settings." > ${LOG}
fi
rm /tmp/OnlineHashCrack.progress