create clamav MD5 hash for autopsy
Being in the Need of doing offline hash matching, the below way will Show how to create an MD5 file with the MD5s from the clamav database. Below are the command I ussued to accomplish this task:
pip3 install cvdupdate
cvd config set --dbdir /var/www/html
cvd update
7z x daily.cvd
7z x main.cvd
tar -xf daily
tar -xf main
awk -F: '{print $1}' main.hdb >>clamav_md5.txt
awk -F: '{print $1}' main.hsb >>clamav_md5.txt
awk -F: '{print $1}' daily.hdb >>clamav_md5.txt
awk -F: '{print $1}' daily.hsb >>clamav_md5.txt