2020-12-12 12:12:11 -05:00
|
|
|
#!/bin/sh
|
2023-12-28 18:14:28 -05:00
|
|
|
#License: CC0
|
2021-07-21 13:44:19 -04:00
|
|
|
#Description: Hypatia conversion script for ClamAV databases (GPL-2.0)
|
2020-07-25 09:21:38 -04:00
|
|
|
|
2021-09-20 12:09:15 -04:00
|
|
|
#sudo -i freshclam
|
2022-12-15 06:14:20 -05:00
|
|
|
origDir="$PWD"
|
2020-07-25 09:21:38 -04:00
|
|
|
mkdir /tmp/mss
|
|
|
|
cd /tmp/mss
|
2021-09-20 12:09:15 -04:00
|
|
|
cp /var/lib/clamav/main.c*d .
|
2021-07-21 15:27:59 -04:00
|
|
|
cp /var/lib/clamav/daily.c*d .
|
2021-09-20 12:09:15 -04:00
|
|
|
sigtool -u main.c*d
|
2021-07-21 15:27:59 -04:00
|
|
|
sigtool -u daily.c*d
|
2024-04-11 21:04:55 -04:00
|
|
|
|
2024-05-09 08:05:52 -04:00
|
|
|
mv /tmp/mss/*.fp* "$origDir/exclusions/"
|
|
|
|
mv /tmp/mss/*.hsb "$origDir/raw/"
|
|
|
|
mv /tmp/mss/*.hdb "$origDir/raw/"
|
|
|
|
mv /tmp/mss/*.hdu "$origDir/raw/"
|
|
|
|
mv /tmp/mss/*.hsu "$origDir/raw/"
|