Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
web-monitoring-tool /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-09-04 11:33
service
[ DIR ]
drwxr-xr-x
2026-09-04 11:33
templates
[ DIR ]
drwxr-xr-x
2026-09-04 11:33
wmtbin
[ DIR ]
drwxr-xr-x
2026-09-04 11:33
cron_control.py
16.04
KB
-rwxr-xr-x
2026-07-07 15:03
daemon_control.py
4.66
KB
-rwxr-xr-x
2026-07-07 15:03
get_domains.py
2.52
KB
-rwxr-xr-x
2026-07-07 15:03
reporter.py
8.46
KB
-rwxr-xr-x
2026-07-07 15:03
sentry.py
2.1
KB
-rwxr-xr-x
2026-07-07 15:03
version.py
386
B
-rwxr-xr-x
2026-07-07 15:03
Save
Rename
#!/opt/cloudlinux/venv/bin/python3 -bb # coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2020 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT # import csv import os import urllib.parse from clcommon import cpapi from sentry import init_wmt_sentry_client, setup_logger domains_path = "/var/lve/wmt/domains.csv" def write_domains(): logger = setup_logger('write_domains') try: fd = os.open(domains_path, os.O_WRONLY | os.O_CREAT | os.O_TRUNC | os.O_NOFOLLOW, 0o600) # Bugbot e2ae96c4: O_CREAT mode only applies on creation; chmod # ensures pre-existing files (mode 0644 from before this fix) get # the same restriction. Bugbot 22d06866: if fdopen fails, the # raw fd would leak — wrap and os.close on failure before re-raise. try: os.fchmod(fd, 0o600) csvfile = os.fdopen(fd, 'w', newline='') except Exception: os.close(fd) raise with csvfile: writer = csv.writer(csvfile) if cpapi.CP_NAME == cpapi.PLESK_NAME: users = [_cpinfo[0] for _cpinfo in cpapi.cpinfo(keyls=('cplogin',))] else: users = cpapi.cpusers() if not users: return domain_set = set() for user in users: try: for domain, _ in cpapi.userdomains(user): # Convert domain name to http://www.domain.com format # https://stackoverflow.com/questions/21659044/how-can-i-prepend-http-to-a-url-if-it-doesnt-begin-with-http p = urllib.parse.urlparse(domain, 'http') netloc = p.netloc or p.path path = p.path if p.netloc else '' # Uncomment for http only # p = urllib.parse.ParseResult('http', netloc, path, *p[3:]) p = urllib.parse.ParseResult(p.scheme, netloc, path, *p[3:]) url = p.geturl() if url not in domain_set: domain_set.add(url) writer.writerow([url]) except Exception as e: logger.exception(e) except Exception as e: logger.exception(e) if __name__ == "__main__": # execute only if run as a script init_wmt_sentry_client() write_domains()