Skip to content

Instantly share code, notes, and snippets.

@eyecatchup
Created July 16, 2015 09:55
Show Gist options
  • Save eyecatchup/46044be1055405afee4d to your computer and use it in GitHub Desktop.
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
#!/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