I am trying to do a virus scan in a shared folder path using the ClamAV command line tool.
Command I am using is clamscan --recursive --stdout --remove //10.67.0.161/Docs/ENVTEST_MC Following is the output I am getting ----------- SCAN SUMMARY ----------- Known viruses: 8697864 Engine version: 1.4.0 Scanned directories: 0 Scanned files: 0 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 24.637 sec (0 m 24 s) Start Date: 2024:08:30 15:27:52 End Date: 2024:08:30 15:28:17 I am scanning virus file downloaded from https://www.eicar.org/download-anti-malware-testfile/ So Infected files should be 1. Same file, Same command work correctly in a absolute path. Command like following clamscan --recursive --stdout --remove D:\RD\Temp Any gues why this is not working. ________________________________ From: clamav-devel <clamav-devel-boun...@lists.clamav.net> on behalf of Micah Snyder (micasnyd) via clamav-devel <clamav-devel@lists.clamav.net> Sent: Thursday, September 5, 2024 8:51 PM To: ClamAV Development <clamav-devel@lists.clamav.net> Cc: Micah Snyder (micasnyd) <micas...@cisco.com> Subject: Re: [Clamav-devel] Virus scan result for comand line not working for relative paths Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, forward this message to s...@veryon.com. Please clarify what you're trying to do. The thing you pasted as a relative path.... what... is it? What is the command you're running for the scan? Micah Snyder (they/them) ClamAV Development Talos Cisco Systems, Inc. ________________________________ From: clamav-devel <clamav-devel-boun...@lists.clamav.net> on behalf of Hasitha Dewapriya via clamav-devel <clamav-devel@lists.clamav.net> Sent: Wednesday, September 4, 2024 2:14 AM To: clamav-devel@lists.clamav.net <clamav-devel@lists.clamav.net> Cc: Hasitha Dewapriya <hdewapr...@veryon.com> Subject: [Clamav-devel] Virus scan result for comand line not working for relative paths Hi, The following shows scan output for the same file in absolute path and a relative path in windows 11 environment. I want this to be work in relative path also. Please check Absolute path output (D:\RD\Temp) everything is OK. ----------- SCAN SUMMARY ----------- Known viruses: 8697864 Engine version: 1.4.0 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 24.018 sec (0 m 24 s) Start Date: 2024:08:30 15:18:48 End Date: 2024:08:30 15:19:12 Relative path (\\10.67.0.<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/>xxx\DB_Docs\ENVTEST_MC\<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/<file://\\10.67.0.<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/>xxx\DB_Docs\ENVTEST_MC\<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/<file://\\10.67.0.<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/>xxx\DB_Docs\ENVTEST_MC\<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/<file://\\10.67.0.<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/>xxx\DB_Docs\ENVTEST_MC\<https://outlook.office.com/local/path/file://10.67.0.161/DB_Docs/ENVTEST_MC/>>>) All required data is missing ----------- SCAN SUMMARY ----------- Known viruses: 8697864 Engine version: 1.4.0 Scanned directories: 0 Scanned files: 0 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 24.637 sec (0 m 24 s) Start Date: 2024:08:30 15:27:52 End Date: 2024:08:30 15:28:17 _______________________________________________ clamav-devel mailing list clamav-devel@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-devel Please submit your patches to our Github: https://github.com/Cisco-Talos/clamav-devel/pulls Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
_______________________________________________ clamav-devel mailing list clamav-devel@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-devel Please submit your patches to our Github: https://github.com/Cisco-Talos/clamav-devel/pulls Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml