PDA

View Full Version : Administrative and Maintenance Tools - FractalizeR: VBulletin Antivirus


FractalizeR
08-06-2008, 10:00 PM
What does it do?

It scans every attachment any user uploads to your forum for viruses and allows to execute various actions if any virus is found. Hack requires PHP 5.x. and (depending on driver) PHP AV extensions or some antivirus software installed on PC

Points of interest:


Modular architecture (can be attached to almost any antivirus. Just a few lines of code needed to write a driver) Allows to exclude certain usergroups from check
Allows to exclude certain threats (viruses)
Can autoban user, that uploaded infected attachment
Can send PM notifications about virus to selected usergroups or users. Message text and options to send are customizable.
Can warn user, that uploaded virus by PM about his action. Message text and options to send are customizable.
Can change usergroup of the user, uploaded infected attachment
Can create a post in specific thread or a thread in specific forum with customized text about user and virus he tried to upload
Can execute arbitrary PHP code when the virus is found


How to install?


Unpack archive into forum root
Install *.xml file via Admin Control Panel (Product management)


Driver is bundled for phpLibClamAV extension which uses ClamAV (http://www.clamav.org) antivirus natively from PHP.
Installation instructions and sources are here: http://trickie.org/code/phplibclamav.php

For other antivirus engines you will need to write a driver or at least give me full docs on antivirus you use.

How to update to latest version?

Overwrite all files by new ones from latest zip and reimport product XML file via Admin Control Panel with "Allow Overwrite" option checked.

Version history:
1.0.2

Fixed a problem, where my mod caused error with uploading avatars, photos and pictures printing "Fatal error: Call to a member function initializationPassed() on a non-object in /public_html/includes/class_upload.php(381) : eval()'d code on line 4"


1.0.1

Detailed problem description is now available in case of initialization failure in devdebug combo (enable debug mode on forum to see error message at the very bottom of the attachment adding page in combo)

Deepdog009
08-07-2008, 05:58 PM
Groovy Baby...

Keep the ball rolling...>>>FractalizeR<<<

puertoblack2003
08-07-2008, 06:23 PM
in admin option to modify setting i cant get pass the usergroup setting everything else is not there.

FractalizeR
08-07-2008, 06:27 PM
in admin option to modify setting i cant get pass the usergroup setting everything else is not there.

Sorry, I don't understand. What is wrong?

Hostboard
08-07-2008, 06:29 PM
Very nice! Is there a method to test that ClamAV is properly installed/configured and interfacing properly with this?

puertoblack2003
08-07-2008, 06:34 PM
Sorry, I don't understand. What is wrong?


this image https://vborg.vbsupport.ru/external/2008/08/63.jpg

if you see where it say the usergroup settings well when i installed it to set it up half the page is missing after usergroup.

FractalizeR
08-07-2008, 10:42 PM
I fixed one bug (reuploaded archive) but it related to Windows. Hack requires PHP5. Dependency check added to xml.
Do you have PHP5 on your host?

FractalizeR
08-07-2008, 10:45 PM
Very nice! Is there a method to test that ClamAV is properly installed/configured and interfacing properly with this?

After hack installation, enable it in settings and try to upload any attachment. You will have an error, if something is bad and attachment will not be uploaded. To test for viruses download this standard antivirus testfile http://www.eicar.org/download/eicar.com.txt and try to upload it to forum. You will get an error saying, that file contains virus named EICAR-STANDARD-ANTIVIRUS-TEST-FILE or something like this.

Diesel,
08-08-2008, 12:03 AM
I enable and try to attach then i get this error.

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/ihaxxnet/public_html/forum/includes/fractalizer_vbav/class_vbav.php on line 47

Megatr0n
08-08-2008, 12:03 AM
Does this hack work for Linux servers?

FractalizeR
08-08-2008, 06:26 AM
Does this hack work for Linux servers?

Yes. I am using it on Linux server

I enable and try to attach then i get this error.

Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/ihaxxnet/public_html/forum/includes/fractalizer_vbav/class_vbav.php on line 47
Do you have PHP5?

taxick
08-08-2008, 09:34 AM
Are there a version for windows servers? (To apache)?????????

FractalizeR
08-08-2008, 11:30 AM
Are there a version for windows servers? (To apache)?????????

It should work on Windows also.

taxick
08-08-2008, 11:49 AM
It should work on Windows also.

But where can i findphpLibClamAV i are windows version???

Antek
08-08-2008, 11:51 AM
I uploaded plugin via ftp to my forum and aftet it board is death - I see blank page :( same after delete files, what's going on? :/

FractalizeR
08-08-2008, 12:32 PM
But where can i findphpLibClamAV i are windows version???

You can compile it, but I never compiled PHP extensions on Windows.

I uploaded plugin via ftp to my forum and aftet it board is death - I see blank page same after delete files, what's going on? :/ I don't know. Did you overwrite something? Disable all hooks and try to open forum again

TheInsaneManiac
08-08-2008, 01:26 PM
My forum members are really good at uploading compressed .rar and .zip, would this scan those as well?

FractalizeR
08-08-2008, 03:11 PM
Yes. Clam supports scanning of archives of most formats.

Hostboard
08-08-2008, 03:25 PM
I Get this when I try to upload the test file:

Upload Errorseicar.com.txt:
Cannot upload attachments! Antiviral engine initialization failed!


Is this working or ClanAV is not propery installed on my server?

nesta2006
08-09-2008, 01:23 AM
The following dependencies were not met:

1. This product is not compatible with version 4.4.7 of PHP. (Compatible starting with 5.0)

FractalizeR
08-09-2008, 08:05 AM
I Get this when I try to upload the test file:

Upload Errorseicar.com.txt:
Cannot upload attachments! Antiviral engine initialization failed!


Is this working or ClanAV is not propery installed on my server?

Either ClamAV is not installed, or phpLibClamAV extension is not installed. Or both ;)

2nesta2006:
PHP5 is required.

yahoooh
08-09-2008, 09:01 AM
thank u that what i ask before to support in others like hack

thanku very much
installed

yahoooh
08-09-2008, 10:14 AM
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/site55/public_html/includes/fractalizer_vbav/class_vbav.php on line 47

yahoooh
08-09-2008, 10:20 AM
also is there another version to use system function for those can not installed phplibclamav

yahoooh
08-09-2008, 02:14 PM
any help plz?

my server has php 5
but still the error appear
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/site55/public_html/includes/fractalizer_vbav/class_vbav.php on line 47

FReeSTER
08-09-2008, 05:26 PM
This a great mod, Thanik you

The problem I have is that it wont let me upload any files. How can I fix this?

WEBDosser
08-09-2008, 05:54 PM
tagged

BANDiT600
08-09-2008, 06:05 PM
https://vborg.vbsupport.ru/external/2012/01/11.gifTranslations
I know you have russian. Isn't it? ;)

yahoooh
08-09-2008, 08:18 PM
my server installed phplibclamav
and has clamav
and php is 5.2.6
vb 3.7
but still error apears when enable this product
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/site55/public_html/includes/fractalizer_vbav/class_vbav.php on line 47

FractalizeR
08-10-2008, 08:48 PM
Please reupload files to FTP using binary mode. There is nothing at that line in sources.

yahoooh
08-11-2008, 12:21 PM
now :
Cannot upload attachments! Antiviral engine initialization failed

but i install clamav and phplibclamav
how to fix it

FractalizeR
08-12-2008, 10:58 AM
Have you configured phpLibClamAV? Path to load AV bases from etc?

Diesel,
08-12-2008, 05:29 PM
Yes. I am using it on Linux server


Do you have PHP5?

Yeah.
5.2.6

FractalizeR
08-14-2008, 11:58 AM
The following selfTest is executed on AV engine initialization:
public function selfTest() {
//Checking all prerequisites
return (extension_loaded('clamav') and function_exists('clamav_open_db') and function_exists(
'clamav_scan_file') and function_exists('clamav_default_db'));
}

Also, can you enable debug mode and check if there any messages from fr_vbav in devdebug combo (at the very bottom of the page)?

FractalizeR
08-14-2008, 12:49 PM
Product updated. In case of antiviral engine initialization failure, a more detailed problem description is available in devdebug combo now (please enable debug mode to see it)

yahoooh
08-14-2008, 09:51 PM
installed tested
the error still there:
Cannot upload attachments! Antiviral engine initialization failed!

the message of bottom is: user is super moderator !

FractalizeR
08-15-2008, 07:26 AM
Please click on this combo to check for all errors there. "User is super moderator" is only one of a bunch of debug messages sent by VB.

Spicey LA
08-23-2008, 04:09 AM
can someone plz install this for me???? huge thanx in advance!

FractalizeR
08-24-2008, 08:22 AM
Do you mean installing only addon or installing phplibclamav + addon? The latter will require you to trust your root password to somebody doing installation because extension needs to be compiled and php.ini needs to be altered,

Spicey LA
08-24-2008, 08:28 PM
Do you mean installing only addon or installing phplibclamav + addon? The latter will require you to trust your root password to somebody doing installation because extension needs to be compiled and php.ini needs to be altered,

I want someone to install the whole thing includin the other require parts which is needed to make this mod work...

And i can change my password once it is done...

can someone please help me out here? thanx in advance!

FractalizeR
08-25-2008, 09:37 AM
Please contact me by PM.

Spicey LA
08-25-2008, 10:24 AM
do you want me to send you my ftp and admin login details via pm? i mean does this mean you will install this mod for me???

if so huge thanx in advance and i will message you immeadiately

FractalizeR
09-01-2008, 11:44 AM
I will need your server root password to install Clam and PHP extension. If you are willing to trust them to me, then please send me PM with SSH server login details.

chooky
12-25-2008, 12:16 PM
I have installed phplib (+php5lib) + clamav but I get only a blank page when I click on attachments :-(

tiekie
12-26-2008, 06:41 AM
wont this mod be hard on the server load?

FractalizeR
12-26-2008, 07:27 AM
I have installed phplib (+php5lib) + clamav but I get only a blank page when I click on attachments :-(
Check PHP error log.

wont this mod be hard on the server load?
Depending on forum and attachments size. Worth trying.

laurens800
12-29-2008, 08:43 PM
http://trickie.org/code/phplibclamav.php does not work :(

FractalizeR
12-30-2008, 06:01 AM
Please turn your brains on ;)
http://trickie.org/

sub_ubi
01-26-2009, 09:30 AM
This is a mod that should be built in. Any luck on 3.8?

yahoooh
07-01-2009, 01:59 AM
dows it work on 3.8.2

FractalizeR
07-01-2009, 05:16 AM
It should work.

huuquynh
07-03-2009, 11:54 AM
Please turn your brains on ;)
http://trickie.org/

This site is down now. :(

FractalizeR
07-04-2009, 07:19 AM
Yes :( Unfortunately, I have no copy on my machine :( Will try to search for one.

Skyline_GT
07-04-2009, 09:33 AM
Is it possible that the system adds a note to the post if the scanner finds a virus?

FractalizeR
07-05-2009, 07:44 AM
This site is down now. :(

I contacted author and attached the latest version of phplibclamav to modification files.

Is it possible that the system adds a note to the post if the scanner finds a virus?
I am not sure it is possible. At the time attachment is uploaded, post text exist only in user' s browser. It is not yet saved to DB. Also, if a virus is found, attachment is denied.

ErnestA
09-01-2009, 06:27 PM
Has anyone confirmed if this works with 3.8.x ??? I don't want to install it if it won't work with 3.8

yoyoman
02-07-2010, 10:08 PM
Same question. Does the mod work with v3.8 ?

FractalizeR
02-08-2010, 05:23 AM
Yes.

yahooooh
11-18-2010, 12:34 AM
i hope to update to vb4 i want to use it on my site , some users upload viruses and i want to prevent them from the begining

B@legar
01-23-2011, 06:05 AM
Same to mi, get blank attachments page.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/global.php(355) : eval()'d code on line 102

Whats wrong!