Wednesday, March 5, 2014

Decode Hex to ASCII Bash Script

cat $1 | sed 's/%20/ /g' | sed 's/%22/"/g' | sed 's/%28/(/g' | sed 's/%29/)/g' | sed 's/%3E/>/g' | \
            sed 's/%3D/=/g'  | sed 's/%3B/;/g' | sed 's/%7C/|/g'  | sed 's/%2C/,/g' | \
            sed 's/%7B/{/g' | sed 's/%7D/}/g' | sed 's/%3C/</g' | sed 's/%3F/?/g' | sed 's@%2F@/@g' | \
            sed 's/%0A/\n/g' | sed "s/%27/'/g" | sed 's/%26/\&/g' | sed 's/%3A/:/g' | \
            sed 's/%5C/\\/g' | sed 's/%2B/+/g' | sed 's/%21/!/g'

No comments:

Post a Comment

Powershell - Gather Mapped Drives from a List of Computer Names

I created the following Powershell script to gather remotely the mapped drives that users had in their profiles.  I had to create the script...