Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
uaclient /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
api
[ DIR ]
drwxr-xr-x
clouds
[ DIR ]
drwxr-xr-x
daemon
[ DIR ]
drwxr-xr-x
entitlements
[ DIR ]
drwxr-xr-x
files
[ DIR ]
drwxr-xr-x
jobs
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
actions.py
8.19
KB
-rw-r--r--
apt.py
25.74
KB
-rw-r--r--
apt_news.py
6.33
KB
-rw-r--r--
cli.py
64.22
KB
-rw-r--r--
config.py
24.5
KB
-rw-r--r--
contract.py
27.47
KB
-rw-r--r--
contract_data_types.py
9.38
KB
-rw-r--r--
data_types.py
10.3
KB
-rw-r--r--
defaults.py
2.46
KB
-rw-r--r--
event_logger.py
7.75
KB
-rw-r--r--
exceptions.py
13.56
KB
-rw-r--r--
gpg.py
813
B
-rw-r--r--
livepatch.py
11.03
KB
-rw-r--r--
lock.py
3.58
KB
-rw-r--r--
log.py
1.89
KB
-rw-r--r--
messages.py
38.47
KB
-rw-r--r--
pip.py
756
B
-rw-r--r--
security.py
48.75
KB
-rw-r--r--
security_status.py
24.19
KB
-rw-r--r--
serviceclient.py
6.22
KB
-rw-r--r--
snap.py
4.06
KB
-rw-r--r--
status.py
25.73
KB
-rw-r--r--
system.py
17.09
KB
-rw-r--r--
types.py
308
B
-rw-r--r--
util.py
20.3
KB
-rw-r--r--
version.py
2.81
KB
-rw-r--r--
yaml.py
642
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : log.py
import json import logging from collections import OrderedDict from typing import Any, Dict # noqa: F401 from uaclient import util class RedactionFilter(logging.Filter): """A logging filter to redact confidential info""" def filter(self, record: logging.LogRecord): record.msg = util.redact_sensitive_logs(str(record.msg)) return True class JsonArrayFormatter(logging.Formatter): """Json Array Formatter for our logging mechanism Custom made for Pro logging needs """ default_time_format = "%Y-%m-%dT%H:%M:%S" default_msec_format = "%s.%03d" required_fields = ( "asctime", "levelname", "name", "funcName", "lineno", "message", ) def format(self, record: logging.LogRecord) -> str: record.message = record.getMessage() record.asctime = self.formatTime(record) extra_message_dict = {} # type: Dict[str, Any] if record.exc_info: extra_message_dict["exc_info"] = self.formatException( record.exc_info ) if not extra_message_dict.get("exc_info") and record.exc_text: extra_message_dict["exc_info"] = record.exc_text if record.stack_info: extra_message_dict["stack_info"] = self.formatStack( record.stack_info ) extra = record.__dict__.get("extra") if extra and isinstance(extra, dict): extra_message_dict.update(extra) # is ordered to maintain order of fields in log output local_log_record = OrderedDict() # type: Dict[str, Any] # update the required fields in the order stated for field in self.required_fields: value = record.__dict__.get(field) local_log_record[field] = value local_log_record["extra"] = extra_message_dict return json.dumps(list(local_log_record.values()))
Close