Created
October 26, 2020 12:17
-
-
Save joostvanveen/a20a82eaf73fdd5757773dfd5a027c87 to your computer and use it in GitHub Desktop.
Search directory for PHP files containing malicious code
This file contains hidden or 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
## eval() is used to executed shell commands through PHP | |
grep -ri "eval(" $PWD --include *.php | |
## exec() is used to executed shell commands through PHP | |
grep -ri "exec(" $PWD --include *.php | |
## Malicious code is often obfuscated through base64 encoding | |
grep -ri "base64" $PWD --include *.php | |
## Malicious code is often obfuscated through gzip | |
grep -ri "gzinflate" $PWD --include *.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment