Skip to content

Instantly share code, notes, and snippets.

@steverobbins
Created July 23, 2014 16:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steverobbins/98fa91be748954335d1b to your computer and use it in GitHub Desktop.
Save steverobbins/98fa91be748954335d1b to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z "$1" ]; then
DIR=`pwd`
else
DIR=$1
fi
echo Beginning obfuscation... Hope you made copies, originals will be lost
find "$DIR" -name "*.php" -type f -print0 | while IFS= read -r -d $'\0' FILE; do
echo "Obfuscating $FILE"
curl --request POST 'http://fopo.com.ar/fopo.php' -F from="$FILE" > "$FILE"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment