[clamav-users] How to determine virus database version from behind proxy?

André Weidemann Andre.Weidemann at web.de
Fri Jul 10 06:23:37 UTC 2020


On 09.07.2020 15:51, Eric Tykwinski wrote:
> You could query using DoH:
> #curl -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=current.cvd.clamav.net&type=TXT'

Thank you very much for the quick answer. I had tried using doh-client 
btw, which did not work behind a proxy.

I ended up using python to get the string I needed.
That's the start of it:

#!/usr/bin/env python3
import requests

proxies = {
  "http": "http://10.10.10.10:8000",
  "https": "http://10.10.10.10:8000",
}
url='https://cloudflare-dns.com/dns-query?name=current.cvd.clamav.net&type=TXT'
headers = {'accept': 'application/dns-json'}

requ = requests.get(url, headers=headers, proxies=proxies)
workstring = requ.json()['Answer'][0]['data'].replace('"','')
print(workstring)

  André

>  >
>> -----Original Message-----
>> From: clamav-users [mailto:clamav-users-bounces at lists.clamav.net] On
>> Behalf Of André Weidemann
>> Sent: Thursday, July 09, 2020 9:45 AM
>> To: clamav-users at lists.clamav.net
>> Subject: [clamav-users] How to determine virus database version from behind
>> proxy?
>>
>> Hi,
>>
>> in my current working environment I do not have direct internet access,
>> nor is it possible to query public DNS servers.
>> Running a command like "host -t txt current.cvd.clamav.net" yields no
>> result.
>> The only way out is a proxy.
>> I still would like to figure out whether or not my local database is up
>> to date.
>> Can I retrieve the information contained in the DNS TXT record via a
>> http(s) source as well? If so, how?
>>
>> Thanks a lot in advance.
>>
>>    André
> 
> 
> 
> 
> _______________________________________________
> 
> clamav-users mailing list
> clamav-users at lists.clamav.net
> https://lists.clamav.net/mailman/listinfo/clamav-users
> 
> 
> Help us build a comprehensive ClamAV guide:
> https://github.com/vrtadmin/clamav-faq
> 
> http://www.clamav.net/contact.html#ml
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4769 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.clamav.net/pipermail/clamav-users/attachments/20200710/6e0ead89/attachment.bin>


More information about the clamav-users mailing list