mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Maintenance for a few modules (#42)
This commit is contained in:
@@ -14,6 +14,7 @@ NBTNS=`uci get responder.settings.NBTNS`
|
||||
FINGERPRINT=`uci get responder.settings.fingerprint`
|
||||
WPAD=`uci get responder.settings.wpad`
|
||||
FORCEWPADAUTH=`uci get responder.settings.forceWpadAuth`
|
||||
PROXYAUTH=`uci get responder.settings.proxyAuth`
|
||||
FORCELMDOWNGRADE=`uci get responder.settings.forceLmDowngrade`
|
||||
VERBOSE=`uci get responder.settings.verbose`
|
||||
ANALYSE=`uci get responder.settings.analyse`
|
||||
@@ -33,6 +34,7 @@ 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 [ "$PROXYAUTH" -ne 0 ]; then OPTIONS="${OPTIONS} --ProxyAuth"; 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
|
||||
|
||||
@@ -48,9 +48,9 @@ if [ "$1" = "install" ]; then
|
||||
uci commit responder.module.installed
|
||||
|
||||
elif [ "$1" = "remove" ]; then
|
||||
opkg remove python-logging
|
||||
opkg remove python-openssl
|
||||
rm -rf /etc/config/responder
|
||||
opkg remove python-logging
|
||||
opkg remove python-openssl
|
||||
rm -rf /etc/config/responder
|
||||
fi
|
||||
|
||||
rm /tmp/Responder.progress
|
||||
|
||||
@@ -14,6 +14,7 @@ NBTNS=`uci get responder.settings.NBTNS`
|
||||
FINGERPRINT=`uci get responder.settings.fingerprint`
|
||||
WPAD=`uci get responder.settings.wpad`
|
||||
FORCEWPADAUTH=`uci get responder.settings.forceWpadAuth`
|
||||
PROXYAUTH=`uci get responder.settings.proxyAuth`
|
||||
FORCELMDOWNGRADE=`uci get responder.settings.forceLmDowngrade`
|
||||
VERBOSE=`uci get responder.settings.verbose`
|
||||
ANALYSE=`uci get responder.settings.analyse`
|
||||
@@ -27,6 +28,7 @@ if [ "$1" = "start" ]; then
|
||||
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 [ "$PROXYAUTH" -ne 0 ]; then OPTIONS="${OPTIONS} --ProxyAuth"; 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
|
||||
@@ -35,7 +37,6 @@ if [ "$1" = "start" ]; then
|
||||
|
||||
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
|
||||
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