Skip to content

Instantly share code, notes, and snippets.

@deekayen
Created November 29, 2014 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deekayen/064bb167404abbbdf5e2 to your computer and use it in GitHub Desktop.
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
#!/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