Created
December 24, 2020 15:39
-
-
Save bhowe/e0750688c843436540a2350058990087 to your computer and use it in GitHub Desktop.
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
Some basic commands to get you started if you are familiar with ssh. | |
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 hours) 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 “(?:\\Wx[A-FO-9]{2}){5}" * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment