Skip to content

Instantly share code, notes, and snippets.

@kalimalrazif
Created February 10, 2016 14:38
Show Gist options
  • Save kalimalrazif/fd4d79ef817674342daa to your computer and use it in GitHub Desktop.
Save kalimalrazif/fd4d79ef817674342daa to your computer and use it in GitHub Desktop.
To get rid of some /*rqñl45i32j3ñ2lkm*/MALWARE/*rqñl45i32j3ñ2lkm*/ on your site
#!/bin/bash
for archivo in `grep -rl -E "\/\*[0-9A-Za-z]{32}\*\/" *`; do
cp $archivo $archivo.bak; # this is just in case
chmod 440 $archivo.bak; # juuuuust in case
sed -ie 's/\(\/\*[0-9A-Za-z]\{32\}\*\/\).*\1//' $archivo;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment