[hntool] push by hugodoria - Updating vsftpd.py on 2010-09-15 01:04 GMT

0 views
Skip to first unread message

hnt...@googlecode.com

unread,
Sep 14, 2010, 9:04:38 PM9/14/10
to hnt...@googlegroups.com
Revision: fd6b416c4e
Author: Hugo Doria <hugo...@gmail.com>
Date: Tue Sep 14 18:03:46 2010
Log: Updating vsftpd.py
http://code.google.com/p/hntool/source/detail?r=fd6b416c4e

Modified:
/HnTool/modules/vsftpd.py

=======================================
--- /HnTool/modules/vsftpd.py Sun Aug 22 07:48:58 2010
+++ /HnTool/modules/vsftpd.py Tue Sep 14 18:03:46 2010
@@ -61,8 +61,8 @@
lines = self.vsftpdParser(vsftpd_conf)

# checking if VsFTPd is running on Standalone method
- if 'listen' in lines:
- if lines['listen'].upper() == 'YES':
+ if lines.has_Key('listen'):
+ if lines.get('listen').upper() == 'YES':
check_results['info'].append('Running on StandAlone')
else:
check_results['info'].append('Not running on StandAlone')
@@ -70,8 +70,8 @@
check_results['info'].append('Running on StandAlone')

# checking if VsFTPd is using the default port
- if 'listen_port' in lines:
- if int(lines['listen_port']) == 21:
+ if lines.has_key('listen_port'):
+ if int(lines.get('listen_port')) == 21:
check_results['info'].append('Using the default port (21)')
else:
check_results['info'].append('Not using the default port
(21)')
@@ -79,8 +79,8 @@
check_results['info'].append('Using the default port (21)')

# checking if chroot is enabled on VsFTPd
- if 'chroot_local_user' in lines:
- if lines['chroot_local_user'].upper() == 'YES':
+ if lines.has_key('chroot_local_user'):
+ if lines.get('chroot_local_user').upper() == 'YES':
check_results['ok'].append('Chrooting local users is
enabled')
else:
check_results['high'].append('Chrooting local users is
disabled')
@@ -88,8 +88,8 @@
check_results['high'].append('Chrooting local users is
disabled')

# checking if anonymous login is enabled
- if 'anonymous_enable' in lines:
- if lines['anonymous_enable'].upper() == 'YES':
+ if lines.has_key('anonymous_enable'):
+ if lines.get('anonymous_enable').upper() == 'YES':
check_results['info'].append('Anonymous login is allowed')
else:
check_results['info'].append('Anonymous login is not
allowed')
@@ -97,9 +97,9 @@
check_results['info'].append('Anonymous login is allowed')

# checking if ascii_download_enable or ascii_upload_enable is
enabled
- if 'ascii_download_enable' in lines or 'ascii_upload_enable' in
lines:
- if lines['ascii_download_enable'].upper() == 'YES' or \
- lines['ascii_upload_enable'].upper() == 'YES':
+ if lines.has_key('ascii_download_enable') or
lines.has_key('ascii_upload_enable'):
+ if lines.get('ascii_download_enable').upper() == 'YES' or \
+ lines.get('ascii_upload_enable').upper() == 'YES':
check_results['high'].append('ASCII mode data transfers is
allowed (DoS is possible)')
else:
check_results['ok'].append('ASCII mode data transfers is
not allowed')

Reply all
Reply to author
Forward
0 new messages