示例#1
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "php"
     self.long_name = "Checks security problems on php config file"
     self.type = "config"
     self.required_files = [
         '/etc/php5/apache2/php.ini', '/etc/php5/cli/php.ini',
         '/etc/php.ini'
     ]
示例#2
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "postgresql"
     self.long_name = "Check security problems on PostgreSQL configuration files"
     self.type = "config"
     self.required_files = [
         '/var/lib/pgsql/data/pg_hba.conf',
         '/var/lib/pgsql/data/postgresql.conf'
     ]
示例#3
0
    def __init__(self, options):
        MasterRule.__init__(self, options)
        self.short_name="apache"
        self.long_name="Checks security problems on Apache config file"
        self.type="config"
        self.required_files = ['/etc/httpd/conf/httpd.conf',
                           '/etc/apache2/conf.d/security',
                           '/etc/apache2/apache2.conf']

        options.add_option(
            '--apache_conf',
            action='append',
            dest='apache_conf',
            help='adds a apache configuration file to the list of files to' +
            ' analize'
        )
示例#4
0
    def __init__(self, options):
        MasterRule.__init__(self, options)
        self.short_name = "postgresql"
        self.long_name = "Check security problems on PostgreSQL configuration files"
        self.type = "config"

        self.required_files = [
            '/var/lib/pgsql/data/pg_hba.conf',
            '/var/lib/pgsql/data/postgresql.conf'
        ]

        # Find config files in /etc:
        pgconf = HnTool.modules.util.find_file('/etc/postgresql',
                                               'postgresql.conf')
        if pgconf: self.required_files.append(pgconf)
        del (pgconf)

        hbaconf = HnTool.modules.util.find_file('/etc/postgresql',
                                                'pg_hba.conf')
        if hbaconf: self.required_files.append(hbaconf)
        del (hbaconf)
示例#5
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "vsftpd"
     self.long_name = "Checks security problems on VsFTPd servers"
     self.type = "config"
     self.required_files = ['/etc/vsftpd.conf', '/etc/vsftpd/vsftpd.conf']
示例#6
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="vsftpd"
     self.long_name="Checks security problems on VsFTPd servers"
     self.type="config"
     self.required_files = ['/etc/vsftpd.conf', '/etc/vsftpd/vsftpd.conf']
示例#7
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "ssh"
     self.long_name = "Checks security problems on sshd config file"
     self.type = "config"
     self.required_files = ['/etc/ssh/sshd_config']
示例#8
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "proftpd"
     self.long_name = "Checks security problems on ProFTPd servers"
     self.type = "config"
示例#9
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "ports"
     self.long_name = "Checks for open ports"
     self.type = "config"
示例#10
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="system-wide"
     self.long_name="Checks security problems on system-wide configuration"
     self.type="config"
示例#11
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="remote_access"
     self.long_name="Checks for services with remote access allowed"
     self.type="config"
示例#12
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="ports"
     self.long_name="Checks for open ports"
     self.type="config"
示例#13
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="postgresql"
     self.long_name="Check security problems on PostgreSQL configuration files"
     self.type="config"
     self.required_files = ['/var/lib/pgsql/data/pg_hba.conf','/var/lib/pgsql/data/postgresql.conf']
示例#14
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "selinux"
     self.long_name = "Checks SELinux configuration"
     self.type = "config"
     self.required_files = ['/etc/selinux/config']
示例#15
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="ssh"
     self.long_name="Checks security problems on sshd config file"
     self.type="config"
     self.required_files = ['/etc/ssh/sshd_config', '/etc/sshd_config']
示例#16
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name = "authentication"
     self.long_name = "Checks users, groups and authentications"
     self.type = "config"
示例#17
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="authentication"
     self.long_name="Checks users, groups and authentications"
     self.type="config"
示例#18
0
文件: selinux.py 项目: hdoria/HnTool
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="selinux"
     self.long_name="Checks SELinux configuration"
     self.type="config"
     self.required_files = ['/etc/selinux/config']
示例#19
0
	def __init__(self, options):
		MasterRule.__init__(self, options)
		self.short_name="filesystems"
		self.long_name="Checks filesystems for security problems"
		self.type="config"
示例#20
0
文件: php.py 项目: hdoria/HnTool
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="php"
     self.long_name="Checks security problems on php config file"
     self.type="config"
     self.required_files = ['/etc/php5/apache2/php.ini', '/etc/php5/cli/php.ini', '/etc/php.ini']
示例#21
0
文件: proftpd.py 项目: hdoria/HnTool
	def __init__(self, options):
		MasterRule.__init__(self, options)
		self.short_name="proftpd"
		self.long_name="Checks security problems on ProFTPd servers"
		self.type="config"
示例#22
0
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="system-wide"
     self.long_name="Checks security problems on system-wide configuration"
     self.type="config"