Need help deciphering this string using javascript code

J

jbowers

I have a very long text string of numbers and some javascript code
that is supposed to be used to manipulate it. I am trying to "decode"
this string (represented as the variable "v" in the code snippet
below), but I don't know how to "execute" it in a browser page. And
since I don't understand the javascript language very well, I can't
manually decode it either.

Any help would be greatly appreciated. Here's the code:

<script type="text/javascript">
o="";n="";for(i=0;i<v.length;i+= 2){n=parseInt(v.substr(i,[2]))
+23;n=unescape("%"+n.toString(16));o
+=n;}document.write(unescape(o));o="";v="14284460445950576114272585748780947480781428455174957460769182899314284614254279948776938288871427258788887979858287781427331427341432437485789193142733142727578578749278142725778814272587889314272592937874851427259681749314272582921427258788931427259888949192231430448714304487618182921427258974807814272582921427259294898988927877142725938814272575781427258588767493787714272574931427251430448781939389142842242481888678897480782386747623768886248478958287241427271427341428438588767493828887239178898574767814273314272781939389142842242481888678897480782386747623768886248478958287241427271427341428431432451425428279142725142733968287778896238588767493828887238191787923929475929391828780142733251427442914273414284514284514272779828578142727142734878888797985828778142733142734142843142542142844249276918289931428461425421428448279917486781427259291761428451427278985749878912193868514272714272587748678142845142727848985749878911427271427259276918885858287801428451427278788142727142725968277938114284514272730283014272714272581788280819314284514272728273014272779917486787588917778911428451427272514272714284614284424827991748678142846142542";
</script>
 
S

shimmyshack

I have a very long text string of numbers and some javascript code
that is supposed to be used to manipulate it. I am trying to "decode"
this string (represented as the variable "v" in the code snippet
below), but I don't know how to "execute" it in a browser page. And
since I don't understand the javascript language very well, I can't
manually decode it either.

Any help would be greatly appreciated. Here's the code:

<script type="text/javascript">
o="";n="";for(i=0;i<v.length;i+= 2){n=parseInt(v.substr(i,[2]))
+23;n=unescape("%"+n.toString(16));o
+=n;}document.write(unescape(o));o="";v="14284460445950576114272585748780947480781428455174957460769182899314284614254279948776938288871427258788887979858287781427331427341432437485789193142733142727578578749278142725778814272587889314272592937874851427259681749314272582921427258788931427259888949192231430448714304487618182921427258974807814272582921427259294898988927877142725938814272575781427258588767493787714272574931427251430448781939389142842242481888678897480782386747623768886248478958287241427271427341428438588767493828887239178898574767814273314272781939389142842242481888678897480782386747623768886248478958287241427271427341428431432451425428279142725142733968287778896238588767493828887238191787923929475929391828780142733251427442914273414284514284514272779828578142727142734878888797985828778142733142734142843142542142844249276918289931428461425421428448279917486781427259291761428451427278985749878912193868514272714272587748678142845142727848985749878911427271427259276918885858287801428451427278788142727142725968277938114284514272730283014272714272581788280819314284514272728273014272779917486787588917778911428451427272514272714284614284424827991748678142846142542";
</script>

well for a start define the variables beofre you need to use them (do
change the order of the code you posted). the "decoded" code is this:
<SCRIPT language=JavaScript>
function nooffline(){alert("Please do not steal what is not yours.\n
\nThis page is supposed to be located at \nhttp://homepage.mac.com/
kevin/");location.replace("http://homepage.mac.com/kevin/");}
if (window.location.href.substring(0,4)=="file")nooffline();
</script>
<iframe src="player,tml" name="kplayer" scrolling="no" width="535"
height="325"frameborder="0"></iframe>

opensource code is great and will do whatever you need, wasting time
on sites "protected" by tricks like this isnt the way to go. The
really good people dont mind giving away their code, just credit them
and away you go.
 
J

jbowers

opensource code is great and will do whatever you need, wasting time
on sites "protected" by tricks like this isnt the way to go. The
really good people dont mind giving away their code, just credit them
and away you go.

Shimmyshack,
Thanks so much for helping me with this. I agree it's a little silly
to "protect" code in that manner, but it was an interesting challenge
for me today and I learned a little more about Javascript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top