Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Did I just wrote a virus?

HalleluujaHalleluuja Member Posts: 12
A strange thing happened.

I was just refreshing my memory by using vbscript commands I learned about a week ago.

And when I had written another simple script and wanted to save it, my anti-virus program suddenly alarmed.

And the cause of that alarm was the same code I had just finished.

Is that code really so dangerous:

dim filesys, mymsg

set filesys = CreateObject("Scripting.FileSystemObject")
set mymsg = filesys.CreateTextFile("C:Helloonefile.txt")
mymsg.write CHR(13) & CHR(10) & "Hello!"
mymsg.Write "What a nice day."
mymsg.close

Comments

  • BitByBit_ThorBitByBit_Thor Member Posts: 2,444
    : A strange thing happened.
    :
    : I was just refreshing my memory by using vbscript commands I learned
    : about a week ago.
    :
    : And when I had written another simple script and wanted to save it,
    : my anti-virus program suddenly alarmed.
    :
    : And the cause of that alarm was the same code I had just finished.
    :
    : Is that code really so dangerous:
    :
    : dim filesys, mymsg
    :
    : set filesys = CreateObject("Scripting.FileSystemObject")
    : set mymsg = filesys.CreateTextFile("C:Helloonefile.txt")
    : mymsg.write CHR(13) & CHR(10) & "Hello!"
    : mymsg.Write "What a nice day."
    : mymsg.close
    :
    :

    VB Scripts, and in particular the FileSystemObject (which has a pathetic security), were used in some pretty well-known virii. So basic Virus Protection Applications prematurely block script files.

    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.