Skip to content

Instantly share code, notes, and snippets.

@kikoseijo
Created March 28, 2017 22:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kikoseijo/1f069a459a3f6bc8bfd81938e993bbd7 to your computer and use it in GitHub Desktop.
#!/bin/bash
IFS=$'\n'
while read php_file
do
egrep -i "(mail|eval|base64_decode|str_rot13|chmod|fwrite|exec|passthru|shell_exec|system|proc_open|popen|curl_exec|curl_multi_exec|show_source|fsockopen|pfsockopen|stream_socket_client) *\(" "$php_file"
done < php_in_writable.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment