[clamav-users] clamdscan streaming over TCP

2023-06-10 Thread Olliver Schinagl via clamav-users

Hey all,

I'm trying to scan a files (email, so not huge load) over my_internal_  LAN.

I have a dockerized clamd running on hostA, and on hostB, I can run
clamdtop hostA, and get the expected output.

However, from within the same container that I just started clamdtop, I
can't do the same with clamdscan. There is no argument to specify the
host, or it is not in the `--help`. Also it is all hidden i n the
documentation, even though it suggests that this SHOULD be possible.

I'll look into the clamav-milter next, but still curious if this is
possible at all, while testing this.

Thanks,
Olliver

___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] clamdscan streaming over TCP

2023-06-10 Thread Marc
> 
> I'm trying to scan a files (email, so not huge load) over my_internal_
> LAN.
> 
> I have a dockerized clamd running on hostA, and on hostB, I can run
> clamdtop hostA, and get the expected output.
> 
> However, from within the same container that I just started clamdtop, I
> can't do the same with clamdscan. There is no argument to specify the
> host, or it is not in the `--help`. Also it is all hidden i n the
> documentation, even though it suggests that this SHOULD be possible.
> 
> I'll look into the clamav-milter next, but still curious if this is
> possible at all, while testing this.

Maybe this is helpfull, I have this in some old docs for client side testing.

cat < /tmp/clam-remote.conf
TCPSocket 3310
TCPAddr clamav.local
EOF

clamdscan -c /tmp/clam-remote.conf --fdpass --stream '/tmp/clam-remote.conf'
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] clamdscan streaming over TCP

2023-06-10 Thread Olliver Schinagl via clamav-users

On 10-06-2023 10:03, Marc wrote:

cat < /tmp/clam-remote.conf
TCPSocket 3310
TCPAddr clamav.local
EOF

clamdscan -c /tmp/clam-remote.conf --fdpass --stream '/tmp/clam-remote.conf'


Perfect, thanks!


I suppose I'll create a ticket for the missing feature (this is a bit 
cumbersome in the end of course). I briefly looked at how clamdtop does 
it; and there's quite a lot of (possible shareable) code there!!



Olliver

___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat


Re: [clamav-users] Fwd: Query re Windows and adding Clamav to the system "environmental variables"

2023-06-10 Thread Fergus Courtney via clamav-users
I managed to fix the issue. Under System -> Advanced System Settings ->
Environment Variables, I edited the 'Path' system environment variable and
added the following text at the beginning of the string, using a semi-colon
as the required separator: 'C:\Program Files\ClamAV'. Now, 'clamscan.exe'
and 'freshclam.exe' work as expected when I enter them into the Command
Prompt or the Command Line Interpreter. I had mistakenly added the text
'C:\Program Files\ClamAV' to the 'ComSpec' variable area, which caused my
issue. I apologize for wasting your time; I'm not the most proficient
Windows user or fan. I also thought about whether this functionality would
be useful to others and if it should be added to the online documentation
page at docs.clamav.net. Just a thought.

On Fri, 9 Jun 2023 at 17:37, Kenneth Porter  wrote:

> --On Friday, June 09, 2023 3:45 PM +0100 Fergus Courtney via clamav-users
>  wrote:
>
> > Is it possible to run "clanscan - r " and "freshclam" from a
> > command prompt without the need of going into the C:\Program Files\ClamAV
> > folder to start or run these .exe's?
> >
> > I tried adding the ";C:\Program Files\ClamAV" to my Windows 8.1 machine
> > set of system environmental variables, restarted the Command Prompt in
> > Admin mode and tried running "clamscan" and "freshclam" but nothing was
> > working. Also did a full restart and that didn't work either.
> >
> > I know I'm chancing my arm on it but if it works for other programs, I
> > guessed it may work for clamav .exe files also.
> >
> > See screenshot attached.
> >
> > Please note the program works as expected when I enter in to "C:\Program
> > Files\ClamAV".
>
> Commands run from a command prompt are searched for using the PATH
> environment variable. This is true of all the popular operating systems.
>
> 
>
> As a rule, when running a system program from a script or batch file, use
> the full path. Quoted for Windows, since MS sticks a space in "Program
> Files". That insures that a malicious program can't trick your script into
> running its own version of a program.
>
>
>
> ___
>
> Manage your clamav-users mailing list subscription / unsubscribe:
> https://lists.clamav.net/mailman/listinfo/clamav-users
>
>
> Help us build a comprehensive ClamAV guide:
> https://github.com/Cisco-Talos/clamav-documentation
>
> https://docs.clamav.net/#mailing-lists-and-chat
>
___

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat