I found a way to update the f-prot definition files without using
fpupdate. So this update method also works on windows.
Go the following link:
http://directupdates.f-prot.net/cgi-bin/get_update_info?protocol=2&key=AFPXJ5KN83983257LJHG64S7NSTA6CABA2
For scripting you can use
Code:
wget -O fprot-update-link.xml "http://directupdates.f-prot.net/cgi-bin/get_update_info?protocol=2&key=AFPXJ5KN83983257LJHG64S7NSTA6CABA2"
The contents of the xml file (
fprot-update-link.xml if you use the wget command above):
Quote:
<?xml version="1.0" encoding="ISO-8859-1"?>
<response>
<return><code>0</code><desc>Valid key</desc></return>
<servers><item weight="10">srv4.directupdates.f-prot.net</item><item weight="10">srv4.directupdates.f-prot.net</item></servers>
<components><item type="deffile"><name>antivir.def</name><path>/files/defs/v.6/20081002-1202-d7b970dea7f3d1ad260d53b53dff9c1a/antivir.def</path><uniqid><item type="defid">20081002105095f12f85faa69596e3eb299ddfa83dbb</item><item type="md5">97b8b646de317718e5fe6fcc14e03ed1</item><item type="sha1">b42ecc20edef6ebe21873a69fcf141ee1d1628d5</item><item type="size">33407284</item></uniqid></item></components>
<programversion></programversion>
</response>
To download the new definition file concatenate the 2 green parts:
http://srv4.directupdates.f-prot.net/files/defs/v.6/20081002-1202-d7b970dea7f3d1ad260d53b53dff9c1a/antivir.defCode:
wget http://srv4.directupdates.f-prot.net/files/defs/v.6/20081002-1202-d7b970dea7f3d1ad260d53b53dff9c1a/antivir.def
Then you can can compress the files with 7z (will write this part later).
To download the last definition files for clamav, do:
Code:
wget http://db.local.clamav.net/main.cvd
wget http://db.local.clamav.net/daily.cvd
For linux I have this script:
Code:
#!/bin/sh
mkdir -p /tmp/clamav/usr/share/clamav/
echo -e "Start downloading the definition files for ClamAV:\n\n"
wget -P /tmp/clamav/usr/share/clamav/ http://db.local.clamav.net/daily.cvd
echo
wget -P /tmp/clamav/usr/share/clamav/ http://db.local.clamav.net/main.cvd
echo -e "\n\nMake clamav-definitions.7z ...\n"
# 7zip the definition files of clamav
7za a -mx=9 -ms=on './clamav-definitions.7z' '/tmp/clamav/*'
if [ $? = 0 ]; then
echo -e "\nYou can find the updated 'clamav-definitions.7z' at './clamav-definitions.7z'."
echo "Copy it to the /pmagic/pmodules/ directory of your usb thumb drive or to your hard drive."
read -s -n1
exit 0
else
echo -e "\nSomething went wrong while compressing the definition files."
read -s -n1
exit 1
fi