Page 1 of 1
UBCD virus def update script errors
Posted: Mon Dec 07, 2009 8:37 am
by kcarney
I have noticed recently that the avira update script in ubcd/tools/win32/antivirus has not been working. Below is the result, I have verified that this is not an ACL issue. 'Everyone' has full control over all directories and files within my build directory.
Code: Select all
Resolving dlpro.antivir.com... 62.146.210.31, 62.146.210.32, 80.190.130.195, ...
Connecting to dlpro.antivir.com[62.146.210.31]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56,750,080 [application/x-iso9660-image]
100%[====================================>] 56,750,080 177.22K/s ETA 00:00
10:56:55 (206.86 KB/s) - `c:/UB/UBCD/ubcd-temp/avira/avira-20091207142605.iso' s
aved [56750080/56750080]
Download finished.
Updating 'Avira AntiVir Rescue System' files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Processing archive: c:\UB\UBCD\ubcd-temp\avira\avira-20091207142605.iso
Error: Can not create output directory \\\\boot\antivir\\
System error:
Access is denied.
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Processing archive: c:\UB\UBCD\ubcd-temp\avira\avira-20091207142605.iso
Error: Can not create output directory \\\\\\
System error:
Access is denied.
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\grep.exe: ./../../../boot/antivir
/isolinux.cfg: No such file or directory
avira.sh: line 85: rm: command not found
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/syslinux.cfg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/grub4dos.lst: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\grep.exe: ./../../../boot/antivir
/welcome.msg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../me
nus/syslinux/others.cfg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../me
nus/grub4dos/others.lst: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/grub4dos.lst: No such file or directory
avira.sh: line 98: rm: command not found
Updating is complete.
Press any key to continue . . .
Also, the clamav update script places the updated clamav-definitions.txz on the root of my drive and not in the appropriate location. ex. C:\pmagic\pmodules\clamav-definitions.txz should be C:\UB\UBCD\files\pmagic\pmodules\clamav-definitions.txz
Posted: Mon Dec 07, 2009 12:15 pm
by Icecube
Thanks for the report.
I only have Linux to test the scripts with.
The windows version of 7z doesn't seem to like paths like ./../../ after a argument like -o. The Windows port of Bash only seems to convert the paths without a argument parameter from Linux to Windows paths (replaces / with \).
Code: Select all
"$prg7Z" x -y -o'./../../../boot/antivir/' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" html isolinux.cfg licenses index.html initrd.gz license.txt vmlinuz welcome.msg
Try the following scripts and report back.
/ubcd/tools/linux/antivirus/avira.sh
Code: Select all
#!/bin/bash
#
# Made by Gert Hulselmans for Ultimate Boot CD
# http:/www.ultimatebootcd.com/
#
# Last time edited: 7 December 2009
#
# This script updates 'Avira AntiVir Rescue System' to the last version.
echo
echo "Update 'Avira AntiVir Rescue System' to the last version"
echo '________________________________________________________'
echo
echo
SCRIPTDIR=`dirname "${0}"`
cd "${SCRIPTDIR}"
ls '../../../../ubcd/tools/linux/antivirus/avira.sh' > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
if [ -z "$1" ]; then
WINDOWS='0'
else
WINDOWS='1'
fi
if [ "${PWD:2}" == '/ubcd/tools/linux/antivirus' ]; then
AVIRA_TEMPDIR="$1/ubcd-temp/avira"
else
AVIRA_TEMPDIR="${SCRIPTDIR}/../../../../../ubcd-temp/avira"
fi
mkdir -p "${AVIRA_TEMPDIR}"
if [ "$?" -eq "0" ]; then
cd "${AVIRA_TEMPDIR}"
AVIRA_TEMPDIR=`echo "${PWD}"`
cd "${SCRIPTDIR}"
if [ -f "${AVIRA_TEMPDIR}/version.txt" ]; then
OLDVERSION=`cat "${AVIRA_TEMPDIR}/version.txt"`
else
OLDVERSION='0'
fi
wget -O "${AVIRA_TEMPDIR}/avira-update.html" 'http://www.avira.com/en/support/support_downloads.html'
NEWVERSION=`grep -A 2 "Avira AntiVir Rescue System" "${AVIRA_TEMPDIR}/avira-update.html" | grep -m 1 -o "Version : [[:digit:]]*" | grep -o "[[:digit:]]*"`
if [ "$OLDVERSION" = "$NEWVERSION" ]; then
echo 'No update available.'
else
# Save IFS
SAVED_IFS=$IFS
# Poor man's 'which' command
prg7Z=''
IFS=:
for i in $PATH ; do
if [ -x "$i/7z" ] ; then
prg7Z="$i/7z"
break
fi
done
# Restore IFS
IFS=$SAVED_IFS
if [ -n "$prg7Z" ]; then
echo 'Newer version available.'
echo
echo "Start dowloading 'Avira AntiVir Rescue System' iso"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo
wget -O "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" http://dlpro.antivir.com/down/vdf/rescuecd/rescuecd.iso
echo
echo 'Download finished.'
echo
echo
echo "Updating 'Avira AntiVir Rescue System' files"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
if [ $WINDOWS -eq 0 ]; then
"$prg7Z" x -y -o'./../../../boot/antivir/' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" html isolinux.cfg licenses index.html initrd.gz license.txt vmlinuz welcome.msg
"$prg7Z" x -y -o'./../../../../' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" antivir
chmod a+x ./../../../../antivir/antivir
else
"$prg7Z" x -y -o'.\..\..\..\boot\antivir\' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" html isolinux.cfg licenses index.html initrd.gz license.txt vmlinuz welcome.msg
"$prg7Z" x -y -o'.\..\..\..\..\' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" antivir
fi
RAMDISK_SIZE=`grep -o -m1 "ramdisk_size=[[:digit:]]*" ./../../../boot/antivir/isolinux.cfg`
rm -f ./../../../boot/antivir/isolinux.cfg
sed -i -e "s/ramdisk_size=[[:digit:]]*/${RAMDISK_SIZE}/g" ./../../../boot/antivir/syslinux.cfg
sed -i -e "s/ramdisk_size=[[:digit:]]*/${RAMDISK_SIZE}/g" ./../../../boot/antivir/grub4dos.lst
VERSION_NAME=`grep -o -m1 "AVIRA AntiVir Rescue System.*[[:digit:]]" ./../../../boot/antivir/welcome.msg`
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../menus/syslinux/others.cfg
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../menus/grub4dos/others.lst
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../boot/antivir/grub4dos.lst
# Save the version number of the last downloaded version
echo "${NEWVERSION}" > "${AVIRA_TEMPDIR}/version.txt"
# Remove the old ISO
rm -f "${AVIRA_TEMPDIR}/avira-${OLDVERSION}.iso"
echo
echo 'Updating is complete.'
else
echo '7z was not found, install it and try again.'
echo 'Site p7zip: http://p7zip.sourceforge.net/'
fi
fi
else
echo "ERROR: Couldn't create directory '${SCRIPTDIR}/../../../../../ubcd-temp/avira/' for storing temporary files."
fi
else
echo "ERROR: avira.sh isn't run from inside the extracted UBCD directory:"
echo ' (./ubcd/tools/linux/antivirus/avira.sh)'
fi
echo
Also try this version of
/ubcd/tools/linux/antivirus/avira.sh (a bit different than the one above):
Code: Select all
#!/bin/bash
#
# Made by Gert Hulselmans for Ultimate Boot CD
# http:/www.ultimatebootcd.com/
#
# Last time edited: 7 December 2009
#
# This script updates 'Avira AntiVir Rescue System' to the last version.
echo
echo "Update 'Avira AntiVir Rescue System' to the last version"
echo '________________________________________________________'
echo
echo
SCRIPTDIR=`dirname "${0}"`
cd "${SCRIPTDIR}"
ls '../../../../ubcd/tools/linux/antivirus/avira.sh' > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
if [ -z "$1" ]; then
WINDOWS='0'
else
WINDOWS='1'
fi
if [ "${PWD:2}" == '/ubcd/tools/linux/antivirus' ]; then
AVIRA_TEMPDIR="$1/ubcd-temp/avira"
else
AVIRA_TEMPDIR="${SCRIPTDIR}/../../../../../ubcd-temp/avira"
fi
mkdir -p "${AVIRA_TEMPDIR}"
if [ "$?" -eq "0" ]; then
cd "${AVIRA_TEMPDIR}"
AVIRA_TEMPDIR=`echo "${PWD}"`
cd "${SCRIPTDIR}"
if [ -f "${AVIRA_TEMPDIR}/version.txt" ]; then
OLDVERSION=`cat "${AVIRA_TEMPDIR}/version.txt"`
else
OLDVERSION='0'
fi
wget -O "${AVIRA_TEMPDIR}/avira-update.html" 'http://www.avira.com/en/support/support_downloads.html'
NEWVERSION=`grep -A 2 "Avira AntiVir Rescue System" "${AVIRA_TEMPDIR}/avira-update.html" | grep -m 1 -o "Version : [[:digit:]]*" | grep -o "[[:digit:]]*"`
if [ "$OLDVERSION" = "$NEWVERSION" ]; then
echo 'No update available.'
else
# Save IFS
SAVED_IFS=$IFS
# Poor man's 'which' command
prg7Z=''
IFS=:
for i in $PATH ; do
if [ -x "$i/7z" ] ; then
prg7Z="$i/7z"
break
fi
done
# Restore IFS
IFS=$SAVED_IFS
if [ -n "$prg7Z" ]; then
echo 'Newer version available.'
echo
echo "Start dowloading 'Avira AntiVir Rescue System' iso"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo
wget -O "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" http://dlpro.antivir.com/down/vdf/rescuecd/rescuecd.iso
echo
echo 'Download finished.'
echo
echo
echo "Updating 'Avira AntiVir Rescue System' files"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
if [ $WINDOWS -eq 0 ]; then
"$prg7Z" x -y -o'./../../../boot/antivir/' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" html isolinux.cfg licenses index.html initrd.gz license.txt vmlinuz welcome.msg
"$prg7Z" x -y -o'./../../../../' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" antivir
chmod a+x ./../../../../antivir/antivir
else
"$prg7Z" x -y -o "./../../../boot/antivir/' "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" html isolinux.cfg licenses index.html initrd.gz license.txt vmlinuz welcome.msg
"$prg7Z" x -y -o "./../../../../" "${AVIRA_TEMPDIR}/avira-${NEWVERSION}.iso" antivir
fi
RAMDISK_SIZE=`grep -o -m1 "ramdisk_size=[[:digit:]]*" ./../../../boot/antivir/isolinux.cfg`
rm -f ./../../../boot/antivir/isolinux.cfg
sed -i -e "s/ramdisk_size=[[:digit:]]*/${RAMDISK_SIZE}/g" ./../../../boot/antivir/syslinux.cfg
sed -i -e "s/ramdisk_size=[[:digit:]]*/${RAMDISK_SIZE}/g" ./../../../boot/antivir/grub4dos.lst
VERSION_NAME=`grep -o -m1 "AVIRA AntiVir Rescue System.*[[:digit:]]" ./../../../boot/antivir/welcome.msg`
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../menus/syslinux/others.cfg
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../menus/grub4dos/others.lst
sed -i -e "s/AVIRA AntiVir Rescue System.*[[:digit:]]/${VERSION_NAME}/" ./../../../boot/antivir/grub4dos.lst
# Save the version number of the last downloaded version
echo "${NEWVERSION}" > "${AVIRA_TEMPDIR}/version.txt"
# Remove the old ISO
rm -f "${AVIRA_TEMPDIR}/avira-${OLDVERSION}.iso"
echo
echo 'Updating is complete.'
else
echo '7z was not found, install it and try again.'
echo 'Site p7zip: http://p7zip.sourceforge.net/'
fi
fi
else
echo "ERROR: Couldn't create directory '${SCRIPTDIR}/../../../../../ubcd-temp/avira/' for storing temporary files."
fi
else
echo "ERROR: avira.sh isn't run from inside the extracted UBCD directory:"
echo ' (./ubcd/tools/linux/antivirus/avira.sh)'
fi
echo
/ubcd/tools/linux/antivirus/clamav.sh
Code: Select all
#!/bin/bash
#
# Made by Gert Hulselmans for Ultimate Boot CD
# http:/www.ultimatebootcd.com/
#
# Last time edited: 7 December 2009
#
# This script updates the definition files of ClamAV to the last version.
echo
echo "Update definition files of ClamAV to the last version"
echo '_____________________________________________________'
echo
echo
SCRIPTDIR=`dirname "${0}"`
cd "${SCRIPTDIR}"
ls '../../../../ubcd/tools/linux/antivirus/clamav.sh' > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
if [ -z "$1" ]; then
WINDOWS='0'
XZ=xz
else
WINDOWS='1'
XZ=7z
fi
if [ "${PWD:2}" == '/ubcd/tools/linux/antivirus' ] && [ $WINDOWS -eq 1 ]; then
CLAMAV_TEMPDIR="$1/ubcd-temp/clamav"
else
CLAMAV_TEMPDIR="${SCRIPTDIR}/../../../../../ubcd-temp/clamav"
fi
mkdir -p "${CLAMAV_TEMPDIR}/definitions/root/clamav/"
if [ "$?" -eq "0" ]; then
cd "$CLAMAV_TEMPDIR"
CLAMAV_TEMPDIR=`echo "${PWD}"`
cd "${SCRIPTDIR}"
if [ -f "${CLAMAV_TEMPDIR}/clamav-update.html.old" ]; then
OLDVERSION_MAIN=`grep '<a href="http://db.local.clamav.net/main.cvd">main.cvd</a>' "${CLAMAV_TEMPDIR}/clamav-update.html.old"`
OLDVERSION_DAILY=`grep '<a href="http://db.local.clamav.net/daily.cvd">daily.cvd</a>' "${CLAMAV_TEMPDIR}/clamav-update.html.old"`
else
OLDVERSION_MAIN='notting'
OLDVERSION_DAILY='notting'
fi
wget -O "${CLAMAV_TEMPDIR}/clamav-update.html" 'http://www.clamav.net/download/cvd'
NEWVERSION_MAIN=`grep '<a href="http://db.local.clamav.net/main.cvd">main.cvd</a>' "${CLAMAV_TEMPDIR}/clamav-update.html"`
NEWVERSION_DAILY=`grep '<a href="http://db.local.clamav.net/daily.cvd">daily.cvd</a>' "${CLAMAV_TEMPDIR}/clamav-update.html"`
if [ "${OLDVERSION_DAILY}" = "${NEWVERSION_DAILY}" ]; then
echo 'No update available.'
else
# Save IFS
SAVED_IFS=$IFS
# Poor man's 'which' command
prgXZ=''
IFS=:
for i in $PATH ; do
if [ -x "$i/$XZ" ] ; then
prgXZ="$i/$XZ"
break
fi
done
# Restore IFS
IFS=$SAVED_IFS
if [ -n "$prgXZ" ]; then
if [ "${OLDVERSION_MAIN}" != "${NEWVERSION_MAIN}" ]; then
echo "Start downloading 'main.cvd' definition file"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo
wget -O "${CLAMAV_TEMPDIR}/definitions/root/clamav/main.cvd" 'http://db.local.clamav.net/main.cvd'
echo 'Download finished.'
echo
echo
fi
echo "Start downloading 'daily.cvd' definition file"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo
wget -O "${CLAMAV_TEMPDIR}/definitions/root/clamav/daily.cvd" 'http://db.local.clamav.net/daily.cvd'
echo
echo 'Download finished.'
echo
echo
# Remove the old 'clamav-definitions.txz' file
rm -f './../../../../pmagic/pmodules/clamav-definitions.txz'
echo "Make 'clamav-definitions.txz' file"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
# Compress, the definition files of ClamAV
if [ $WINDOWS -eq 0 ]; then
tar -cv -C "${CLAMAV_TEMPDIR}/definitions/" . | "$prgXZ" -z - > './../../../../pmagic/pmodules/clamav-definitions.txz'
else
"$prgXZ" a dummy -ttar -so "${CLAMAV_TEMPDIR}/definitions/*" | "$prgXZ" a '.\..\..\..\..\pmagic\pmodules\clamav-definitions.txz' -siclamav-definitions.tar
fi
# Rename 'clamav-update.html' to 'clamav-update.html.old', so the next time this script runs,
# $OLDVERSION_MAIN and $OLDVERSION_DAILY get the values of the last downloaded version.
mv -f "${CLAMAV_TEMPDIR}/clamav-update.html" "${CLAMAV_TEMPDIR}/clamav-update.html.old"
else
echo "$XZ was not found, install it and try again."
echo 'Site: http://tukaani.org/xz/'
fi
fi
else
echo "ERROR: Couldn't create directory '${SCRIPTDIR}/../../../../../ubcd-temp/clamav/definitions/root/clamav/' for storing temporary files."
fi
else
echo "ERROR: clamav.sh isn't run from inside the extracted UBCD directory:"
echo ' (./ubcd/tools/linux/antivirus/clamav.sh)'
fi
echo
/ubcd/tools/linux/antivirus/fprot.sh
Code: Select all
#!/bin/bash
#
# Made by Gert Hulselmans for Ultimate Boot CD
# http:/www.ultimatebootcd.com/
#
# Last time edited: 7 December 2009
#
# This script updates the definition files of F-Prot to the last version.
update()
{
# rm -f "${FPROT_TEMPDIR}/definitions/opt/f-prot/antivir.def"
# Get the link to the definition file
URL_UPDATE_SITE=`grep -m 1 -o srv[[:digit:]].directupdates.f-prot.net "${FPROT_TEMPDIR}/fprot-update-link.xml"`
URL_UPDATE_PATH=`grep -m 1 -o /files/defs/.*/antivir.def "${FPROT_TEMPDIR}/fprot-update-link.xml"`
echo "Start downloading the F-Prot definition file"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo
# Download antivir.def file
# wget -P "${FPROT_TEMPDIR}/definitions/opt/f-prot/" "${URL_UPDATE_SITE}${URL_UPDATE_PATH}"
echo
echo 'Download finished.'
echo
echo
# Remove the old 'fprot-definitions.txz' file
rm -f './../../../../pmagic/pmodules/fprot-definitions.txz'
echo "Make 'fprot-definitions.txz' file"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
# Compress, the definition file of F-Prot
if [ $WINDOWS -eq 0 ]; then
tar -cv -C "${FPROT_TEMPDIR}/definitions/" . | "$prgXZ" -z - > './../../../../pmagic/pmodules/fprot-definitions.txz'
else
"$prgXZ" a dummy -ttar -so "${FPROT_TEMPDIR}/definitions/*" | "$prgXZ" a '.\..\..\..\..\pmagic\pmodules\fprot-definitions.txz' -sifprot-definitions.tar
fi
mv -f "${FPROT_TEMPDIR}/fprot-update-link.xml" "${FPROT_TEMPDIR}/fprot-update-link.xml.old"
}
# Start of the script
echo
echo "Update definition file of F-Prot to the last version"
echo '____________________________________________________'
echo
echo
SCRIPTDIR=`dirname "${0}"`
cd "${SCRIPTDIR}"
ls '../../../../ubcd/tools/linux/antivirus/fprot.sh' > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
if [ -z "$1" ]; then
WINDOWS='0'
XZ=xz
else
WINDOWS='1'
=7z
fi
if [ "${PWD:2}" == '/ubcd/tools/linux/antivirus' ] && [ $WINDOWS -eq 1 ]; then
FPROT_TEMPDIR="$1/ubcd-temp/clamav"
else
FPROT_TEMPDIR="${SCRIPTDIR}/../../../../../ubcd-temp/clamav"
fi
mkdir -p "${SCRIPTDIR}/../../../../../ubcd-temp/fprot/definitions/opt/f-prot/"
if [ "$?" -eq "0" ]; then
FPROT_TEMPDIR=`cd "${SCRIPTDIR}/../../../../../ubcd-temp/fprot"; echo "${PWD}"`
cd "${SCRIPTDIR}"
# Save IFS
SAVED_IFS=$IFS
# Poor man's 'which' command
prgXZ=''
IFS=:
for i in $PATH ; do
if [ -x "$i/$XZ" ] ; then
prgXZ="$i/$XZ"
break
fi
done
# Restore IFS
IFS=$SAVED_IFS
if [ -n "$prgXZ" ]; then
# Remove 'fprot-update-link.xml' in case that it still exist.
rm -f "${FPROT_TEMPDIR}/fprot-update-link.xml"
# Get the file that contains the link to the last definition file
wget -O "${FPROT_TEMPDIR}/fprot-update-link.xml" 'http://directupdates.f-prot.net/cgi-bin/get_update_info?protocol=2&key=AFPXJ5KN83983257LJHG64S7NSTA6CABA2'
if [ -f "${FPROT_TEMPDIR}/fprot-update-link.xml.old" ]; then
#Compare the link to the definition file for the new and old 'fprot-update-link.xml'
URL_UPDATE_PATH_NEW=`grep -o /files/defs/.*/antivir.def "${FPROT_TEMPDIR}/fprot-update-link.xml"`
URL_UPDATE_PATH_OLD=`grep -o /files/defs/.*/antivir.def "${FPROT_TEMPDIR}/fprot-update-link.xml.old"`
if [ "$URL_UPDATE_PATH_NEW" = "$URL_UPDATE_PATH_OLD" ]; then
echo
echo "Antivirus definition file for F-Prot is already up to date."
else
update
fi
else
update
fi
else
echo "$XZ was not found, install it and try again."
echo 'Site: http://tukaani.org/xz/'
fi
else
echo "ERROR: Couldn't create directory '${SCRIPTDIR}/../../../../../ubcd-temp/fprot/' for storing temporary files."
fi
else
echo "ERROR: fprot.sh isn't run from inside the extracted UBCD directory:"
echo ' (./ubcd/tools/linux/antivirus/fprot.sh)'
fi
echo
Posted: Mon Dec 07, 2009 12:48 pm
by kcarney
Avira test script 1
Code: Select all
Update 'Avira AntiVir Rescue System' to the last version
________________________________________________________
avira.sh: line 45: cat: command not found
--15:37:45-- http://www.avira.com/en/support/support_downloads.html
=> `c:/UB/UBCD/ubcd-temp/avira/avira-update.html'
Resolving www.avira.com... 62.146.210.133, 80.190.154.30, 80.190.154.32, ...
Connecting to www.avira.com[62.146.210.133]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 35,274 110.06K/s
15:37:46 (110.06 KB/s) - `c:/UB/UBCD/ubcd-temp/avira/avira-update.html' saved [3
5274]
Newer version available.
Start dowloading 'Avira AntiVir Rescue System' iso
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--15:37:46-- http://dlpro.antivir.com/down/vdf/rescuecd/rescuecd.iso
=> `c:/UB/UBCD/ubcd-temp/avira/avira-20091207183533.iso'
Resolving dlpro.antivir.com... 62.146.210.32, 80.190.130.194, 80.190.130.195, ..
.
Connecting to dlpro.antivir.com[62.146.210.32]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56,756,224 [application/x-iso9660-image]
100%[====================================>] 56,756,224 186.70K/s ETA 00:00
15:41:56 (222.31 KB/s) - `c:/UB/UBCD/ubcd-temp/avira/avira-20091207183533.iso' s
aved [56756224/56756224]
Download finished.
Updating 'Avira AntiVir Rescue System' files
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Processing archive: c:\UB\UBCD\ubcd-temp\avira\avira-20091207183533.iso
Error: Can not create output directory \\\\boot\antivir\
System error:
Access is denied.
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Processing archive: c:\UB\UBCD\ubcd-temp\avira\avira-20091207183533.iso
Error: Can not create output directory \\\\\
System error:
Access is denied.
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\grep.exe: ./../../../boot/antivir
/isolinux.cfg: No such file or directory
avira.sh: line 98: rm: command not found
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/syslinux.cfg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/grub4dos.lst: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\grep.exe: ./../../../boot/antivir
/welcome.msg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../me
nus/syslinux/others.cfg: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../me
nus/grub4dos/others.lst: No such file or directory
C:\UB\UBCD\files\ubcd\tools\win32\unxutils\bin\sed.exe: can't read ./../../../bo
ot/antivir/grub4dos.lst: No such file or directory
avira.sh: line 111: rm: command not found
Updating is complete.
Press any key to continue . . .
Avira Test Script 2
Code: Select all
Update 'Avira AntiVir Rescue System' to the last version
________________________________________________________
avira.sh: line 124: unexpected EOF while looking for matching `"'
avira.sh: line 129: syntax error: unexpected end of file
Press any key to continue . . .
ClamAV Test Script
The result of this script is identical to the original, updated defs are created at C:\pmagic\pmodules\*
Code: Select all
Update definition files of ClamAV to the last version
_____________________________________________________
--15:47:59-- http://www.clamav.net/download/cvd
=> `c:/UB/UBCD/ubcd-temp/clamav/clamav-update.html'
Resolving www.clamav.net... 194.109.142.194
Connecting to www.clamav.net[194.109.142.194]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 11,611 --.--K/s
15:47:59 (104.03 KB/s) - `c:/UB/UBCD/ubcd-temp/clamav/clamav-update.html' saved
[11611]
Start downloading 'main.cvd' definition file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--15:47:59-- http://db.local.clamav.net/main.cvd
=> `c:/UB/UBCD/ubcd-temp/clamav/definitions/root/clamav/main.cvd'
Resolving db.local.clamav.net... 155.98.64.87, 194.47.250.218, 208.72.56.53, ...
Connecting to db.local.clamav.net[155.98.64.87]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21,253,696 [text/plain]
100%[====================================>] 21,253,696 150.12K/s ETA 00:00
15:49:02 (333.54 KB/s) - `c:/UB/UBCD/ubcd-temp/clamav/definitions/root/clamav/ma
in.cvd' saved [21253696/21253696]
Download finished.
Start downloading 'daily.cvd' definition file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--15:49:02-- http://db.local.clamav.net/daily.cvd
=> `c:/UB/UBCD/ubcd-temp/clamav/definitions/root/clamav/daily.cvd'
Resolving db.local.clamav.net... 81.173.192.234, 155.98.64.87, 194.47.250.218, .
..
Connecting to db.local.clamav.net[81.173.192.234]:80... failed: No such file or
directory.
Connecting to db.local.clamav.net[155.98.64.87]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,082,969 [text/plain]
100%[====================================>] 3,082,969 410.46K/s ETA 00:00
15:49:30 (437.99 KB/s) - `c:/UB/UBCD/ubcd-temp/clamav/definitions/root/clamav/da
ily.cvd' saved [3082969/3082969]
Download finished.
clamav.sh: line 98: rm: command not found
Make 'clamav-definitions.txz' file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Scanning
Creating archive stdout
7-Zip 9.07 beta Copyright (c) 1999-2009 Igor Pavlov 2009-08-29
Updating archive .\..\..\..\..\pmagic\pmodules\clamav-definitions.txz
Compressing clamav-definitions.tar 0%
Everything is Ok
Everything is Ok
Press any key to continue . . .
FProt Test Script
The original script I do not believe worked, never even saw an option within pmagic to run XFProt
Code: Select all
Update definition file of F-Prot to the last version
____________________________________________________
fprot.sh: line 67: =7z: command not found
fprot.sh: line 101: rm: command not found
--15:51:21-- http://directupdates.f-prot.net/cgi-bin/get_update_info?protocol=2
&key=AFPXJ5KN83983257LJHG64S7NSTA6CABA2
=> `c:/UB/UBCD/ubcd-temp/fprot/fprot-update-link.xml'
Resolving directupdates.f-prot.net... 84.40.30.93, 66.232.150.63
Connecting to directupdates.f-prot.net[84.40.30.93]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]
[ <=> ] 815 --.--K/s
15:51:21 (795.90 KB/s) - `c:/UB/UBCD/ubcd-temp/fprot/fprot-update-link.xml' save
d [815]
Start downloading the F-Prot definition file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Download finished.
fprot.sh: line 32: rm: command not found
Make 'fprot-definitions.txz' file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fprot.sh: line 41: /bin/: is a directory
fprot.sh: line 41: /bin/: is a directory
Press any key to continue . . .
Posted: Thu Dec 17, 2009 6:07 am
by kcarney
Icecube, have you had a chance to work on the scripts yet?
Posted: Thu Dec 17, 2009 12:45 pm
by Icecube
Not yet, sorry for the delay.
Posted: Fri Dec 18, 2009 7:14 am
by kcarney
No worries, it isn't critical in the least bit