vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Virus scanner for attachments (https://vborg.vbsupport.ru/showthread.php?t=161345)

nfn 10-29-2007 03:57 PM

Hi,

this looks like a great mod, but is there a way to scan the file without LibClamAV?

Snake 10-29-2007 05:08 PM

That's what I'd like to know as well.

bahisyeri 10-29-2007 10:35 PM

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");
preg_match("/Virus found phrase/si", $var, $result);
if ($result) { code ... }


djbaxter 10-30-2007 01:10 PM

Quote:

Originally Posted by andrewy3k (Post 1370910)
Looks good, but I'm wondering if there is a better alternative to ClamAV?

What's wrong or lacking in ClamAV? I have it on my VPS (installed by default) and it's updated nightly. I don't know a whole lot about it, to be honest, so I'm wondering if you know of anything to suggest it's unreliable.

yoyoyoyo 10-30-2007 02:06 PM

Quote:

Originally Posted by bahisyeri (Post 1371062)
hm if you on shared host u can try use function dl and force loading module but talk with your host and they must have clamav on their module list coz every host is installing it for mail management

I checked with my host and they aren't offering it. Do I need shell access to use the dl function?

bahisyeri 10-30-2007 03:53 PM

Quote:

Originally Posted by yoyoyoyo (Post 1371961)
I checked with my host and they aren't offering it. Do I need shell access to use the dl function?

Nope you do not need but u need to check did they enable this function for you in php.ini,
http://tr2.php.net/dl here is its usage and examples.
Between did you ask them for installing?

lasto 10-30-2007 06:23 PM

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.

bahisyeri 10-30-2007 06:53 PM

Quote:

Originally Posted by lasto (Post 1372176)
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.

ClamAV has this option on virtualbox i recommend installing freshclam it works as a daemon and its doesnt eat so much resources actually it doesnt eat any :)

WhaLberg 10-30-2007 07:44 PM

bahisyeri, I really liked the idea. Congratulations, rated excellent.

djbaxter 10-30-2007 08:17 PM

Quote:

Originally Posted by lasto (Post 1372176)
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.

Not really.

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:


All times are GMT. The time now is 01:58 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
  • Page Generation 0.02190 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete