Skip to content

Instantly share code, notes, and snippets.

@molotovbliss
Created March 29, 2016 19:54
Show Gist options
  • Save molotovbliss/de4beb7afca521c1fbda90f8d8512603 to your computer and use it in GitHub Desktop.
Save molotovbliss/de4beb7afca521c1fbda90f8d8512603 to your computer and use it in GitHub Desktop.
Scan for Mage.jpg Malware Derivative
# Locate malware storing credit card info in images, original source:
# http://blog.foregenix.com/magento-malware-alert-mage.jpg-malware-derivative
find . -type f -exec egrep -Hl "md5\(md5\(microtime\(\)\)\.rand\(\)\)|\@file_put_contents\([^,]+,'JPEG-1\.1'\.base64_encode\([^\)]+\),FILE_APPEND\)" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment