#!/bin/bash
#---------------------------------------------------------------------#
# Procurar arquivos web com códigos potencialmente malicioso #
#---------------------------------------------------------------------#
DIRETORIO="/var/www"
FUNCOES="passthru|shell_exec|system|phpinfo|base64_decode|popen|exec|proc_open|pcntl_exec|python_eval|fopen|fclose|readfile"
grep -RPl --include=*.{php,txt} "($FUNCOES)" $DIRETORIO
exit 0