Last active
August 29, 2015 14:01
-
-
Save bhowe/b730435f9656bd95ef66 to your computer and use it in GitHub Desktop.
Common Shell commands to help track down Wordpress hacks
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
Find common problems in wordpress hacks | |
Finds eval or base64 decode | |
grep -ri "eval" [path] | |
grep -ri "base64_decode" [path] | |
Recently modified files | |
find -type f -ctime -0 | more | |
The -type looks for files, and -ctime scans last 24 hours. Subtract days by number (-1 24 gours) or -2 (48 hours) , See man find for more info | |
Find PHP files in uploads directory | |
find uploads -name "*.php" -print | |
Find a string of hex digits | |
grep -rP “(?:\\\\x[A-F0-9]{2}){5}” * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment