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:
40
Responder/scripts/autostart_responder.sh
Executable file
40
Responder/scripts/autostart_responder.sh
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/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
|
||||
|
||||
MYTIME=`date +%s`
|
||||
MYINTERFACE=`uci get responder.autostart.interface`
|
||||
|
||||
OPTIONS=''
|
||||
BASIC=`uci get responder.settings.basic`
|
||||
WREDIR=`uci get responder.settings.wredir`
|
||||
NBTNS=`uci get responder.settings.NBTNS`
|
||||
FINGERPRINT=`uci get responder.settings.fingerprint`
|
||||
WPAD=`uci get responder.settings.wpad`
|
||||
FORCEWPADAUTH=`uci get responder.settings.forceWpadAuth`
|
||||
FORCELMDOWNGRADE=`uci get responder.settings.forceLmDowngrade`
|
||||
VERBOSE=`uci get responder.settings.verbose`
|
||||
ANALYSE=`uci get responder.settings.analyse`
|
||||
|
||||
if [ -z "$MYINTERFACE" ]; then
|
||||
MYINTERFACE="br-lan"
|
||||
fi
|
||||
|
||||
uci set responder.run.interface=${MYINTERFACE}
|
||||
uci commit responder.run.interface
|
||||
|
||||
cd /pineapple/modules/Responder/dep/responder/
|
||||
|
||||
if [ "$BASIC" -ne 0 ]; then OPTIONS="${OPTIONS} --basic"; fi
|
||||
if [ "$WREDIR" -ne 0 ]; then OPTIONS="${OPTIONS} --wredir"; fi
|
||||
if [ "$NBTNS" -ne 0 ]; then OPTIONS="${OPTIONS} --NBTNSdomain"; fi
|
||||
if [ "$FINGERPRINT" -ne 0 ]; then OPTIONS="${OPTIONS} --fingerprint"; fi
|
||||
if [ "$WPAD" -ne 0 ]; then OPTIONS="${OPTIONS} --wpad"; fi
|
||||
if [ "$FORCEWPADAUTH" -ne 0 ]; then OPTIONS="${OPTIONS} --ForceWpadAuth"; fi
|
||||
if [ "$FORCELMDOWNGRADE" -ne 0 ]; then OPTIONS="${OPTIONS} --lm"; fi
|
||||
if [ "$VERBOSE" -ne 0 ]; then OPTIONS="${OPTIONS} --verbose"; fi
|
||||
if [ "$ANALYSE" -ne 0 ]; then OPTIONS="${OPTIONS} --analyze"; fi
|
||||
|
||||
./Responder.py -I ${MYINTERFACE} ${OPTIONS} > /dev/null 2 &
|
||||
56
Responder/scripts/dependencies.sh
Executable file
56
Responder/scripts/dependencies.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/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/Responder.progress ]] && {
|
||||
exit 0
|
||||
}
|
||||
|
||||
touch /tmp/Responder.progress
|
||||
|
||||
if [ "$1" = "install" ]; then
|
||||
if [ "$2" = "internal" ]; then
|
||||
opkg update
|
||||
opkg install python-logging
|
||||
opkg install python-openssl
|
||||
elif [ "$2" = "sd" ]; then
|
||||
opkg update
|
||||
opkg install python-logging --dest sd
|
||||
opkg install python-openssl --dest sd
|
||||
fi
|
||||
|
||||
sed -i 's/^HTTP .*/HTTP = Off/g' /pineapple/modules/Responder/dep/responder/Responder.conf
|
||||
sed -i 's/^HTTPS.*/HTTPS = Off/g' /pineapple/modules/Responder/dep/responder/Responder.conf
|
||||
sed -i 's/^DNS.*/DNS = Off/g' /pineapple/modules/Responder/dep/responder/Responder.conf
|
||||
|
||||
touch /etc/config/responder
|
||||
echo "config responder 'module'" > /etc/config/responder
|
||||
echo "config responder 'run'" >> /etc/config/responder
|
||||
echo "config responder 'settings'" >> /etc/config/responder
|
||||
echo "config responder 'autostart'" >> /etc/config/responder
|
||||
|
||||
uci set responder.settings.SQL=1
|
||||
uci set responder.settings.SMB=1
|
||||
uci set responder.settings.Kerberos=1
|
||||
uci set responder.settings.FTP=1
|
||||
uci set responder.settings.POP=1
|
||||
uci set responder.settings.SMTP=1
|
||||
uci set responder.settings.IMAP=1
|
||||
uci set responder.settings.HTTP=0
|
||||
uci set responder.settings.HTTPS=0
|
||||
uci set responder.settings.DNS=0
|
||||
uci set responder.settings.LDAP=1
|
||||
uci commit responder.settings
|
||||
|
||||
uci set responder.module.installed=1
|
||||
uci commit responder.module.installed
|
||||
|
||||
elif [ "$1" = "remove" ]; then
|
||||
opkg remove python-logging
|
||||
opkg remove python-openssl
|
||||
rm -rf /etc/config/responder
|
||||
fi
|
||||
|
||||
rm /tmp/Responder.progress
|
||||
41
Responder/scripts/responder.sh
Executable file
41
Responder/scripts/responder.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/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
|
||||
|
||||
MYTIME=`date +%s`
|
||||
MYINTERFACE=`uci get responder.run.interface`
|
||||
|
||||
OPTIONS=''
|
||||
BASIC=`uci get responder.settings.basic`
|
||||
WREDIR=`uci get responder.settings.wredir`
|
||||
NBTNS=`uci get responder.settings.NBTNS`
|
||||
FINGERPRINT=`uci get responder.settings.fingerprint`
|
||||
WPAD=`uci get responder.settings.wpad`
|
||||
FORCEWPADAUTH=`uci get responder.settings.forceWpadAuth`
|
||||
FORCELMDOWNGRADE=`uci get responder.settings.forceLmDowngrade`
|
||||
VERBOSE=`uci get responder.settings.verbose`
|
||||
ANALYSE=`uci get responder.settings.analyse`
|
||||
|
||||
if [ "$1" = "start" ]; then
|
||||
cd /pineapple/modules/Responder/dep/responder/
|
||||
|
||||
if [ "$BASIC" -ne 0 ]; then OPTIONS="${OPTIONS} --basic"; fi
|
||||
if [ "$WREDIR" -ne 0 ]; then OPTIONS="${OPTIONS} --wredir"; fi
|
||||
if [ "$NBTNS" -ne 0 ]; then OPTIONS="${OPTIONS} --NBTNSdomain"; fi
|
||||
if [ "$FINGERPRINT" -ne 0 ]; then OPTIONS="${OPTIONS} --fingerprint"; fi
|
||||
if [ "$WPAD" -ne 0 ]; then OPTIONS="${OPTIONS} --wpad"; fi
|
||||
if [ "$FORCEWPADAUTH" -ne 0 ]; then OPTIONS="${OPTIONS} --ForceWpadAuth"; fi
|
||||
if [ "$FORCELMDOWNGRADE" -ne 0 ]; then OPTIONS="${OPTIONS} --lm"; fi
|
||||
if [ "$VERBOSE" -ne 0 ]; then OPTIONS="${OPTIONS} --verbose"; fi
|
||||
if [ "$ANALYSE" -ne 0 ]; then OPTIONS="${OPTIONS} --analyze"; fi
|
||||
|
||||
./Responder.py -I ${MYINTERFACE} ${OPTIONS} > /dev/null 2 &
|
||||
|
||||
elif [ "$1" = "stop" ]; then
|
||||
pgrep -f Responder.py | xargs kill -9
|
||||
|
||||
cp /pineapple/modules/Responder/dep/responder/logs/Responder-Session.log /pineapple/modules/Responder/log/responder_${MYTIME}.log
|
||||
echo '' > /pineapple/modules/Responder/dep/responder/logs/Responder-Session.log
|
||||
fi
|
||||
Reference in New Issue
Block a user