Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2.  
  3. #---------------------------------------------------------------------#
  4. # Procurar arquivos web com códigos potencialmente malicioso #
  5. #---------------------------------------------------------------------#
  6.  
  7. DIRETORIO="/var/www"
  8. FUNCOES="passthru|shell_exec|system|phpinfo|base64_decode|popen|exec|proc_open|pcntl_exec|python_eval|fopen|fclose|readfile"
  9.  
  10. grep -RPl --include=*.{php,txt} "($FUNCOES)" $DIRETORIO
  11.  
  12. exit 0