Created
February 16, 2021 13:00
-
-
Save duzvik/466395826b209565f9464b6534e75c3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
declare -a arr=( | |
"/tmp/.applocktx" | |
"/tmp/.applock" | |
"/usr/local/centreon/www/search.php" | |
"/usr/share/centreon/www/search.php" | |
"/usr/share/centreon/www/modules/Discovery/include/DB−Drop.php" | |
"/usr/share/centreon/www/htmlHeader.php" | |
) | |
clean=true | |
for i in "${arr[@]}" | |
do | |
if [ -e $i ] | |
then | |
echo "File $i found. Host Possible infected with Exaramel. Details: https://www.cert.ssi.gouv.fr/uploads/CERTFR-2021-CTI-005.pdf" | |
clean=false | |
fi | |
done | |
if [ "$clean" = true ] ; then | |
echo 'Host clean' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One liner to run it:
curl -s https://gist.githubusercontent.com/duzvik/466395826b209565f9464b6534e75c3d/raw/26cae7a156e3f03e57bab3e58f68192a72b0cc3f/check_Exaramel.sh | bash