Jefims 0 Posted October 26, 2021 Share Posted October 26, 2021 Can i get eset odscan command line return value in php script? We are using Eset File Security v4 command line scaner in php script to get scan result at the moment: exec("/opt/eset/esets/sbin/esets_scan --clean-mode=none " . $fileToScan . " 2>&1", $output, $scanReturnCode); at it saves output in $scanReturnCode variable. By the way, if we try to use odscan from eset file security v8: exec("/opt/eset/efs/bin/odscan --scan --profile=\"@Smart scan\" --readonly /var/www/shared/cpprod.error.log 2>&1", $output, $scanReturnCode); It does not save output in $scanReturnCode variable. Link to comment Share on other sites More sharing options...
Jefims 0 Posted October 27, 2021 Author Share Posted October 27, 2021 Sorry, help is not longer needed. I just needed to use @In-depth scan profile to scan for eicar test file in archives. So: exec("/opt/eset/efs/bin/odscan --scan --profile=\"@In-depth scan\" --readonly /var/www/test/eicarcom2.zip 2>&1", $output, $scanReturnCode); is working like a charm! Maybe this will help someone🙂 Archive that I've tested can be found in attachments. Link to comment Share on other sites More sharing options...
Administrators Solution Marcos 4,704 Posted October 27, 2021 Administrators Solution Share Posted October 27, 2021 Ok, so the problem was that that scan profile you used (Smart scan) had scanning of archives disabled. Link to comment Share on other sites More sharing options...
Recommended Posts