технический пост для себя

Jan 20, 2016 15:07



find /path -type f -name '*.php' -mtime -N
/path -type f -name 'N.php' - если известны имена
# eval, base64_decode, gzinflate или str_rot13
find . -type f -name '*.php' | xargs grep -l "eval *(" --color
find . -type f -name '*.php' | xargs grep -l "base64_decode *(" --color
find . -type f -name '*.php' | xargs grep -l "gzinflate *(" --color
find . -type f -name '*.php' | xargs grep -l "eval *(str_rot13 *(base64_decode *(" --color
# mail, fsockopen, pfsockopen, stream_socket_client, exec, system и passthru
find . -type f -name '*.php' | xargs egrep -i "(mail|fsockopen|pfsockopen|stream_socket_client|exec|system|passthru|eval|base64_decode) *\("
find . -type f -name '*.php' | xargs egrep -i "preg_replace *\((['|\"])(.).*\2[a-z]*e[^\1]*\1 *," --color
Previous post Next post
Up