diff --git a/assets/requirements.txt b/assets/requirements.txt index b528652..4942622 100755 --- a/assets/requirements.txt +++ b/assets/requirements.txt @@ -2,10 +2,10 @@ ipwhois==1.2.0 pydig==0.4.0 pymisp==2.4.165.1 netaddr==0.8.0 -pyyaml==5.3.1 +pyyaml==6.0.1 flask==2.3.3 flask_httpauth==4.7.0 -pyjwt==1.7.1 +pyjwt==2.8.0 sqlalchemy==1.4.44 psutil==5.8.0 pyudev==0.24.0 diff --git a/uninstall.sh.save b/uninstall.sh.save deleted file mode 100755 index cd24983..0000000 --- a/uninstall.sh.save +++ /dev/null @@ -1,65 +0,0 @@ - -delete_folder(){ - echo "[+] Deleting SpyGuard folders" - rm -rf /usr/share/spyguard/ -} - -delete_services(){ - echo "[+] Deleting SpyGuard services" - - systemctl disable spyguard-frontend &> /dev/null - systemctl disable spyguard-backend &> /dev/null - systemctl disable spyguard-watchers &> /dev/null - - rm /lib/systemd/system/spyguard-frontend.service - rm /lib/systemd/system/spyguard-backend.service - rm /lib/systemd/system/spyguard-watchers.service -} - -deleting_icon(){ - echo "[+] Deleting desktop icon" - rm "/home/${SUDO_USER}/Desktop/spyguard.desktop" -} - -delete_packages(){ - pkgs=("tshark" - "dnsutils" - "suricata" - "sqlite3") - - echo -n "[?] Do you want to remove the installed packages? (Yes/no) " - read answer - if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]] - then - for pkg in "${pkgs[@]}" - do apt -y remove $pkg && apt -y purge $pkg - done - apt autoremove &> /dev/null - fi -} - -update_hostname(){ - echo -n "[?] Please provide a new hostname: " - read hostname - echo "$hostname" > /etc/hostname - sed -i "s/spyguard/$hostname/g" /etc/hosts -} - -reboot_box() { - echo -e "\e[92m[+] SpyGuard uninstalled, let's reboot.\e[39m" - sleep 5 - reboot -} - -# Checking rights. -if [[ $EUID -ne 0 ]]; then - echo "The update must be run as root. Type in 'sudo bash $0' to run it as root." - exit 1 -else - delete_folder - delete_services - deleting_icon - update_hostname - delete_packages - reboot_box -fi