Syntax examples

This section contains examples of using the sample HTTP client application from the Linux command line. To run these example in Windows, call kavhttp_client.exe and add the -j option.

Use the default UNIX socket to scan one file by passing the file contents:

./kavhttp_client eicar.txt

Use the default UNIX socket to scan one file by passing the path to the file:

./kavhttp_client -f eicar.txt

Connect to Kaspersky Scan Engine over a TCP socket and scan two files by passing their contents:

./kavhttp_client -s 192.0.2.42:9999 eicar.txt test.sh

Connect to Kaspersky Scan Engine over a TCP socket and scan two files by passing their contents with a 10-second timeout:

./kavhttp_client -s 192.0.2.42:9999 -t 10000 eicar.txt test.sh

Connect to Kaspersky Scan Engine over a TCP socket and scan by passing the file path:

./kavhttp_client -f -s 192.0.2.42:9999 /mnt/to_scan/eicar.txt

Connect to Kaspersky Scan Engine over a TCP socket and scan a URL:

./kavhttp_client -s 192.0.2.42:9999 -u http://example.com

Connect to Kaspersky Scan Engine over a TCP socket and scan a URL with the IP of the host referred to by the URL:

user@computer:/opt/kaspersky/ScanEngine/bin# ./kavhttp_client -s 192.0.2.42:9999 -i 233.252.0.1 -u http://bug.qainfo.ru/TesT/Aphish_w

Connect to Kaspersky Scan Engine over a TCP socket and request the release date of the anti-virus database:

./kavhttp_client –b -s 192.0.2.42:9999

Page top