Jump to content











Photo
- - - - -

Mcafee command-line antivirus scanner


  • Please log in to reply
34 replies to this topic

#1 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 20 July 2008 - 02:47 PM

File name: Mcafee command-line antivirus scanner
Description:Very fast (4X faster than ClamWin) and accurate command-line scanner. I've never come across a virus that this won't remove when running from VistaPE or BartPE.

Includes Bart Lagerweij's ScanGUI allowing you to set options easily, and Sherpya's NAIUpdater to update the virus definitions. Creates shortcuts to ScanGUI, common scan types, and definitions update.

Script includes options to update at build time (highly recommended) and at run time, and to delete all files except the log from the RAMdisk when finished.

Major update 2 October 2008:
  • The Mcafee files are now downloaded the first time you use the script, reducing the size of the script download to almost nothing.
  • The files are kept in a subdirectory of the script directory, so you never download an update twice.
Minor update 3 October 2008 to fix bugs pointed out by Lancelot. Thanks!

Minor update 4 October 2008 fixing more bugs pointed out by Lancelot. Sorry 'bout that.

Tested in VistaPE 12 and LiveXP and should work in any project.
Download file

Edited by JonF, 04 October 2008 - 12:25 PM.


#2 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 08 September 2008 - 05:41 AM

JonF

First of all , thanks a lot for mcafee script :huh:

-
update download now works fine :huh:

-
mcafee.ico not in script, here is a picture that summurize all
http://img213.images...2017/001ml6.png

-
"update at build time" is a good feature BUT
it updates in everybuild, waitin ~50mb download on every build is a bit boring,
why not download at ...\Workbench\Common\McafeeUpdate\ folder ?
and check folder content with the ftp connected content, so no need to download in every build :)
(...\Workbench\Common\McafeeUpdate\dat-5378.zip)

-
if you agree with previous, i plan to delete virusdef files in .script to gain space, as new updates will be in \Workbench\Common\McafeeUpdate\ . I hope it wont effect .script working.

-
as update works nice, script can be without virusdef files too?? and without virusdef as it will be a small script and it can be in livexp project too (if galapo agrees). It is a style of writing script, just sharing idea with you?

#3 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 08 September 2008 - 06:18 PM

"update at build time" is a good feature BUT
it updates in everybuild, waitin ~50mb download on every build is a bit boring,
why not download at ...\Workbench\Common\McafeeUpdate\ folder ?
and check folder content with the ftp connected content, so no need to download in every build :huh:
(...\Workbench\Common\McafeeUpdate\dat-5378.zip)

Download the Mcafee script again. I fixed the problem.

as update works nice, script can be without virusdef files too?? and without virusdef as it will be a small script and it can be in livexp project too (if galapo agrees). It is a style of writing script, just sharing idea with you?

Since encoding files is now very fast, I might distribute it without the scan.dat and encode scan.dat after a successful download. I like having the (possibly current) scan.dat in the script for those days when I build many times.

#4 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 09 September 2008 - 03:52 AM

JonF, you forgot to upload i guess :huh:

#5 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 09 September 2008 - 12:17 PM

I believe I uploaded. The file on my server is dated 9/9 5:05 PM. You may have misunderstood, or I may have misunderstood. The current version does not always download the update; it only downloads if the local copy is out of date.

Encoding into the script isn't working and I don't see why. Maybe a winbuilder bug.

#6 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 09 September 2008 - 01:34 PM

JonF,

versions are same i guess (9/9)
additional md5checksum:
F5D6F3C88783E55DE1F2A2DF0818D733 *Mcafee.7z
54A757F46D3D6768337EC32A956CB910 *Mcafee.script
and yes, encoding in script probably dont work,

I will try to add sth for personal use and pm to you, than you say what you think.

Again thanks a lot :huh:

#7 asker2

asker2

    Frequent Member

  • Members
  • 122 posts
  •  
    Germany

Posted 10 September 2008 - 04:35 PM

Works very fine!!
Thanks!
And really quickly.

#8 john3voltas

john3voltas

    Member

  • Members
  • 97 posts
  •  
    Portugal

Posted 29 September 2008 - 08:07 PM

Hi guys.
I like this script but I want to know if it's possible to avoid update download.
For instance, if I have an update file such as "dat-5394.zip" do I really have to wait for NAIUpdater to download the update again?
If not, where do I put the update file so that this script uses it?
Thanks in advance.
Cheers

#9 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 02 October 2008 - 12:49 PM

Hi guys.
I like this script but I want to know if it's possible to avoid update download.
For instance, if I have an update file such as "dat-5394.zip" do I really have to wait for NAIUpdater to download the update again?
If not, where do I put the update file so that this script uses it?
Thanks in advance.
Cheers

With the **NEW**, **IMPROVED** version I uploaded today, which never downloads updates twice, I think that putting it in the Mcafee subdirectory of the script's directory might do it.

But it's probably easier just to un-check "Update at build time".

#10 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 October 2008 - 05:57 AM

i love the **NEW**, **IMPROVED** version of mcaffee script,
, which never downloads updates twice :cheers:

Also reading previous posts makes me a smile,
For a issue on script:
1st issue report from somebody is something
2nd issue report from another is reality :confused1:

Thanks for your marvelous work.

#11 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 03 October 2008 - 01:27 PM

Newer, improved-er version uploaded, fixing some bugs pointed out by Lancelot. Thanks!

#12 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 October 2008 - 04:58 PM

I found a bugy

When run from Ramdisk choosen, mcafee dont work,

in Mcafee.cmd
this is wrong syntax:
copy "%~dp0*.*" "%2\Mcafee\" /s
it should be
copy /y "%~dp0*.*" "%2\Mcafee\"
(or maybe xcopy if you desire, but i like copy more)

also an info:
using
True %temp% False True
works fine too :confused1:

#13 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 03 October 2008 - 05:19 PM

it should be
copy /y .....


Just for the record:
the "/y" parameter to suppress overwriting prompt should be ONLY needed when the copy program is run from command line, if run from a batch file it is unneeded, NO prompt will occur.

....saving two bytes....:confused1:

jaclaz

#14 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 October 2008 - 05:26 PM

jaclaz

That is why i call all you masters :confused1:
i have lots of batch files with "/y" parameter, from now on i will save lots of pair of bytes :cheers: (with space lots of three of bytes)

#15 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 03 October 2008 - 07:25 PM

as well as mcafee.cmd, there is same fix needed in update.cmd too
copy "%~dp0*.*" "%2\Mcafee\" /s
to
copy "%~dp0*.*" "%2\Mcafee\"

#16 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 04 October 2008 - 12:27 PM

Sigh. Sorry about that. :confused1:

New version posted.

#17 john3voltas

john3voltas

    Member

  • Members
  • 97 posts
  •  
    Portugal

Posted 04 October 2008 - 12:43 PM

@JonF,
Hi there :confused1:.
I'm still using yesterday's version and I can't figure it out.
I want to manually download sdat5398.exe and hand it over to the script.
Where shall I put sdat5398.exe file?
Under "C:\wb75b\Projects\nativeEx_barebone\Apps\Security"?
Or "C:\wb75b\Projects\nativeEx_barebone\Apps\Security\Mcafee"?
Neither of these?
What name should the file have?
sdat5398.exe? superdat.exe?
Do you know why I want to manually download it?
Simply because Wget (or whatever tool is being used) is awfully slower than firefox and I can't understand why...
Can you give me a hand?
Cheers

#18 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 04 October 2008 - 03:00 PM

If you download the superdat manually, you are going to have to run it manually. At a command line:

sdat5398.exe /e [Path]
del sdat5398.exe

If you omit the path it extracts to thecurrent directory.

What URL are you accessing in Firefox to download the file?

#19 john3voltas

john3voltas

    Member

  • Members
  • 97 posts
  •  
    Portugal

Posted 04 October 2008 - 03:16 PM

I'm using this URL http://download.nai....el/sdat5398.exe

You said that I need to run it manually.
Can we enter in a more verbose mode, please? lol
So, I get the file from mcafee site, I extract it to what? maybe c:\mcafee?
Then I copy that folder (c:\mcafee) not only the content but the actual folder to something like "c:\wb75b\Projects\nativeEx_barebone\Apps\Security"?
So does that mean that I end up with "c:\wb75b\Projects\nativeEx_barebone\Apps\Security\mcafee"?
Does this work or is it all wrong?
Sorry mate, but I am quite new to winbuilder and I just need a hand. :confused1:
Cheers

#20 john3voltas

john3voltas

    Member

  • Members
  • 97 posts
  •  
    Portugal

Posted 04 October 2008 - 05:33 PM

I'm using this URL http://download.nai....el/sdat5398.exe

You said that I need to run it manually.
Can we enter in a more verbose mode, please? lol
So, I get the file from mcafee site, I extract it to what? maybe c:\mcafee?
Then I copy that folder (c:\mcafee) not only the content but the actual folder to something like "c:\wb75b\Projects\nativeEx_barebone\Apps\Security"?
So does that mean that I end up with "c:\wb75b\Projects\nativeEx_barebone\Apps\Security\mcafee"?
Does this work or is it all wrong?
Sorry mate, but I am quite new to winbuilder and I just need a hand. :confused1:
Cheers

#21 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 04 October 2008 - 05:46 PM

john3voltas

put script in:
c:\wb75b\Projects\nativeEx_barebone\Apps\Security\mcafee.script

use this command:
sdat5398.exe /e c:\wb75b\Projects\nativeEx_barebone\Apps\Security\mcafee

uncheck "update at build time" in script

That is all

#22 john3voltas

john3voltas

    Member

  • Members
  • 97 posts
  •  
    Portugal

Posted 04 October 2008 - 06:06 PM

Excellent tip.
Only an excellent tip is good enough for a fabulous script.
Thank you both, Lancelot and especially JonF.
Cheers

#23 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 28 January 2009 - 10:22 PM

Beta version for testing!

Build-time update uses a new replacement for NAIUpdater: HTTP download (which seems to be on average faster and more reliable than NAIUpdater's FTP download), user-defined timeouts, lots of feedback on what's going on.

Comments welcome.

Mcafee 2

#24 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 29 January 2009 - 05:48 AM

Comments welcome.

I hope you wont be regretful after my post :cheers: , i am great fun of your mcafee script (i guess first script i downloaded for livexp :>)


ShellExecute,Open,%GlobalTemplates%\%ProgramFolder%\superdat.exe,"/e #$q%GlobalTemplates%\%ProgramFolder%\#$q"

FileDelete,%GlobalTemplates%\%ProgramFolder%\superdat.exe
cause:
FileDelete - Failed to delete [%BaseDir%\Workbench\Common\Mcafee\superdat.exe]
solution is instead of using these 2 lines use this:
ShellExecuteDelete,Open,%GlobalTemplates%\%ProgramFolder%\superdat.exe,"/e #$q%GlobalTemplates%\%ProgramFolder%\#$q"
(ps: this is not a reproducable problem on all computers and doesnt happen with all executables, here is log file in case you ask for)


Also some cosmetics if you like:

pCheckBox1="Delete RAMdisk directory after running Mcafee",1,3,10,275,343,19,True
TO
pCheckBox1="Delete RAMdisk directory after running Mcafee",1,3,10,275,250,19,True

pCheckBox3="Add shortcut to desktop",1,3,11,245,200,18,True
TO
pCheckBox3="Add shortcut to desktop",1,3,11,245,140,18,True

pCheckBox5="Update at build time",1,3,15,124,200,18,True
TO
pCheckBox5="Update at build time",1,3,15,124,120,18,True

pCheckBox6="Full (superdat) update if updating at build time",1,3,74,196,314,18,False
TO
pCheckBox6="Full (superdat) update if updating at build time",1,3,74,196,250,18,False

and result is here:

http://lancelot.winb...00901290728.rar

**other comments:
*
-on 1st build, script downloaded file with command window, :cheers:
-on 2nd build, updated ! (why, i just downloaded) :cheers:
-on 3rd build, not updated giving warning "local version is up to date" :cheers:
*
instead of
%BaseDir%\Workbench\Common\Mcafee\ folder
maybe
%BaseDir%\Workbench\Common\Mcafee_JonF_Files\ folder
better for uniqueness of folder name (up to you)
*
i guess "user-defined timeouts" are miliseconds (not sure), i am not sure about the meaning
again i guess
"maximum seconds allowed for downloading the DAT file specification" means when same virus defination exists "local version is up to date" screen stays on screen only 2 seconds
guessing again
"maximum seconds allowed for downloading the DAT file" checks if download begins ?


I love your mcafee script, these are test results of mine after downloading 300 MB for tests with my medium speed connection :cheers:, i hope you find them useful B)

#25 JonF

JonF

    Gold Member

  • .script developer
  • 1185 posts
  • Location:Boston, MA
  •  
    United States

Posted 29 January 2009 - 02:18 PM

You are indeed a bug-catcher! :cheers:

I will have to take a look at some of your issues. For now:

i guess "user-defined timeouts" are miliseconds (not sure), i am not sure about the meaning
again i guess
"maximum seconds allowed for downloading the DAT file specification" means when same virus defination exists "local version is up to date" screen stays on screen only 2 seconds
guessing again
"maximum seconds allowed for downloading the DAT file" checks if download begins ?

The user-defined timeouts are in seconds, and allow you to set your personal preference for the tradeoff between waiting a long time to get an update or not getting an update. Suppose you leave them at the defaults 120 and 1200. Then:

The updater starts downloading http://www.mcafee.co...updates/dat.asp. If the download is not complete within 120 seconds, the updater exits and you don't get an update. If the download is complete in less than 120 seconds, the updater parses the file to determine the current DAT version and the URL from which to download it and starts the download. If this download is not complete within 1200 seconds the updater exits and you don't get an update. If this download is complete within 1200 seconds the updater unzips the file and you have an update.

Note the countdown timer at the lower left corner of the updater's dialog box.

In my testing I never saw the first donwload time out at 120 seconds. I also never saw the second download time out at 1200 seconds, but once or twice I did see it time out at 900 seconds.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users