mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Add modules to repository
This commit is contained in:
35
OnlineHashCrack/scripts/dependencies.sh
Executable file
35
OnlineHashCrack/scripts/dependencies.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
[[ -f /tmp/OnlineHashCrack.progress ]] && {
|
||||
exit 0
|
||||
}
|
||||
|
||||
touch /tmp/OnlineHashCrack.progress
|
||||
|
||||
if [ "$1" = "install" ]; then
|
||||
if [ "$2" = "internal" ]; then
|
||||
opkg update
|
||||
opkg install curl
|
||||
elif [ "$2" = "sd" ]; then
|
||||
opkg update
|
||||
opkg install curl --dest sd
|
||||
fi
|
||||
|
||||
touch /etc/config/onlinehashcrack
|
||||
echo "config onlinehashcrack 'settings'" > /etc/config/onlinehashcrack
|
||||
echo "config onlinehashcrack 'module'" >> /etc/config/onlinehashcrack
|
||||
|
||||
uci set onlinehashcrack.module.installed=1
|
||||
uci commit onlinehashcrack.module.installed
|
||||
|
||||
elif [ "$1" = "remove" ]; then
|
||||
opkg remove curl
|
||||
|
||||
rm -rf /etc/config/onlinehashcrack
|
||||
fi
|
||||
|
||||
rm /tmp/OnlineHashCrack.progress
|
||||
30
OnlineHashCrack/scripts/submit_hash.sh
Executable file
30
OnlineHashCrack/scripts/submit_hash.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
[[ -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}" http://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
|
||||
35
OnlineHashCrack/scripts/submit_wpa.sh
Executable file
35
OnlineHashCrack/scripts/submit_wpa.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
#2015 - Whistle Master
|
||||
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/sd/lib:/sd/usr/lib
|
||||
export PATH=$PATH:/sd/usr/bin:/sd/usr/sbin
|
||||
|
||||
[[ -f /tmp/OnlineHashCrack.progress ]] && {
|
||||
exit 0
|
||||
}
|
||||
|
||||
LOG=/tmp/onlinehashcrack.log
|
||||
EMAIL=`uci get onlinehashcrack.settings.email`
|
||||
FILE=$1
|
||||
|
||||
touch /tmp/OnlineHashCrack.progress
|
||||
|
||||
rm -rf ${LOG}
|
||||
|
||||
if [ -n "$EMAIL" ]; then
|
||||
if [ ! -f ${FILE} ]; then
|
||||
echo -e "File ${FILE} does not exist." > ${LOG}
|
||||
else
|
||||
echo -e "Sent to www.onlinehashcrack.com web service successfully. Notification will be sent to ${EMAIL}. The following has been sent:" > ${LOG}
|
||||
echo -e "${FILE}" >> ${LOG}
|
||||
|
||||
echo -e "" >> ${LOG}
|
||||
|
||||
curl -s -v -F submit="Submit" -F emailWpa="${EMAIL}" -F wpaFile=@${FILE} http://www.onlinehashcrack.com/wifi-wpa-rsna-psk-crack.php > /dev/null 2>> ${LOG}
|
||||
|
||||
fi
|
||||
else
|
||||
echo -e "Notification email not set in settings." > ${LOG}
|
||||
fi
|
||||
|
||||
rm /tmp/OnlineHashCrack.progress
|
||||
Reference in New Issue
Block a user