Created
April 9, 2024 01:44
-
-
Save diniremix/5d1f39136cd0c641cbe03096dfff5de4 to your computer and use it in GitHub Desktop.
you shall not spy!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
####################################################################################### | |
# | |
# MIT License | |
# | |
# Copyright (c) 2014-2024 HomeInside Inc. and other contributors, | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all | |
# copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
# SOFTWARE. | |
####################################################################################### | |
USER_HOME=$(eval echo ~${SUDO_USER}) | |
clear | |
not_spy_message() { | |
echo | |
echo "██╗ ██╗ ██████╗ ██╗ ██╗ ███████╗██╗ ██╗ █████╗ ██╗ ██╗ " | |
echo "╚██╗ ██╔╝██╔═══██╗██║ ██║ ██╔════╝██║ ██║██╔══██╗██║ ██║ " | |
echo " ╚████╔╝ ██║ ██║██║ ██║ ███████╗███████║███████║██║ ██║ " | |
echo " ╚██╔╝ ██║ ██║██║ ██║ ╚════██║██╔══██║██╔══██║██║ ██║ " | |
echo " ██║ ╚██████╔╝╚██████╔╝ ███████║██║ ██║██║ ██║███████╗███████╗" | |
echo " ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚══════╝" | |
echo " " | |
echo "███╗ ██╗ ██████╗ ████████╗ ███████╗██████╗ ██╗ ██╗██╗ " | |
echo "████╗ ██║██╔═══██╗╚══██╔══╝ ██╔════╝██╔══██╗╚██╗ ██╔╝██║ " | |
echo "██╔██╗ ██║██║ ██║ ██║ ███████╗██████╔╝ ╚████╔╝ ██║ " | |
echo "██║╚██╗██║██║ ██║ ██║ ╚════██║██╔═══╝ ╚██╔╝ ╚═╝ " | |
echo "██║ ╚████║╚██████╔╝ ██║ ███████║██║ ██║ ██╗ " | |
echo "╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ " | |
} | |
you_are_watched(){ | |
echo "██████╗ ███████╗ ██████╗ █████╗ ██████╗ ███████╗███████╗██╗ ██╗██╗ ██╗" | |
echo "██╔══██╗██╔════╝ ██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██║ ██║██║ ██║" | |
echo "██████╔╝█████╗ ██║ ███████║██████╔╝█████╗ █████╗ ██║ ██║██║ ██║" | |
echo "██╔══██╗██╔══╝ ██║ ██╔══██║██╔══██╗██╔══╝ ██╔══╝ ██║ ██║██║ ╚═╝" | |
echo "██████╔╝███████╗ ╚██████╗██║ ██║██║ ██║███████╗██║ ╚██████╔╝███████╗██╗" | |
echo "╚═════╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝ ╚══════╝╚═╝" | |
echo | |
echo "+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+-+ +-+-+-+-+-+-+" | |
echo "|y|o|u| |a|r|e| |w|a|t|c|h|e|d|,| |m|y| |d|e|a|r| |h|o|b|b|i|t|" | |
echo "+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+ +-+-+-+-+ +-+-+-+-+-+-+" | |
} | |
cleaning(){ | |
echo | |
echo "stopping 'com.Workpuls.service'..." | |
systemctl stop com.Workpuls.service | |
echo | |
echo "disabling 'com.Workpuls.service'..." | |
systemctl disable com.Workpuls.service | |
echo | |
echo "checking for running spyware..." | |
ps -e -o pid,comm,user | grep Workpuls | |
echo | |
echo "killing all demons..." | |
killall -p Workpuls | |
echo | |
echo "verifying..." | |
killall -p Workpuls | |
echo | |
echo "removing logs..." | |
if [ -d /var/log/Workpuls ]; then | |
echo "logs found: /var/log/Workpuls" | |
ls -la /var/log/Workpuls | |
fi | |
rm -rf /var/log/Workpuls | |
echo | |
echo "tidying up the house..." | |
rm -rf $USER_HOME/.config/workpuls-agent | |
echo | |
} | |
seek_and_destroy(){ | |
local param=$1 | |
if [ -f /usr/lib/Workpuls/WorkpulsService ]; then | |
you_are_watched | |
echo | |
echo "ohh nou!, it can't be, WorkpulsService is installed :(" | |
echo "you should take immediate action" | |
echo "path '/usr/lib/Workpuls/WorkpulsService'" | |
echo | |
if [ "$param" -eq 0 ]; then | |
echo "your personal information is at serious risk." | |
echo "you can run this script as root, and try again..." | |
echo | |
else | |
not_spy_message | |
cleaning | |
fi | |
else | |
echo "all quiet, spyware not detected" | |
fi | |
if [ -d $USER_HOME/.config/workpuls-agent ]; then | |
echo "oh no, there is a folder with personal information" | |
echo "that can be sent to strange servers..." | |
echo "path $USER_HOME/.config/workpuls-agent" | |
echo | |
fi | |
} | |
echo "searching spyware, please wait..." | |
echo "analyzing the $USER_HOME folder..." | |
echo | |
if [ "$(id -u)" -eq 0 ]; then | |
seek_and_destroy 1 | |
else | |
echo | |
echo "you need to be an root to have a complete bug cleanup...." | |
echo | |
read -p "¿Do you wish to proceed without being root? (y/n): " answer | |
if [ "$answer" = "y" ]; then | |
echo | |
seek_and_destroy 0 | |
else | |
echo | |
echo "you can run this script as root, and try again..." | |
exit 1 | |
fi | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We, the end users, are committed to defending our rights and protecting our privacy in the vast digital landscape in which we reside. | |
We recognize that, in this interconnected world, our personal data is a valuable asset and therefore deserves strong and decisive protection. | |
We vehemently reject corporate espionage and any form of exploitation of our data for any purpose. | |
We demand transparency and honesty from companies and organizations that collect and manage our personal information. | |
We will not accept abusive practices that jeopardize our online privacy and security. | |
Nosotros, los usuarios finales, nos comprometemos a defender nuestros derechos y proteger nuestra privacidad en el vasto paisaje digital | |
en el que vivimos. Reconocemos que en este mundo interconectado, nuestros datos personales son un activo valioso y, por lo tanto, merecen | |
una protección firme y decidida. | |
Rechazamos enérgicamente el espionaje empresarial y cualquier forma de explotación de nuestros datos para cualquier fin. | |
Exigimos transparencia y honestidad por parte de las empresas y organizaciones que recopilan y gestionan nuestra información | |
personal. | |
No aceptaremos prácticas abusivas que pongan en riesgo nuestra privacidad y seguridad en línea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment