Created
July 23, 2014 16:12
-
-
Save steverobbins/98fa91be748954335d1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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