{ "info": { "author": "Eric Bower", "author_email": "neurosnap@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Eval/Base64 File Scrubber [](https://travis-ci.org/michigan-com/eval_scrubber)\n=========================\n\nThis script will walk through all files in a directory, find, and remove\nany content that is suspected to be malicious.\n\nThis scan uses a regular expression to seek out any potentially malicious content\n\n```\ninfected_pattern = re.compile(r\"<\\?php\\s*eval\\((.+\\()*base64_decode\\(.+\\)\\).+\\s*?>\")\n```\n\nWhat it is matching is `` or ``\n\nIt is strongly advized to check that this regular expression will match your needs.\n\nWe have not covered all of the edge cases for this script so be warned running this\nscript could have negative consequences.\n\nThe script accepts two arguments: action and directory\n\nActions:\n\n* Find - Scans directory recursively and lists all potentially infected files\n* Remove - Scans directory recursively and removes the regular express match\nfrom all potentially infected files\n\n```\npython -m eval_scrubber find