Created
July 16, 2015 09:55
-
-
Save eyecatchup/46044be1055405afee4d to your computer and use it in GitHub Desktop.
To use this shell script just paste this into a file called checker.sh in the directory before your public_html folder, then run it with the following command: sh checker.sh
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
#!/bin/env bash | |
cd public_html/ | |
find . -type f \( -iname "1.*" -o -iname "sh.php" \) -print0 >> ../php_backdoors | |
find . -type f \( -iname "*.php" -o -iname "*.inc" \) -print0 | xargs -0 -r grep -REn \ | |
'(c99|r57|exif_read_data|extract|passthru|shell_exec|base64_decode|fopen|fclose|eval|Refresh|refresh|justrulz)' >> ../php_backdoors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment