Created
January 7, 2014 03:27
-
-
Save Stichoza/8294253 to your computer and use it in GitHub Desktop.
FreshPHP debug_text decoder linux CLI
This file contains hidden or 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/sh | |
| echo debug_decoder v0.0.2 | |
| echo making temporary directories | |
| mkdir debug_decode_tmp | |
| cd debug_decode_tmp | |
| echo getting source via 'wget' | |
| wget --output-document=wgetfile $1 | |
| echo parsing data | |
| dout=`grep -o '<code>.*</code>' wgetfile | sed 's/\(<code>\|<\/code>\)//g' | rev | base64 --decode | python -mjson.tool` | |
| echo data parsing ended | |
| echo " | |
| DEBUG INFO: | |
| " | |
| echo "$dout" | |
| rm wgetfile | |
| cd .. | |
| rmdir debug_decode_tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment