Created
November 29, 2014 02:04
-
-
Save deekayen/064bb167404abbbdf5e2 to your computer and use it in GitHub Desktop.
Ghetto scanner to locate the Gen:Variant.Kazy.378723 virus/trojan using find and grep
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/sh | |
# A hacky way to find a variant of the Kazy trojan virus. | |
# Maybe helpful if your Windows users had a Samba mount that got infected. | |
# See also: | |
# https://www.virustotal.com/en/file/25eaf33c12a669cd9ab6fc4f55fecc085704a4ee5f015ffb8bfdb1495a009f5a/analysis/1417196359/ | |
find / -type f -iname '*.exe' -exec grep -R "lKTGM$S" {} \; | |
find / -type f -iname '*.exe' -exec grep -R "yUXWncK" {} \; | |
# To quarantine any *.exe files modified in the past 2 days: | |
# find / -type f -iname '*.exe' -mtime -2 -exec mv {} /home/bad_exe_pdf_files/ \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment