From ce6f3fc38f5ad284380b2f7c6103bd5e66aea908 Mon Sep 17 00:00:00 2001 From: rhbollinger Date: Tue, 16 Sep 2025 08:28:05 -0500 Subject: [PATCH] Improve uninstall.sh Add better comments. Add better echo statements to inform user of changes. --- uninstall.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/uninstall.sh b/uninstall.sh index bc54b43..717cb46 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -2,8 +2,9 @@ # Uninstall script for Sn1per # Created by @xer0dayz - https://sn1persecurity.com +# Check if root if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root" + echo -e "This script must be run as root\nplease use sudo or switch to root" exit 1 fi @@ -26,10 +27,14 @@ echo "" INSTALL_DIR=/usr/share/sniper +# check if user is sure echo -e "$OKRED[>]$RESET This script will uninstall sniper and remove ALL files under $INSTALL_DIR. Are you sure you want to continue?$RESET" read answer +# Remove all files for Sn1per +echo -e "$OKBLUE removing Sn1per from your system." rm -Rf /usr/share/sniper/ rm -f /usr/bin/sniper -echo -e "$OKBLUE[*]$RESET Done!$RESET" \ No newline at end of file +# Inform user sniper is removed +echo -e "$OKBLUE[*]$RESET Done!$RESET"