コード例 #1
0
ファイル: php.py プロジェクト: skateforever/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'
     ]
コード例 #2
0
ファイル: postgresql.py プロジェクト: skateforever/HnTool
 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
ファイル: apache.py プロジェクト: skateforever/HnTool
    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
ファイル: vsftpd.py プロジェクト: ArthurAssuncao/HnTool
 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
ファイル: ssh.py プロジェクト: skateforever/HnTool
 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
ファイル: system-wide.py プロジェクト: hdoria/HnTool
 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
ファイル: ports.py プロジェクト: ArthurAssuncao/HnTool
 def __init__(self, options):
     MasterRule.__init__(self, options)
     self.short_name="ports"
     self.long_name="Checks for open ports"
     self.type="config"
コード例 #13
0
ファイル: postgresql.py プロジェクト: hdoria/HnTool
 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
ファイル: selinux.py プロジェクト: palfaiate/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']
コード例 #15
0
ファイル: ssh.py プロジェクト: ArthurAssuncao/HnTool
 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
ファイル: authentication.py プロジェクト: palfaiate/HnTool
 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
ファイル: authentication.py プロジェクト: hdoria/HnTool
 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
ファイル: filesystems.py プロジェクト: palfaiate/HnTool
	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
ファイル: system-wide.py プロジェクト: skateforever/HnTool
 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"