Jump to content











Photo

Sophos Antivirus CLI for Portable

antivirus cli win8pe

  • Please log in to reply
4 replies to this topic

#1 ds2k5

ds2k5

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 March 2013 - 11:06 AM

You need WGET64.exe (http://nebm.ist.utl.pt/~glopes/wget/) and 7z.exe (from Win8PESE)

First run get.cmd than scan.cmd or disinfect.cmd

Quick and dirty but i works


SOPHOS:
-------

get.cmd

@echo off
ping -n 1 sophos.com
if errorlevel 1 (
echo "no Internetconnection - abort"
exit /b %errorlevel%
)

copy 7z.exe b:\
copy wget64.exe b:\
b:
wget64.exe -c http://www.sophos.co...ls/sav32sfx.exe sav32sfx.exe
wget64.exe -c wget64.exe -c http://www.sophos.co...de/web_ides.zip

y:\programs\7-zip_x64\7z.exe x sav32sfx.exe
y:\programs\7-zip_x64\7z.exe x web_ides.zip


scan.cmd

@echo off
b:
SAV32CLI.exe -P=b:\scanlog.txt
notepad b:\scanlog.txt


disinfect.cmd

@echo off
b:
SAV32CLI.exe -di -P=b:\disinfectlog.txt
notepad b:\disinfectlog.txt
 



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 March 2013 - 12:42 PM

You need WGET64.exe (http://nebm.ist.utl.pt/~glopes/wget/) and 7z.exe (from Win8PESE)

Or the 32 bit version of wget, I mean the Sophos antivirus is 32 bit or only 64 bit?  :unsure:

 

7zip has it's own home page, just in case:

http://www.7-zip.org/

http://www.7-zip.org/download.html

 

 

Quick and dirty but i works

I like quick and dirty things that just work! :thumbsup:

 

:cheers:

Wonko



#3 ds2k5

ds2k5

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 March 2013 - 12:45 PM

Hi,

can use this under 32bit too, only change the wget.exe in get.cmd too

 

the sohpos cli is 32bit but work under 64bit Win8PE too

 

 

sorry a bug in the get.cmd

 

wget64.exe -c http://www.sophos.co...de/web_ides.zip


Edited by ds2k5, 12 March 2013 - 12:46 PM.


#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 12 March 2013 - 01:38 PM

Hi,

can use this under 32bit too, only change the wget.exe in get.cmd too

 

the sohpos cli is 32bit but work under 64bit Win8PE too

 

 

sorry a bug in the get.cmd

 

wget64.exe -c http://www.sophos.co...de/web_ides.zip

 

Good, maybe also the "plain" 32bit wget also work in the 64 bit environment, so one could make an "unified" set of batches that work both on 32 and 64 bit OS/PE's.

(I don't think that there is any advantage of any kind in wget when compared to wget64 in terms of speed/reliability of download :dubbio:).

 

:cheers:

Wonko



#5 ds2k5

ds2k5

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 12 March 2013 - 01:47 PM

Sorry for my bad explain:

Hope this helps

 

 

Win8PE 32bit

 

get.cmd

@echo off
ping -n 1 sophos.com
if errorlevel 1 (
echo "no Internetconnection - abort"
exit /b %errorlevel%
)

 

copy wget.exe b:\
b:
wget.exe -c http://www.sophos.co...ls/sav32sfx.exe sav32sfx.exe
wget.exe -c http://www.sophos.co...de/web_ides.zip

y:\programs\7-zip\7z.exe x sav32sfx.exe
y:\programs\7-zip\7z.exe x web_ides.zip

 

 

 

Win8PE 64bit

 

get.cmd

@echo off
ping -n 1 sophos.com
if errorlevel 1 (
echo "no Internetconnection - abort"
exit /b %errorlevel%
)

copy wget64.exe b:\
b:
wget64.exe -c http://www.sophos.co...ls/sav32sfx.exe sav32sfx.exe

wget64.exe -c http://www.sophos.co...de/web_ides.zip

y:\programs\7-zip_x64\7z.exe x sav32sfx.exe
y:\programs\7-zip_x64\7z.exe x web_ides.zip

 

 

The Sophos is 32bit and run unter Win8PE 32bit and Win8PE 64bit

 

I did not test if the 32bit wget.exe runs under Win8PE, sorry


Edited by ds2k5, 12 March 2013 - 01:49 PM.






Also tagged with one or more of these keywords: antivirus, cli, win8pe

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users