For each scanned file, sample HTTP client outputs a scan result to the standard output.
The following is a sample output produced by the sample HTTP client:
Example: user@computer:/kavsdk/bin# ./client test.sh service.sh Server address: /tmp/.kavhttpd Network timeout: 2000 Scan mode: scanmemory Scan file: /kavsdk/bin/test.sh CLEAN Scan file: /kavsdk/bin/service.sh CLEAN Scan file: /kavsdk/bin/eicar.txt DETECT EICAR-Test-File |
In the example above, CLEAN and DETECT are scan results.
Two general types of scan results are possible:
Statuses
Status specifies whether a scanned file is considered clean or malicious.
Two statuses are possible:
CLEANScanned file is considered clean.
DETECTScanned file is considered malicious. This status is followed by the name of the detected thread.
Error codes
If an error occurred during the operation, scan result is an error code.
Following error codes are possible:
NON_SCANNEDSpecified file was not scanned, followed by the reason.
SERVER_ERRORAn error occurred in KAV HTTPD.
CONNECTION_CLOSEDConnection was closed by KAV HTTPD.
CLIENT_TIMEOUTOperation timed out. This happens when the client timeout was exceeded.
CONNECTION_FAILEDFailed to establish a connection to KAV HTTPD.