Help - Search - Members - Calendar
Full Version: VIPRE PC Rescue
The CD Forum > Bart's PE Builder > Plugins
goofer
Hey all,

I made a plugin for the new[ish] program VIPRE PC Rescue. You can read about the program HERE.

I've written a batch file that will do the following:

  • Ask you if you'd like to update (while running a live PE) or just scan with the stock version of VIPRE.

  • You are given the choice to use ramdrive or the host OS when running VIPRE, it must be run from a large read/write directory.

  • Test for an internet connection via a single packet ping with google's URL. If connection is not found the batch file will try again, this time increasing the packets sent (total of 4) to google's URL. If neither of those pingings found a connection the batch file testes via google's IP address. Depending upon how/if the internet connection was found the user will be shown a warning message about possible packet loss, DNS issues, etc.

  • If no internet connection is found you are offered the option to use the [stock] version included with the LiveCD (v.3.0.0.0 from Feb, 07, 2009)

  • There are two types of scans offered by VIPRE: quick and deep. My plugin only uses deep because the quick scan only scans X:\ and the hive[s] which are loaded. A bonus here is it makes the plugin more automated.

  • RunScanner is set to launch VIPRE so you can choose the hive[s] to scan. If you do not use RunScanner you can comment out that line and uncomment the line to lauch VIPRE.

  • It would be very easy to make this plugin use a USB drive instead of the hdd: Put a tag file on the USB and hack the file "vipre.cmd"...

  • Auto-update before building an ISO is not supported right now. I may look into adding it in the future if it's requested. For now it's really easy to update before building the .iso. Please read the file "README!.txt" for more info.

  • There is a fair bit of info in the file "vipre.cmd", I suggest people read it.

  • The file "README!.txt" has a better explanation of how this plugin works, it too should be read.

  • VIPRE PC Rescue is not extracted before building the .iso to save space on the disk. The plugin is about 68mb.

  • Within the plugin are a few programs:
    1. Wget for Windows (it's license is GNU)
    2. Unzip (it's license is very similar to, and based upon the BSD license)



I uploaded the complete plugin to 'MegaUpload', link is HERE. Please try it out and let me know of any problems, suggestions, requests, etc. I am not a expert at writing batch files so "vipre.txt" may not have exactly 'sexy' code but it works well. I would love to hear about improvements I can make to the plugin and that file.

VIPRE PC Rescue does not have updates per say. To update the definitions you need to update the program itself. This plugin contains the program and definitions from Feb 07, 2009.

I adapted some code from Cworks within my plugin, thanks Cworks.

This plugin has had limited testing!


vipre.txt

It's renamed to vipre.cmd during build

CODE
@echo off
Color F8
TITLE Script for configuring and running "VIPRE PC Rescue" in a BartPE environment


rem --------------------------------------------------------------------------------------------------------------
rem "VIPRE PC Rescue" plugin for a BartPE environment.
rem
rem Created by Goofer for the BartPE community on Feb, 07, 2009
rem
rem My contact email address: <goofer420@yahoo.com>
rem
rem The version (and definitions) of VIPRE PC Rescue included within this plugin is
rem v.3.0.0.0 from Feb, 07, 2009.
rem
rem This is a script to automatically check for Internet connectivity, download update and
rem start "VIPRE PC Rescue".
rem --------------------------------------------------------------------------------------------------------------

::------------------------------------------------------------------------------------------
:: The code below will find the drive letter (e.g. C:\) where the tag file (e.g. "Boot.ini")
:: is found. To use a USB drive instead of the HDD host OS then edit the tag file. You
:: need to place a tag file (with any name and extension) in your USB drive. Where you
:: place the tag file is where this script will place Vipre program files...
::------------------------------------------------------------------------------------------

goto _begining

:_driveletter_r
setlocal
set driveletter=
set present=no
set REST=\Boot.ini
if exist "C:%REST%" set driveletter=C&set present=yes
if exist "D:%REST%" set driveletter=D&set present=yes
if exist "E:%REST%" set driveletter=E&set present=yes
if exist "F:%REST%" set driveletter=F&set present=yes
if exist "G:%REST%" set driveletter=G&set present=yes
if exist "H:%REST%" set driveletter=H&set present=yes
if exist "I:%REST%" set driveletter=I&set present=yes
if exist "J:%REST%" set driveletter=J&set present=yes
if exist "K:%REST%" set driveletter=K&set present=yes
if exist "L:%REST%" set driveletter=L&set present=yes
if exist "M:%REST%" set driveletter=M&set present=yes
if exist "N:%REST%" set driveletter=N&set present=yes
if exist "O:%REST%" set driveletter=O&set present=yes
if exist "P:%REST%" set driveletter=P&set present=yes
if exist "Q:%REST%" set driveletter=Q&set present=yes
if exist "R:%REST%" set driveletter=R&set present=yes
if exist "S:%REST%" set driveletter=S&set present=yes
if exist "T:%REST%" set driveletter=T&set present=yes
if exist "U:%REST%" set driveletter=U&set present=yes
if exist "V:%REST%" set driveletter=V&set present=yes
if exist "W:%REST%" set driveletter=W&set present=yes
if exist "Y:%REST%" set driveletter=Y&set present=yes
if exist "Z:%REST%" set driveletter=Z&set present=yes

if "%present%" == "yes" (
echo.
)
echo.
echo. The harddrive's first host OS root was found!
echo.
echo.
goto _root_dl

if "%present%" == "no" (
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ The root of the host OS was not found! บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit
)

:_driveletter_t
setlocal
set driveletter=
set present=no
set REST=\Boot.ini
if exist "C:%REST%" set driveletter=C&set present=yes
if exist "D:%REST%" set driveletter=D&set present=yes
if exist "E:%REST%" set driveletter=E&set present=yes
if exist "F:%REST%" set driveletter=F&set present=yes
if exist "G:%REST%" set driveletter=G&set present=yes
if exist "H:%REST%" set driveletter=H&set present=yes
if exist "I:%REST%" set driveletter=I&set present=yes
if exist "J:%REST%" set driveletter=J&set present=yes
if exist "K:%REST%" set driveletter=K&set present=yes
if exist "L:%REST%" set driveletter=L&set present=yes
if exist "M:%REST%" set driveletter=M&set present=yes
if exist "N:%REST%" set driveletter=N&set present=yes
if exist "O:%REST%" set driveletter=O&set present=yes
if exist "P:%REST%" set driveletter=P&set present=yes
if exist "Q:%REST%" set driveletter=Q&set present=yes
if exist "R:%REST%" set driveletter=R&set present=yes
if exist "S:%REST%" set driveletter=S&set present=yes
if exist "T:%REST%" set driveletter=T&set present=yes
if exist "U:%REST%" set driveletter=U&set present=yes
if exist "V:%REST%" set driveletter=V&set present=yes
if exist "W:%REST%" set driveletter=W&set present=yes
if exist "Y:%REST%" set driveletter=Y&set present=yes
if exist "Z:%REST%" set driveletter=Z&set present=yes

if "%present%" == "yes" (
echo.
)
echo.
echo. The harddrive's first host OS root was found!
echo.
echo.
goto _root_x

if "%present%" == "no" (
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ The root of the host OS was not found! บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit
)

:_begining
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ ...Starting "VIPRE PC Rescue"... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.

echo.&echo.&echo.&echo Would you like update VIPRE PC Rescue? &echo.&echo.&set upd=y&set /p upd= y / n :&cls
if "%upd%" == "n" goto _scan_anyway

:: Checking for Internet connection, if one is not found the update will not happen:
echo.
echo.
echo. Checking for an active Internet connection by pinging google's URL.
echo. Please wait...
echo.
echo.
PING -n 1 www.google.com|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto _net_on_packet
IF ERRORLEVEL 1 goto _second_try

:_second_try
echo.
echo.
echo. Failure!
echo.
echo. You do not seem to have an Internet connection. I will try pinging
echo. google's URL again. Please wait...
echo.
echo.
PING -n 4 www.google.com|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto _net_on_packet_issue
IF ERRORLEVEL 1 goto _third_try

:_third_try
echo.
echo.
echo. Failure again!
echo.
echo. You seem to be lacking an Internet connection. I will try pinging
echo. with google's IP address...
echo.
echo.
ping -n 1 74.125.45.100|find "Reply from " >NUL
IF NOT ERRORLEVEL 1 goto _net_on_dns_issue
IF ERRORLEVEL 1 goto _net_err

:_net_on_packet
echo.
echo.
echo. Success!
echo.
echo. I have found an Internet connection...
echo.
echo.
goto _start_downloading

:_net_on_packet_issue
echo.
echo.
echo. Success! Warning!
echo.
echo.
echo. I have found an Internet connection but I also found a potential
echo. problem. Your Internet connection seems to have packet loss!
echo.
echo.
pause
goto _start_downloading

:_net_on_dns_issue
echo.
echo.
echo. Success! Warning!
echo.
echo. I have found an Internet connection but I also found a potential
echo. problem. Your Internet connection seems to have DNS problems!
echo. I had to ping google's IP address because pinging with its URL
echo. did not work...
echo.
echo.
pause
goto _start_downloading

:_start_downloading
echo.
echo.
echo. To run this program you need to have at least 175mb of free
echo. ramdriv space or you need to use a temp directory either on the
echo. host OS (if it's Windows) or on a USB drive (manual hacking of
echo. this plugin is required).
echo.
echo. The program files must be copied to the ramdrive or either of
echo. the temp directories. The reason is the program files take up
echo. just over 100mb and 150mb during the extract/update procedure.
echo. I suggest using either of the temp directories not RAM...
echo.
echo.

echo.&echo.&echo.&echo Do you wish to download the program update to the Ramdrive OR to a Temp directory in the host OS? &echo.&echo.&set upd=y&set /p upd= r / t :&cls
if "%upd%" == "t" goto _driveletter_r

if "%temp%" == "" goto _ram_err
if exist "%temp%\Vipre\SBRescueScanner.exe" RD /s /q %temp%\Vipre

echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Downloading VIPRE PC Rescue to %temp%\Vipre บ
ECHO บ บ
ECHO บ Please wait... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.


md %temp%\Vipre
md %temp%\Vipre\Definitions
md %temp%\Vipre\Quarantine
::Download program update
cd %temp%\Vipre
wget -t 3 -w 3 http://go.sunbeltsoftware.com/?linkid=1211
IF ERRORLEVEL 1 goto _v_dwn_err
cls
::Extract program files without installing...
cd %programfiles%\Vipre
unzip -qq -o -j %temp%\Vipre\sbrescue.exe -d %temp%\Vipre\Definitions
IF ERRORLEVEL 1 goto _v_ext_err
del /q %temp%\Vipre\Definitions\SBREDrv.sys
del /q %temp%\Vipre\Definitions\sbbd.exe
del /q %temp%\Vipre\Definitions\quick_scan.bat
move %temp%\Vipre\Definitions\SBRC.exe %temp%\Vipre
move %temp%\Vipre\Definitions\SBRescueScanner.exe %temp%\Vipre
move %temp%\Vipre\Definitions\vipre.dll %temp%\Vipre
move %temp%\Vipre\Definitions\SBRE.dll %temp%\Vipre
move %temp%\Vipre\Definitions\SBTE.dll %temp%\Vipre
del /f /q %temp%\Vipre\sbrescue.exe
IF NOT ERRORLEVEL 1 goto _scan_ram
IF ERRORLEVEL 1 goto _tmp_dir_err

:_root_dl
if "%temp%" == "" goto
if exist "%driveletter%:\Vipre\SBRescueScanner.exe" RD /s /q %driveletter%:\Vipre

echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Downloading VIPRE PC Rescue to %driveletter%:\Vipre บ
ECHO บ บ
ECHO บ Please wait... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.

md %driveletter%:\Vipre
md %driveletter%:\Vipre\Definitions
md %driveletter%:\Vipre\Quarantine
::Download program
cd /d %driveletter%:\Vipre
wget -t 3 -w 3 http://go.sunbeltsoftware.com/?linkid=1211
IF ERRORLEVEL 1 goto _v_dwn_err
cls
::Extract program files without installing...
cd %programfiles%\Vipre
unzip -qq -o -j %driveletter%:\Vipre\sbrescue.exe -d %driveletter%:\Vipre\Definitions
IF ERRORLEVEL 1 goto _v_ext_err
del /q %driveletter%:\Vipre\Definitions\SBREDrv.sys
del /q %driveletter%:\Vipre\Definitions\sbbd.exe
del /q %driveletter%:\Vipre\Definitions\quick_scan.bat
move %driveletter%:\Vipre\Definitions\SBRC.exe %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBRescueScanner.exe %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\vipre.dll %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBRE.dll %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBTE.dll %driveletter%:\Vipre
del /f /q %driveletter%:\Vipre\sbrescue.exe
IF NOT ERRORLEVEL 1 goto _scan_root
IF ERRORLEVEL 1 goto _root_dir_err

:_scan_anyway
echo.
echo.
echo. To run this program you need to have at least 175mb of free
echo. ramdriv space or you need to use a temp directory either on the
echo. host OS (if it's Windows) or on a USB drive (manual hacking of
echo. this plugin is required).
echo.
echo. The program files must be copied to the ramdrive or either of
echo. the temp directories The reason is the program files take up
echo. just over 100mb and 150mb during the extract/update procedure.
echo. I suggest using either of the temp directories not RAM...
echo.
echo.

echo.&echo.&echo.&echo Copy the program files to the Ramdrive OR to a Temp directory in the host OS? &echo.&echo.&set upd=y&set /p upd= r / t :&cls
if "%upd%" == "t" goto _driveletter_t

if "%temp%" == "" goto _ram_err
if exist %temp%\Vipre\SBRescueScanner.exe goto _scan_ram

echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Copying VIPRE PC Rescue to %temp%\Vipre บ
ECHO บ บ
ECHO บ Please wait... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.

md %temp%\Vipre
md %temp%\Vipre\Definitions
md %temp%\Vipre\Quarantine
::Extract program files without installing...
cd %programfiles%\Vipre
unzip -qq -o -j %programfiles%\Vipre\sbrescue.exe -d %temp%\Vipre\Definitions
IF ERRORLEVEL 1 goto _v_ext_err
del /q %temp%\Vipre\Definitions\SBREDrv.sys
del /q %temp%\Vipre\Definitions\sbbd.exe
del /q %temp%\Vipre\Definitions\quick_scan.bat
move %temp%\Vipre\Definitions\SBRC.exe %temp%\Vipre
move %temp%\Vipre\Definitions\SBRescueScanner.exe %temp%\Vipre
move %temp%\Vipre\Definitions\vipre.dll %temp%\Vipre
move %temp%\Vipre\Definitions\SBRE.dll %temp%\Vipre
move %temp%\Vipre\Definitions\SBTE.dll %temp%\Vipre
IF NOT ERRORLEVEL 1 goto _scan_ram
IF ERRORLEVEL 1 goto _tmp_dir_err

:_root_x
if "%temp%" == "" goto _ram_err
if exist %driveletter%:\Vipre\SBRescueScanner.exe goto _scan_root

echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Copying VIPRE PC Rescue to %driveletter%:\Vipre บ
ECHO บ บ
ECHO บ Please wait... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออออออออผ

echo.
echo.

md %driveletter%:\Vipre
md %driveletter%:\Vipre\Definitions
md %driveletter%:\Vipre\Quarantine
::Extracting program files without installing...
cd %programfiles%\Vipre
unzip -qq -o -j %programfiles%\Vipre\sbrescue.exe -d %driveletter%:\Vipre\Definitions
IF ERRORLEVEL 1 goto _v_ext_err
del /q /f %driveletter%:\Vipre\Definitions\SBREDrv.sys
del /q /f %driveletter%:\Vipre\Definitions\sbbd.exe
del /q /f %driveletter%:\Vipre\Definitions\quick_scan.bat
move %driveletter%:\Vipre\Definitions\SBRC.exe %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBRescueScanner.exe %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\vipre.dll %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBRE.dll %driveletter%:\Vipre
move %driveletter%:\Vipre\Definitions\SBTE.dll %driveletter%:\Vipre
IF NOT ERRORLEVEL 1 goto _scan_root
IF ERRORLEVEL 1 goto _root_dir_err

:_scan_ram
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Starting Deep scan with rootkit detection... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.

cd %temp%\Vipre

::-->Do you use RunScanner? See below...

:: RunScanner does not run Vipre when the following parameters are used. RunScanner can
:: run Vipre when it has no parameters. I assume RunScanner can use SOME parameters but
:: I did not take the time to test...yet. If you do so PLEASE send me an email:
:: <goofer420@yahoo.com>.
::
:: If you do not use runscanner then uncomment the following line and comment out the
:: line for RunScanner ("start..."):
::cmd /k SBRescueScanner.exe /deep
::
::start %systemdrive%\Programs\RunScanner\RunScanner.exe /t 0 /ac /m+ /sd /y /max /sv cmd /k SBRescueScanner.exe /deep
start %systemdrive%\Programs\RunScanner\RunScanner.exe cmd /k SBRescueScanner.exe /deep

IF NOT ERRORLEVEL 1 goto _end_ram
IF ERRORLEVEL 1 goto _scan_err

:_scan_root
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Starting deep scan with rootkit detection... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.

cd /d %driveletter%:\Vipre

::-->Do you use RunScanner? See below...

:: RunScanner does not run Vipre when the following parameters are used. RunScanner can
:: run Vipre when it has no parameters. I assume RunScanner can use SOME parameters but
:: I did not take the time to test...yet. If you do so PLEASE send me an email:
:: <goofer420@yahoo.com>.
::
:: If you do not use runscanner then uncomment the following line and comment out the
:: line for RunScanner ("start..."):
::cmd /k SBRescueScanner.exe /deep
::
::start %systemdrive%\Programs\RunScanner\RunScanner.exe /t 0 /ac /m+ /sd /y /max /sv cmd /k SBRescueScanner.exe /deep
start %systemdrive%\Programs\RunScanner\RunScanner.exe cmd /k SBRescueScanner.exe /deep

IF NOT ERRORLEVEL 1 goto _end_root
IF ERRORLEVEL 1 goto _scan_err

:_end_ram
cls
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Scanning now...Have a nice day! บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Deleting %temp%\Vipre to recover space... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
RD /s /q %temp%\Vipre
IF ERRORLEVEL 1 goto _v_ram_del_err
exit

:_end_root
cls
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Scanning now...Have a nice day! บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
echo.
echo.
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Deleting %driveletter%:\Vipre to recover space บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
RD /s /q %driveletter%:\Vipre
IF ERRORLEVEL 1 goto _v_root_del_err
exit

:_net_err
echo.&echo.&echo.&echo Internet connection not found! Update not possible. Would you like to proceed with a scan? &echo.&echo.&set upd=y&set /p upd= y / n :&cls
if "%upd%" == "y" goto _scan_anyway

echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Better luck updating next time!;-) บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_scan_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Error running VIPRE. Scan is incomplete! บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_tmp_dir_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Error creating program directories! บ
ECHO บ บ
ECHO บ You may have to manually delete %temp%\Vipre บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_root_dir_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Error creating program directories! บ
ECHO บ บ
ECHO บ You may have to manually delete %driveletter%:\Vipre บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_ram_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ No temp variable is set! Try adding a ramdrive. บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_v_ram_del_err
echo.
echo.
ECHO ษออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ I could not delete %temp%\Vipre บ
ECHO บ บ
ECHO บ Please manually delete it... บ
ECHO บ บ
ECHO ศออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_v_root_del_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ I could not delete %driveletter%:\Vipre บ
ECHO บ บ
ECHO บ Please manually delete it... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_v_dwn_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Error downloading VIPRE. Scan is incomplete! บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit

:_v_ext_err
echo.
echo.
ECHO ษอออออออออออออออออออออออออออออออออออออออออออออออออออป
ECHO บ บ
ECHO บ Error extracting VIPRE. Scan is incomplete! บ
ECHO บ บ
ECHO บ บ
ECHO บ ...Closing... บ
ECHO บ บ
ECHO ศอออออออออออออออออออออออออออออออออออออออออออออออออออผ
echo.
echo.
pause
exit




vipre.inf

CODE
; z-vipre.inf
;
; PE Builder v3 plug-in INF file
;
; by Goofer for PE community
;
; My contact email: <goofer420@yahoo.com>

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Anti-Spyware: Vipre PC Rescue"
Enable=1

[WinntDirectories]
a="Programs\Vipre",2

[SourceDisksFiles]
vipre.txt=a,vipre.cmd,1
Files\Unzip\unzip.exe=a,,1
Files\Sys\sbbd.exe=2,,1
Files\Sys\SBREDrv.sys=4,,1
Files\Wget\wget.exe=2,,1
Files\App\sbrescue.exe=a,,1

[Append]
nu2menu.xml, vipre_nu2menu.xml

[Software.AddReg]
; Uncomment the next two lines if you use XPE:
;0x2,"Sherpya\XPEinit\Desktop","VIPRE PC Rescue","%SystemDrive%\Programs\Vipre\vipre.cmd||%SystemDrive%\Programs\Vipre\SBRescueScanner.exe"
;0x1,"Sherpya\XPEinit\Programs","Anti-spyware and rootkits\VIPRE PC Rescue","%SystemDrive%\Programs\Vipre\vipre.cmd||%SystemDrive%\Programs\Vipre\SBRescueScanner.exe"

; Thanks to Joshua from UBCD4win for the following reg settings! :-)
[SetupReg.AddReg]
0x4, "ControlSet001\Enum\Root\LEGACY_SBRE","NextInstance", 0x00000001
0x1, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","Service","SBRE"
0x4, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","Legacy", 0x00000001
0x4, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","ConfigFlags", 0x00000000
0x1, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","Class","LegacyDriver"
0x1, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","ClassGUID","{8ECC055D-047F-11D1-A537-0000F8753ED1}"
0x1, "ControlSet001\Enum\Root\LEGACY_SBRE\0000","DeviceDesc","SBRE"
0x4, "ControlSet001\Enum\Root\LEGACY_SBRE\0000\Control","*NewlyCreated*", 0x00000000
0x1, "ControlSet001\Enum\Root\LEGACY_SBRE\0000\Control","ActiveService","SBRE"

0x4, "ControlSet001\Services\SBRE","Type", 0x00000001
0x4, "ControlSet001\Services\SBRE","ErrorControl", 0x00000001
0x4, "ControlSet001\Services\SBRE","Start", 0x00000003
0x2, "ControlSet001\Services\SBRE","ImagePath","system32\drivers\SBREdrv.sys"
0x2, "ControlSet001\Services\SBRE","Group","Base"
0x1, "ControlSet001\Services\SBRE\Enum","0","Root\LEGACY_SBRE\0000"
0x4, "ControlSet001\Services\SBRE\Enum","Count", 0x00000001
0x4, "ControlSet001\Services\SBRE\Enum","NextInstance", 0x00000001




vipre_nu2menu.xml

CODE
<!-- Nu2Menu entry for Vipre PC Rescue -->
<NU2MENU>
    <MENU ID="Programs">
        <MITEM TYPE="POPUP" MENUID="Anti-Spyware Tools">Anti-Spyware Tools</MITEM>
    </MENU>
    <MENU ID="Anti-Spyware Tools">               
        <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\Vipre\vipre.cmd))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\Vipre\vipre.cmd">VIPRE PC Rescue</MITEM>
    </MENU>
</NU2MENU>





README!.txt


QUOTE
I named this plugin's .inf file "z-vipre.inf" so it will
be processed near the end. This is intended to insure
the files copied to \system32\* are not overwritten.

The program files, definitions, etc must be placed in
the same read/write capable directory. You may choose
to use the ramdrive or the host OS, or with very
little hacking you can use a USB drive.

There are no definition updates in VIPRE PC Rescue per
say. To update the definitions you need to update the
program itself. This plugin contains the build and
definitions are from Feb 07, 2009...

-You can update the program from within a running PE
environment. You are offered an option to update the
program before you scan. The plugin will check for an
Internet connection. If one is not found it will offer
the options of scanning with the stock VIPRE or to exit.
If you do have an Internet connection the program will
be downloaded into ramdisk or the hard dive OS and then
the plugin will extract files and finally cleanup after
itself.

-Wget for Windows (License: GNU) is included in this
plugin and is placed in \system32\. It is required to
enable updating of the program/definitions.

-Unzip (license: based upon BSD, freeware) is placed in
%programfiles%\Vipre and is necessary to extract the
program files from "sbrescue.exe" without running the
excutable file.

-UPDATE BEFORE BUILDING ISO:
Automated updating of the program before building the
iso is not possible on a vanilla Windows XP. You can
manually update VIPRE PC Rescue before building an
iso by downloading the file "sbrescue.exe" from
<http://go.sunbeltsoftware.com/?linkid=1211>. Put the
file "sbrescue.exe" into the plugin dir: Files\App.


-Goofer
goofer
Hey,

I just noticed the plugin I uploaded is missing a line of code. I'll reupload the fixed plugin now but it takes about a half hour...
goofer
Hey,

If anyone wants this plugin I just updated the link to the zip file. But I'll post it here too so people won't have to re-read my original post again:
http://www.megaupload.com/?d=NH0DU2AP smile.gif
LangleR
I wanted to say "Thank You" for creating this plugin. I'm downloading it now and will give it a try. It is behind now that GFI bought Sunbelt Software. Any chance you can update it and re-post? I'm going to attempt to update the files to the new file names and see if it works.

I've been looking for another great scanner after McAfee went and restricted their command-line scanner download.
I'm hoping this will suit my needs, I like Sunbelt's products. Hopefully GFI will carry the torch well.
skomp
QUOTE (LangleR @ Nov 17 2010, 05:56 AM) *
I've been looking for another great scanner after McAfee went and restricted their command-line scanner download.
I'm hoping this will suit my needs, I like Sunbelt's products. Hopefully GFI will carry the torch well.


check out these command line scanners:

EMSI
http://www.emsisoft.com/en/software/cmd/

Avira
http://www.avira.com/en/support-download-a...ir-professional


I use a vanilla BartPE and just copy these folders with the scanner (and updated defs) to the PE build.
Then I just launch them from the command line in Bart PE.

about as simple as it gets and they work great. I use (a licensed) McAfee CMD scanner the same way now.
Ed_P
Thanks skomp, good to know. thumbsup.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.