Jump to content
igelskalar

Is there any working CLI-scanner for linux?

Recommended Posts

Hello there,

 

is there any working command line scanner which can be integrated in a running postfix/amavis configuration? I evaluated Mail Security für Linux but it obviously gets not longer updated anymore. Now I tried to give a chance to File Security für Linux, it comes with this odscan CLI-tool, but it is not reporting neither success nor any resulting virus status. There is also a integrated tool called "cls" in the /sbin folder of the installation directory, but this one obviously does not find its virus databases as it is looking for "em000_64.dat".

 

Best regards

 

Sascha

Share this post


Link to post
Share on other sites

Please read https://help.eset.com/efs/7/en-US/?scans.html

To run scan from a custom script and get an immediate response, use the /opt/eset/efs/sbin/cls/cls command.

Syntax: /opt/eset/efs/sbin/cls/cls [OPTIONS..] FILES..

Exit codes

Meaning

0

No threat found

1

Threat found and cleaned

10

Some files could not be scanned (may be threats)

50

Threat found

100

Error

 

Esets_scan in EFSL 4.5 should return the same exit codes.

Share this post


Link to post
Share on other sites

Thanks for your reply, but I get the following error message when executing /opt/eset/efs/sbin/cls/cls:

ECLS Command-line scanner, version 1.0.0.0, (C) 2017 ESET, spol. s r. o.
Scanner initialization failed.

And as I stated above, strace reveals that the scanner was looking for a file called em000_64.dat, but fails.

Best regards, Sascha

Share this post


Link to post
Share on other sites

Now I was able to find a solution by myself:
The installation created at symlink named /opt/eset/efs/sbin/cls/lib pointing into the void, but the right lib directory containing the virus definitions was found in /var/opt/eset/efs/lib.

So I recreated the symlink in /opt/eset/efs/sbin/cls/lib with

ln -sf /var/opt/eset/efs/lib /opt/eset/efs/sbin/cls/lib

and so got the cls CLI-Scanner working.

 

Best regards, Sascha

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...