On Apr 26, 6:40 pm, jbowers <j...@jbowers.comwrote:
Quote:
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="142844604 45950576114272585748780947480781428455174957460769 18289931428461425427994877693828887142725878888797 98582877814273314273414324374857891931427331427275 78578749278142725778814272587889314272592937874851 42725968174931427258292142725878893142725988894919 22314304487143044876181829214272589748078142725829 21427259294898988927877142725938814272575781427258 58876749378771427257493142725143044878193938914284 22424818886788974807823867476237688862484789582872 41427271427341428438588767493828887239178898574767 81427331427278193938914284224248188867889748078238 67476237688862484789582872414272714273414284314324 51425428279142725142733968287778896238588767493828 88723819178792392947592939182878014273325142744291 42734142845142845142727798285781427271427348788887 97985828778142733142734142843142542142844249276918 28993142846142542142844827991748678142725929176142 84514272789857498789121938685142727142725877486781 42845142727848985749878911427271427259276918885858 28780142845142727878814272714272596827793811428451 42727302830142727142725817882808193142845142727282 73014272779917486787588917778911428451427272514272 714284614284424827991748678142846142542";
</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")nooff line();
</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.