Mark0's Forum

Software => Plugins => Topic started by: Nick222 on October 10, 2006, 05:49:21 AM

Title: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on October 10, 2006, 05:49:21 AM
Will be any new version The Bat ClamWin plugin?
Title: Re: The Bat ClamWin plugin
Post by: Mark0 on October 10, 2006, 01:40:23 PM
Sure. I hope to realease an updated version soon. The major difference is that it will be able to load the settings from an .INI file, to simplify things when used on a portable configuration.

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on March 30, 2007, 01:23:33 PM
Thank You for hew version ClamWin plugin! :)

But:
- On plugin`s page I read "TBClamWin will check the registry to find where ClamWin and his virus definitions DB are installed" - but in registry I see only path "C:\Program Files\ClamWin\bin" - other path-s are in "C:\ Program Files \ ClamWin \ bin \ ClamWin.conf";
- When plugin works - it make in TMP many folders "clamav-..." with files "main.cvd" and so on - is it normal?
- The Bat say "Message cannot be check for viruses" - are it meaning, that plugin don`t work normal?

What it is and how I can make this plugin to good work?

May be it must be placed in ClamWin folder?
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on April 04, 2007, 01:16:54 PM
Thank You for hew version ClamWin plugin! :)
Thanks!

Quote
- On plugin`s page I read "TBClamWin will check the registry to find where ClamWin and his virus definitions DB are installed" - but in registry I see only path "C:\Program Files\ClamWin\bin" - other path-s are in "C:\ Program Files \ ClamWin \ bin \ ClamWin.conf";
Yes, it will start from the ClamWin path, and then parse the configuration file to gather any other needed info.

Quote
- When plugin works - it make in TMP many folders "clamav-..." with files "main.cvd" and so on - is it normal?
Uhm... Nice question. I don't really know, never checked. I suppose that it's TheBat! that create those temprary files when processing the message / calling the defined AV plugin.

Quote
- The Bat say "Message cannot be check for viruses" - are it meaning, that plugin don`t work normal?
I'm afraid yes. Strange.
You may try to put the TBClamWin.bav file in the ApplicationData\TheBat! folder, under the My Documents structure.

Thanks for the feedback,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on April 07, 2007, 11:33:23 AM
You may try to put the TBClamWin.bav file in the ApplicationData\TheBat! folder, under the My Documents structure.

I attempt to put TBClamWin.bav file in ClamWin base folder, ClamWin folder, The Bat folder, Mail/Plugins folder - not working...

May be it because there is non-Latin symbols or spaces in path to TBClamWin.bav file?
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on April 07, 2007, 12:42:47 PM
May be it because there is non-Latin symbols or spaces in path to TBClamWin.bav file?
Uhm... That maybe the reason, in facts. I'll try to do some testing about this and report back.
In the mean time, maybe you can try to put the file in a "simple" path like \c\tbclamwin, just to check.

Thanks,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on April 07, 2007, 01:41:28 PM
For example:
C:\Download\TBClam\TBClamWin.bav
not working...

May be it is because non-Latin symbols are in path to Mail folder (to accounts folders)?
And non-Latin symbols are in accounts name?
For example:
C:\Docs\2)Кабинет и организация работы\Mail\Яндекс\Inbox\MESSAGES.TBB
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on April 07, 2007, 01:45:56 PM
Yes, that's probably the reason. Will check!

Thanks,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Ubqtous on April 16, 2007, 05:06:31 PM
The plugin does not work with the latest ClamWin version:

ClamWin: 0.90.1.1
The Bat!: 3.98.4 (Pro)
TBClamWin: 1.01

The following error is displayed:
Quote
The anti-virus has reported an error, the object cannot be checked for viruses


I do not have any non-Latin characters in my file paths for TBClamWin.bav or my mail folders.
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on April 17, 2007, 11:00:51 PM
OK, thanks for the note, will try to verify as soon as possible!
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Ubqtous on May 28, 2007, 07:09:06 PM
Just a follow-up:

Using The Bat! 3.99.3, I have had the following compatibility issues:

With ClamWin 0.90.1.1, TBClamWin 1.01 no longer works. The plug-in loads at start-up, but virus scans fail ("The anti-virus has reported an error, the object cannot be checked for viruses").

With ClamWin 0.90.2.1, TBClamWin 1.01 will not load at start-up due to a obsolete reference to a .conf file in the ClamWin directory.

Prior to the "-nodb" ClamWin releases, TBClamWin worked fine for me.
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on May 31, 2007, 10:14:47 PM
Sorry for the late reply.
I'm aware of the problem, I'm working about some changes that will hopefully fix this kind of issues in a more "definitive way"! :) Really!

Keep an eye on the News/Announcements (http://www.exe64.com/forum/index.php/board,2.0.html) section!

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Ubqtous on June 04, 2007, 06:58:01 PM
Thank you for the follow-up!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on July 15, 2007, 10:53:25 AM
I use portable version of The Bat! called Voyager. It has all features The Bat! Pro has, including use of plugins. Also there's portable version of ClamWin, that doesn't store it's settings in the registry. Because of that I cannot connect Voyager with ClamWin. Could you please implement manual path setting for TBClamWin in the next version? Thank you!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on July 18, 2007, 04:48:05 PM
On the wishlist!

Thanks for the suggestion,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on August 11, 2007, 08:49:06 PM
Check this: Updated: TBClamWin 1.03 (http://www.exe64.com/forum/index.php/topic,88.new.html)

Now it's possible to manually supply a configuration file and skip the registry need.
Let me know if it works for you, if you can.

Thanks,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on August 12, 2007, 12:11:09 AM
Hi!
Thanks for the new version!

Well, I tested it quickly and at least it says OK in the Status column, but I can't check if it really works, it doesn't create any logs, or I can't find them.

Several small tips:

1. My tbclamwin.conf looks like this:

[ClamAV]
clamscan = ..\..\..\Security\ClamWin\App\clamwin\bin\ClamWin.exe
database = ..\..\..\Security\ClamWin\Data\db\

i.e., you have to put relative paths in both lines.

2. Seems like the 'standard' ClamWin has the different file structure, because portable one doesn't have 'clamscan.exe' file. I put 'ClamWin.exe' there, in the first line.

How can I check does it really scans mail?
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on August 12, 2007, 12:18:50 AM
There should be no problems for the relative paths & the different EXE name. TBClamWin use what it get from the configuration files as is.

A quick way to check if it does scan & catch the viruses, is to enable the scanning of outgoing attachments, and then write a test message including the EICAR test file (http://en.wikipedia.org/wiki/EICAR_test_file). Just save the message to the out box, and if all it's working it should fire an appropriate warning.

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on August 12, 2007, 12:31:22 AM
I just made a simple test sending myself a letter with EICAR attachment as you've said.

With 'clamwin.exe' it said that ClamWin isn't configured. It's easy - that's why there's a launcher for it, without it clamwin doesn't know where to find it's base and all.

I changed the first line to look like

clamscan = ..\..\..\Security\ClamWin\ClamWinPortable.exe

And in result it just lauched and launched a lot of copies of ClamWin and Voyager told that antivirus is unable to scan the file.

So, unfortunately, it doesn't work as supposed to.
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on August 12, 2007, 12:46:16 AM
I think you need to point it to the ClamScan.exe in the bin folder.
Also, note that when it will be executed, the current path will probably be the one of the The Bat! executable, so be sure that the relative path is correct.

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on August 12, 2007, 01:33:10 AM
Sorry, I don't know how I missed clamscan.exe.
Well, now conf file looks like

[ClamAV]
clamscan = ..\..\..\Security\ClamWin\App\clamwin\bin\clamscan.exe
database = ..\..\..\Security\ClamWin\Data\db\

, plugin loads OK, but it doesn't check mail in fact - the letter successfully reaches the server and there it's declined by server's antivirus.
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on August 12, 2007, 02:00:52 AM
I would try to specify full paths in the .conf file, just to be sure.
Try also to remove the last "\" on the database key. TBClamWin use it as is one the .conf file, and maybe the ClamScan doesn't like it.

P.S.
I'm just about leaving for nearly a week; so, while I surely be able to read your feedback, I wont eventually be able to check / do much with the program itself.

Thanks,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on August 12, 2007, 02:12:23 AM
Specifying full path won't work, since, as you understand, the drive letter will be different on each computer and plugin won't work...

Anyway, I tested it with full paths and - it doesn't check :-(
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on August 12, 2007, 12:53:08 PM
But where is LOG-file?!?

Don`t work :(

Quote
c:\Program Files\The Bat!\Plugins\ClamWin\TBClamWin.bav
Quote
c:\Program Files\The Bat!\Plugins\ClamWin\tbclamwin.conf

[ClamAV]
logfile = C:\Program Files\The Bat!\Plugins\ClamWin\TBClamScanLog.txt
clamscan = C:\Program Files\ClamWin\bin\clamscan.exe
database = C:\Documents and Settings\All Users\.clamwin\db
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mancubus on August 13, 2007, 01:32:54 PM
It doesn't create any log files, as I see. And this option in tbclamwin.conf, "logfile =" doesn't work at all.
And though it says in Voyager's status line, when it receives a letter, that it's being checked by anti-virus, I can't check what it really does.
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on August 13, 2007, 01:52:01 PM
In The Bat! - account status line: "AntiVirus say - it cannot check letter bla-bla-bla" :(
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on August 13, 2007, 06:21:50 PM
AFAIK, there can be some issues with Voyager & the portable versions of ClamWin; since I haven't really had any occasion to play with them, I haven't done any real world tests, at the moment. Just added the ability to specify the needed parameters on the alternate config files, thinking that was enough to make them working. I will try to get them and play ASAP, but surely not before the end of the week.

As for normal / current versions of The Bat! & ClamWin, instead, I have done some tests in various configurations, and don't noted anything wrong. That obviously don't mean that I rule out the presence of any bug, off course.

I have to say that I tried to "rush out" a new release as soon as I found some spare time, since it was from enough time that some things needed to be fixed.

One thing that I will surely add is some logging functions, so in case of issues there will be some data to help pin point any problems.

I also plan to port the plugin to FreeBASIC, and then release it as Open Source.

Thanks,
Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: eneq on August 22, 2007, 09:27:48 PM
Hello Mark0!

I am setup "ClamWin antivirus plugin 1.03" and "ClamAV for Windows (Version 0.91.2)" from here http://w32.clamav.net/downloads/clamAV.msi and got some problems.

If I setup pure install ClamAV and DO NOT run freshclam - it's all fine:
!22.08.2007, 22:58:29: ANTIVIRUS - C:\12\worm.win32.lovesan.zip: Worm.Blaster.E FOUND

But if I run freshclam and get updates, then:
"AntiVirus say - it cannot check letter...blah-blah-blah"

clamscan.exe works fine with all version DB (old or new):
Quote
C:\12>"C:\Program Files\clamAV\clamscan.exe" worm.win32.lovesan.zip
worm.win32.lovesan.zip: Worm.Blaster.E FOUND

----------- SCAN SUMMARY -----------
Known viruses: 148231
Engine version: 0.91.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 11.005 sec (0 m 11 s)

I try to mix old/new main.cvd/daily.cvd and see, that problems with "main.cvd" only.


Work fine with (from http://w32.clamav.net/downloads/clamAV.msi): 
-- main.cvd - ClamAV-VDB:31 Dec 2006 13-09 +0100:42:83951:10:

Error with (fresh updated ):
-- main.cvd - ClamAV-VDB:20 Jul 2007 18-01 +0200:44:133163:20:
    main.cvd updated (version: 44, sigs: 133163, f-level: 20, builder: sven)


And I put:
logfile = C:\Program Files\The Bat!\avir\TBClamScanLog.txt
to conf file, but it's not work. :(

BTW: Mark0, thnx for with pluging :)

=eneq
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Nick222 on March 19, 2009, 09:02:56 AM
And what about new version? :)
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on March 19, 2009, 11:26:14 AM
Sorry but I haven't news about an update, yet.

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: zaphods2ndhead on July 22, 2009, 03:12:45 PM
THANKS FOR THIS PLUGIN!
It seems a very good Idea to integrate the Open-Source Anti-Virus solution into TheBat.

Its not working for me yet - tried around with TBClamWin.conf in different locations (next to ClamWin.conf, in the folter where the BAV is etc...) , even tried using " inside because my file-paths contain Spaces - Like that:

[ClamAV]
clamscan = "C:\Program Files (x86)\ClamWin\bin\clamscan.exe"
database = "C:\Users\All Users\.clamwin\db"

but no luck

I am using TB 4.2.6 on a Vista 64-Bit System.

I get the Message when installing:

"Unable to read ClamWin config file.
C:\Program Files (x86)\ClamWin\bin\ClamWin.conf"

IS there a fix?  Is there a new Version coming - would be great :)

cheers from Vienna!

z

Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: Mark0 on July 24, 2009, 01:23:44 AM
Thanks for your feedback and, I'm sorry to say, for your patience.
I still plan to have a new version available, but I can't say when!

Bye!
Title: Re: [TBClamWin] The Bat ClamWin plugin
Post by: zaphods2ndhead on July 27, 2009, 08:54:54 PM
Just in case you think of it when its ready, please send me a reminder-email to:

wystling

then the famous A.T-sign

aon.at

THANKS + CHEERS

z