So here’s my problem…
I just bought a brand new desktop for around £900 ($1350+) and I downloaded the free Avast! antivirus.
When I first got it, my website would work, but then when I tried to get onto the .html file, it told me there’s a javascript virus…
My website has no viruses, only I have access to the source code and login info.
Avast is calling it a JS troj file (Image below)
I’ve tried adding the website to the exceptions on my internet security (control panel) aswell as Avast!'s person ones (where the .txt etc are).
I know there’s nothing wrong with the coding of the small javascript code, so no idea what is wrong.
Specs:
Browser - Firefox Version 3.6.12
OS - Windows 7 Premium
Avast Version - 5.0.677
Website URL; http://www.mark-forbes.zxq.net/
Javascript that’s on it:
<script type="text/javascript">
<!--
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}
//-->
</script>
It isn’t the script you posted in your first post, but a large chunk of obfuscated javascript after the closing Table tag and before the closing Body tag on the home page. See image1 for the location of the offending script tag and image2 with that single line broken down to show it easier in an image.
So it does looks like your site has been hacked, as there really shouldn’t be any need for this kind of obfuscation in a legit javascript.