![]() |
Virus scanner for attachments
Hello guys and gals,
I was seeking for virus scanner addon for vBulletin 3.6.x , i found out one product for 3.5.8 Jafo232's addon but it was using fprot which is needing license and not free. So i decided do make it for 3.6.x and using LibClamAV. It works fine and it's simple. Here you go. Thanks Jafo232 for his addon and idea and cheesegrits for his sample. What does this plugin do? This plugin let you have virus scanner for your forum's attachment managing. Installing Open your admin control panel and thenPlugin System -> Manage Products -> [Add/Import Product] -> Select 'product-vscan.xml' from your computer then press 'Import' This plugin uses ClamAV for scanning files there is two method available for scanning: First method requires LibClamAV support on your php settings. You can check it on phpinfo. If you do not have ClamAV , You can download it free at here and faster than second method.If you can not find php-clamav due to problems from its publisher server. You can download php-clamavlib-0.13-src.zip which i attached or you can download compiled version clamav.zip or if you are using Debian based system just type apt-get install php5-clamavlib on your shell. Second method uses clamscan binary of ClamAV does not require LibClamAV just installing ClamAV enough for it but its a bit slower than first method. Please feel free to ask any questions This may be copied, reproduced or published anywhere without my permission. Current version: 0.2a File name: plugin-vscan2.xml Change history: 0.2a: Added function for scanning file if php does not have ClamAV support this function uses clamscan and no need libclamav support just installing ClamAV enough for this somehow its a bit slower than php-clamav module, and installing php-clamav strongly suggested.Who is using 0.1a and having php-clamav on their system do not need update because there is no change for php-clamav support but if you want to feel better you can update it. 0.1a: Addon written based from Jafo232's old but changed scanning method for using libclamav |
So every member has to have ClamAV in able for this to work for them?
|
Quote:
|
Quote:
|
Please feel free to ask questions and please reply if you downloaded and tried it out let us know for it's bugs if you found and for your thoughts for improvement.
|
so if someone uploads an attachment it scans it for viruses and if it does it posts it in the box?
|
Quote:
|
great plugin
|
Will this cause a lot of server load when scanning for virus?
|
Quote:
so for uploads it wont make huge load. |
Installed. Thank you :)
|
Some virus alerts are harmless tho, so this would stop many useful attachments. wouldn't it be better for the virus scan alert to be attached to the post, and let the user decide if it is harmless or dangerous and a disclaimer next to the download button. That would be a very cool mod.
|
Well believe me ClamAV best free solution with It's new virus database.
For example it will never logs NetCat as a trojan/virus. It's just one example maybe many of them knows it NetCat is program like telnet. |
This may be useful. I'll bookmark this for later. :) Thanks.
|
Looks good, but I'm wondering if there is a better alternative to ClamAV?
|
Quote:
|
[high]* projectego clicks install! :D[/high]
|
Quote:
|
Thanks....
|
Quote:
|
Hi,
this looks like a great mod, but is there a way to scan the file without LibClamAV? |
That's what I'd like to know as well.
|
Sure we can do it but as i said i prefer ClamAV because it has extension for php otherwise i dont know any antivir with php extension so we need to make some system base codes for example you can download AVG 7.5 Free for linux and when you wanna scan with it code might be like this
Code:
$var=system("avgscan -arch $file"); |
Quote:
|
Quote:
|
Quote:
http://tr2.php.net/dl here is its usage and examples. Between did you ask them for installing? |
so when new viruses come out the virus checker will need to be updated - aint it easy just to download them and have a virus checker on your comp that auto scans any incoming files.
|
Quote:
|
bahisyeri, I really liked the idea. Congratulations, rated excellent.
|
Quote:
First, since this is part of the PHP installation, on my VPS I have a cron job running nightly to update everything that needs to be updated and ClamAV is one of those modules - it may add a few seconds to the updates if installed but that's all. Second, I think your forum members would be happier knowing that you are taking some steps to minimize the risk of downloading malware from your site. Third, it will help you to avoid flags that increasingly get attached to sites, e.g., McAfee's site warnings and Google's. I think this add-on is a great idea. :up: |
I'm a little confused, as well.
So if my host has installed LibClamAV on my server...all I have to do is Import this product and it will scan uploads and downloads as well as automatically updating itself with the latest virus definitions? Am I correct in assuming this? |
Quote:
When your host install LibClamAV to your host , they will install php extension for clamav and with this plugin we hook uploading process and checking the file uploading from user by clamav's extension. I know you are getting confused why its only 1.8kb coz all code we need for scan is already in extension :). We can make some codes for other antivirs too i show lil example in previous page but many of them do not have extension for php so we need to use commands like system which is denied by many shared hosts. |
Installed and just tested it with an upload. It gives me this error:
Quote:
|
looks pretty cool,but what about the anti-virus software which comes with hosting package.would it be any difference in thse two?
|
Quote:
Quote:
|
i have downloaded ClamAV now where do i upload it i am confused please help
|
Quote:
This explanation just adds to the confusion of your mod. No offense, but you might want to give a little more specifics in your mod...or just remove it entirely as not to consfuse the layman from screwing up their own forum. You have to admit, your grammar isn't the best English I've seen. I don't mean that in a racist way. I just think a little better sentence structure and grammar would help all the users interested in this mod. Along with a better explanation of how to install and use it would benefit the whole community...don't you think? |
Quote:
Ofcourse my English isn't the best one because i'm son of Turkish dad and Swedish mom anyway. You are right for mod instruction but as i said the functions of this mod using are came with LibClamAV and it's php extension which must be installed by adminstrators of your system. |
thnx alot
can I publish it in an arabic forums ? |
Quote:
Quote:
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|