Advertisement
Googleinurl

Procurar cod malicioso

Nov 22nd, 2012
2,532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement