This section contains examples of using a sample HTTP client application from the command line.
Use the default UNIX socket to scan one file by passing the file contents:
user@computer:/opt/kaspersky/ScanEngine/bin# ./kavhttp_client eicar.txt |
Use the default UNIX socket to scan one file by passing the path to the file:
user@computer:/opt/kaspersky/ScanEngine/bin# ./kavhttp_client -f eicar.txt |
Connect to Kaspersky Scan Engine over a TCP socket and scan two files by passing their contents:
user@computer:/opt/kaspersky/ScanEngine/bin# ./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:
user@computer:/opt/kaspersky/ScanEngine/bin# ./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:
user@computer:/opt/kaspersky/ScanEngine/bin# ./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:
user@computer:/opt/kaspersky/ScanEngine/bin# ./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:
user@computer:/opt/kaspersky/ScanEngine/bin# ./kavhttp_client –b -s 192.0.2.42:9999 |