Responder V2.2
Add tailing of log option Add fix if responder configuration is invalidpull/8/head
parent
7d4be6e25f
commit
a3cf7d9566
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash /usr/lib/turtle/turtle_module
|
#!/bin/bash /usr/lib/turtle/turtle_module
|
||||||
VERSION="2.0"
|
VERSION="2.1"
|
||||||
DESCRIPTION="Responder - LLMNR, NBT-NS and MDNS poisoner"
|
DESCRIPTION="Responder - LLMNR, NBT-NS and MDNS poisoner"
|
||||||
CONF=/tmp/responder.form
|
CONF=/tmp/responder.form
|
||||||
AUTHOR=IMcPwn
|
AUTHOR=IMcPwn
|
||||||
|
@ -141,6 +141,10 @@ function start {
|
||||||
echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now
|
echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now
|
||||||
echo "Responder started and logs are being saved to /tmp/Responder"
|
echo "Responder started and logs are being saved to /tmp/Responder"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
echo "Responder configuration not valid. Please re-configure then try again."
|
||||||
|
rm -r /etc/config/responder
|
||||||
|
exit 1
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "Responder not configured."
|
echo "Responder not configured."
|
||||||
|
@ -181,6 +185,8 @@ function status {
|
||||||
function log {
|
function log {
|
||||||
dialog --ok-label "Submit" \
|
dialog --ok-label "Submit" \
|
||||||
--title "Responder Log Configuration" \
|
--title "Responder Log Configuration" \
|
||||||
|
--extra-button \
|
||||||
|
--extra-label "View log" \
|
||||||
--help-button \
|
--help-button \
|
||||||
--radiolist "\n\
|
--radiolist "\n\
|
||||||
The log files can be saved to SSHFS or tmp.\n" 16 60 3\
|
The log files can be saved to SSHFS or tmp.\n" 16 60 3\
|
||||||
|
@ -207,6 +213,20 @@ The log files can be saved to SSHFS or tmp.\n" 16 60 3\
|
||||||
configure;;
|
configure;;
|
||||||
$DIALOG_ESC)
|
$DIALOG_ESC)
|
||||||
configure;;
|
configure;;
|
||||||
|
$DIALOG_EXTRA)
|
||||||
|
responder_log=$(uci get responder.log)
|
||||||
|
case $responder_log in
|
||||||
|
sshfs)
|
||||||
|
dialog --title "/sshfs/Responder/logs/Responder-Session.log" --clear --tailbox "/sshfs/Responder/logs/Responder-Session.log" 18 72
|
||||||
|
;;
|
||||||
|
tmp)
|
||||||
|
dialog --title "/tmp/Responder/logs/Responder-Session.log" --clear --tailbox "/tmp/Responder/logs/Responder-Session.log" 18 72
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Responder log location not configured."
|
||||||
|
log;;
|
||||||
|
esac
|
||||||
|
log;;
|
||||||
$DIALOG_HELP)
|
$DIALOG_HELP)
|
||||||
dialog --title "Help" --msgbox "\n\
|
dialog --title "Help" --msgbox "\n\
|
||||||
All activity will be logged to Responder-Session.log\n\
|
All activity will be logged to Responder-Session.log\n\
|
||||||
|
|
Loading…
Reference in New Issue