?
Solved

VBS script triggers virus alert when downloading file.

Posted on 2006-05-03
5
Medium Priority
?
269 Views
Last Modified: 2010-05-18
I'm trying to write a script that downloads a word template.  This script works fine (and I think I got it on the Experts Exchange site) , but it triggers a "Trojan Alert " VBS/PSYME from McAfee virus scan which then promptly erases it!

Is there a better way to do this without triggering the warning?

url="http://www.xyz.com/install/xyz.dot"
Const adTypeBinary = 1
Const adSaveCreateNotExist = 1
Const adSaveCreateOverWrite = 2

set oXMLHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "GET", url, False
oXMLHTTP.send
set oStream = createobject("adodb.stream")

oStream.type = adTypeBinary
oStream.open
oStream.write oXMLHTTP.responseBody
oStream.savetofile "c:\aaa\bbb\xyz.dot", adSaveCreateOverWrite
set oStream = nothing
set oHTTP = nothing

Thanks,
Mike
0
Comment
Question by:mafeldman
  • 2
3 Comments
 
LVL 11

Expert Comment

by:WelkinMaze
ID: 16595358
Hi,
I suppose the script is not triggering the alert. The alert is triggered by the anti virus software so maybe there is no way to disable it from the script.
0
 

Author Comment

by:mafeldman
ID: 16596633
I plan to distribute this, perhaps commercially, and I don't think disabling the anti-virus software will be possible.  
-Mike
0
 
LVL 11

Accepted Solution

by:
WelkinMaze earned 2000 total points
ID: 16596712
you may try to archive it with ZIP or RAR.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question