i have some background in html, vb, c++, etc, but nowhere near enough to do any type of valuable programming.
i need a little help here. im trying to decrypt this code, and through a few hours i got to the main part that i would like to decrypt but i cant seem to figure it out. heres what i mean.
CODE:
--------------
s = unescape(_url);
importString = s.substr(s.lastIndexOf("?") + 1, s.length);
splitString = importString.split("!");
total = splitString.length - 1;
var decodedString;
for (i = 0; total >= 0; i++)
{
chunk = splitString;
decoded = String.fromCharCode(chunk);
decodedString = decodedString + decoded;
--total;
} // end of for
imageType = decodedString.slice(-1);
imageString = "poop/" + decodedString + ".jpg";
------------------
now, say your "input variable" is something along the lines of:
74!66!95!51!95!50!95!54!95!80!95!50!
what would the decodedString be for that example? (without any spaces - the post adds the space before the 95)
also, would you mind explaining to me how to decrypt any given example?
i know its poop/#.jpg
but the # is what i need help with. heh. any ideas??
i need a little help here. im trying to decrypt this code, and through a few hours i got to the main part that i would like to decrypt but i cant seem to figure it out. heres what i mean.
CODE:
--------------
s = unescape(_url);
importString = s.substr(s.lastIndexOf("?") + 1, s.length);
splitString = importString.split("!");
total = splitString.length - 1;
var decodedString;
for (i = 0; total >= 0; i++)
{
chunk = splitString;
decoded = String.fromCharCode(chunk);
decodedString = decodedString + decoded;
--total;
} // end of for
imageType = decodedString.slice(-1);
imageString = "poop/" + decodedString + ".jpg";
------------------
now, say your "input variable" is something along the lines of:
74!66!95!51!95!50!95!54!95!80!95!50!
what would the decodedString be for that example? (without any spaces - the post adds the space before the 95)
also, would you mind explaining to me how to decrypt any given example?
i know its poop/#.jpg
but the # is what i need help with. heh. any ideas??