From 7d4be6e25f874b8145d648db5d0b0d81a1bf4780 Mon Sep 17 00:00:00 2001 From: IMcPwn Date: Wed, 30 Sep 2015 17:33:46 -0400 Subject: [PATCH] Fix Responderconf function --- modules/responder | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/modules/responder b/modules/responder index c32fcd3..a55f931 100644 --- a/modules/responder +++ b/modules/responder @@ -203,7 +203,7 @@ The log files can be saved to SSHFS or tmp.\n" 16 60 3\ esac configure ;; - $DIALOG_CANCEL) + $DIALOG_CANCEL) configure;; $DIALOG_ESC) configure;; @@ -243,7 +243,7 @@ Responder can target the Host machine (The computer the LAN Turtle is plugged in esac configure ;; - $DIALOG_CANCEL) + $DIALOG_CANCEL) configure;; $DIALOG_ESC) configure;; @@ -317,9 +317,9 @@ mode function responderconf { dialog \ + --help-button \ --title "Editing: /etc/turtle/Responder/Responder.conf" \ --editbox /etc/turtle/Responder/Responder.conf 18 72\ - --help-button \ 2>$CONF return=$? case $return in @@ -327,9 +327,22 @@ dialog \ cat $CONF | { cat $CONF > /etc/turtle/Responder/Responder.conf rm $CONF + configure };; - esac - configure + $DIALOG_HELP) + dialog --title "Help" \ + --msgbox "For information on this configuration, see: https://github.com/SpiderLabs/Responder" 20 60 + responderconf + ;; + $DIALOG_CANCEL) + rm $CONF + configure + ;; + $DIALOG_ESC) + rm $CONF + configure + ;; + esac } function configure {