diff --git a/install_debian_ubuntu.sh b/install_debian_ubuntu.sh index 66bc5ab8..991ce648 100644 --- a/install_debian_ubuntu.sh +++ b/install_debian_ubuntu.sh @@ -2,6 +2,11 @@ # Install script for Sn1per # Crated by @xer0dayz - https://xerosecurity.com +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + OKBLUE='\033[94m' OKRED='\033[91m' OKGREEN='\033[92m' @@ -34,6 +39,7 @@ cp -a /run/user/1000/gdm/Xauthority /root/.Xauthority 2> /dev/null cp -a /home/user/.Xauthority /root/.Xauthority 2> /dev/null chown root /root/.Xauthority XAUTHORITY=/root/.Xauthority +rm -Rf /tmp/Sn1per 2> /dev/null git clone https://github.com/1N3/Sn1per /tmp/Sn1per cd /tmp/Sn1per bash install.sh \ No newline at end of file diff --git a/sniper b/sniper index 9d3ce7e5..8e9abb5f 100755 --- a/sniper +++ b/sniper @@ -8,7 +8,7 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi -VER="8.1" +VER="8.2" INSTALL_DIR="/usr/share/sniper" LOOT_DIR="$INSTALL_DIR/loot/$TARGET" SNIPER_PRO=$INSTALL_DIR/pro.sh diff --git a/uninstall.sh b/uninstall.sh index a90cfe9c..66c4de51 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -2,6 +2,11 @@ # Uninstall script for Sn1per # Created by @xer0dayz - https://xerosecurity.com +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + # VARS OKBLUE='\033[94m' OKRED='\033[91m'