Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Virus scanner for attachments Details »»
Virus scanner for attachments
Version: 0.2a, by bahisyeri bahisyeri is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 10-27-2007 Last Update: 05-18-2008 Installs: 30
Uses Plugins Template Edits
Re-useable Code  
No support by the author.

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 then
Plugin 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-30-2007, 10:41 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #33  
Old 10-31-2007, 03:36 AM
bahisyeri's Avatar
bahisyeri bahisyeri is offline
 
Join Date: Sep 2006
Location: TURKEY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Saviour View Post
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?
Hi,
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.
Reply With Quote
  #34  
Old 10-31-2007, 10:56 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and just tested it with an upload. It gives me this error:

Quote:
Fatal error: Call to undefined function: cl_scanfile_ex() in /home/{domain obscured}/public_html/{folder obscured}/newattachment.php(159) : eval()'d code on line 19
ClamAV is installed on the server.
Reply With Quote
  #35  
Old 10-31-2007, 11:53 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks pretty cool,but what about the anti-virus software which comes with hosting package.would it be any difference in thse two?
Reply With Quote
  #36  
Old 10-31-2007, 03:15 PM
bahisyeri's Avatar
bahisyeri bahisyeri is offline
 
Join Date: Sep 2006
Location: TURKEY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by djbaxter View Post
Installed and just tested it with an upload. It gives me this error:



ClamAV is installed on the server.
You also need install php extension of it. http://www.phpclamavlib.org/ as i said it uses LibClamAV

Quote:
Originally Posted by apiasto View Post
looks pretty cool,but what about the anti-virus software which comes with hosting package.would it be any difference in thse two?
Well for now this plugin just uses ClamAV.
Reply With Quote
  #37  
Old 11-02-2007, 10:47 PM
mystic10 mystic10 is offline
 
Join Date: Sep 2007
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have downloaded ClamAV now where do i upload it i am confused please help
Reply With Quote
  #38  
Old 11-02-2007, 11:34 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bahisyeri View Post
Hi,
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.

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?
Reply With Quote
  #39  
Old 11-03-2007, 06:28 PM
bahisyeri's Avatar
bahisyeri bahisyeri is offline
 
Join Date: Sep 2006
Location: TURKEY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Saviour View Post
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?
Hi,
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.
Reply With Quote
  #40  
Old 11-03-2007, 08:08 PM
semauae's Avatar
semauae semauae is offline
 
Join Date: Sep 2006
Location: UaE
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx alot

can I publish it in an arabic forums ?
Reply With Quote
  #41  
Old 11-03-2007, 10:57 PM
bahisyeri's Avatar
bahisyeri bahisyeri is offline
 
Join Date: Sep 2006
Location: TURKEY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by semauae View Post
thnx alot

can I publish it in an arabic forums ?
Sure, as i posted in 1st message
Quote:
This may be copied, reproduced or published anywhere without my permission.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12293 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete