How can check file when upload from FTP using pureftpd

xuancong6000

Verified User
Joined
Oct 12, 2012
Messages
79
This is my options.conf:
Code:
#PHP Settings
php1_release=5.4
php1_mode=php-fpm
php2_release=no
php2_mode=php-fpm
opcache=yes
htscanner=no
php_ini=no
php_timezone=Europe/London
php_ini_type=production
ioncube=yes
zend=yes
suhosin=yes
x_mail_header=yes

#MySQL Settings
mysql=5.1
mysql_inst=yes
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#WEB Server Settings
webserver=apache
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
secure_htaccess=no
harden_symlinks_patch=yes
use_hostname_for_alias=auto
redirect_host=server1.hosting-domain-pro.com
redirect_host_https=no

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
proftpd_uploadscan=no
pureftpd_uploadscan=yes
suhosin_php_uploadscan=yes

#Mail Settings
exim=yes
eximconf=yes
spamassassin=yes
dovecot=yes
pigeonhole=yes

#Jail Settings
jail=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=no
webalizer=yes

#CustomBuild Settings
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files2.directadmin.com

#Cronjob Settings
cron=no
cron_frequency=weekly
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes

#Expert Settings (!)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
new_suphp=no
old_apr_util=no

I had use this command:
Code:
cd /usr/local/directadmin/custombuild
./build clamav
freshclam
./build pureftpd
when I use FTP to upload demo one shell file(for example: c99.php from this http://r57.gen.tr/) but it don't scan and auto delete that shell file :(
Please help me how can I do now to scan virus file when upload one file thanks!!!
 
That should be enough to scan the files. Please upload that php file somewhere on the server and run:
Code:
/usr/local/bin/clamdscan --infected c99.php
 
I just want to see the output of that, because that's what FTPd is using to check the files. Without the output and attached file I could not help you, sorry.
 
Back
Top