» General Chit Chat
» **IX help - performing urldecode in /bin/sh
|**IX help - performing urldecode in /bin/sh [message #17894]
||Fri, 23 April 2004 15:57
I don't have shell access to my web providers **IX-servers so I'm bypassing this with a small CGI hack.|
However I need help on how to decode the charcters of the data sent via the GET method that get url encoded. Substituting + with space is done but how do I for instance decode %2F back to the character / ?
echo Content-type: text/html
echo "<html><body onload='form.run.focus();'>"
RUN=`echo $QUERY_STRING|cut -c5-|[B]tr + ' '[/B]`
echo "<form name=form method=GET action=/cgi-bin/_test/shell.cgi><input id=run type=text name=run size=40 value='"
echo "'><input type=submit value=run></form>"
Current Time: Sat Nov 22 15:50:45 EST 2014
Total time taken to generate the page: 0.00745 seconds