Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
cloudinit /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
analyze
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
cmd
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
config
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
distros
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
filters
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
handlers
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
mergers
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
net
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
reporting
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
sources
[ DIR ]
drwxr-xr-x
2026-01-24 08:06
__init__.py
0
B
-rw-r--r--
2023-12-04 11:47
apport.py
7.05
KB
-rw-r--r--
2023-12-04 11:47
atomic_helper.py
2.45
KB
-rw-r--r--
2023-12-04 11:47
cloud.py
3.22
KB
-rw-r--r--
2023-12-04 11:47
dmi.py
6.77
KB
-rw-r--r--
2023-12-04 11:47
event.py
2
KB
-rw-r--r--
2023-12-04 11:47
features.py
3.38
KB
-rw-r--r--
2023-12-04 11:47
gpg.py
4.28
KB
-rw-r--r--
2023-12-04 11:47
helpers.py
16.41
KB
-rw-r--r--
2023-12-04 11:47
importer.py
2.43
KB
-rw-r--r--
2023-12-04 11:47
log.py
5.47
KB
-rw-r--r--
2023-12-04 11:47
netinfo.py
22.97
KB
-rw-r--r--
2023-12-04 11:47
persistence.py
2.52
KB
-rw-r--r--
2023-12-04 11:47
registry.py
1022
B
-rw-r--r--
2023-12-04 11:47
safeyaml.py
10.28
KB
-rw-r--r--
2023-12-04 11:47
settings.py
2.02
KB
-rw-r--r--
2026-01-23 08:56
signal_handler.py
1.74
KB
-rw-r--r--
2023-12-04 11:47
simpletable.py
1.93
KB
-rw-r--r--
2023-12-04 11:47
ssh_util.py
22.28
KB
-rw-r--r--
2026-01-23 08:56
stages.py
38.88
KB
-rw-r--r--
2026-01-23 08:56
subp.py
13.23
KB
-rw-r--r--
2023-12-04 11:47
temp_utils.py
3.15
KB
-rw-r--r--
2023-12-04 11:47
templater.py
5.95
KB
-rw-r--r--
2023-12-04 11:47
type_utils.py
703
B
-rw-r--r--
2023-12-04 11:47
url_helper.py
27.32
KB
-rw-r--r--
2023-12-04 11:47
user_data.py
14.43
KB
-rw-r--r--
2023-12-04 11:47
util.py
96.43
KB
-rw-r--r--
2023-12-04 11:47
version.py
566
B
-rw-r--r--
2026-01-23 08:56
warnings.py
3.76
KB
-rw-r--r--
2023-12-04 11:47
Save
Rename
# This file is part of cloud-init. See LICENSE file for license information. import json import logging import os import stat import tempfile from base64 import b64decode, b64encode _DEF_PERMS = 0o644 LOG = logging.getLogger(__name__) def b64d(source): # Base64 decode some data, accepting bytes or unicode/str, and returning # str/unicode if the result is utf-8 compatible, otherwise returning bytes. decoded = b64decode(source) try: return decoded.decode("utf-8") except UnicodeDecodeError: return decoded def b64e(source): # Base64 encode some data, accepting bytes or unicode/str, and returning # str/unicode if the result is utf-8 compatible, otherwise returning bytes. if not isinstance(source, bytes): source = source.encode("utf-8") return b64encode(source).decode("utf-8") def write_file( filename, content, mode=_DEF_PERMS, omode="wb", preserve_mode=False ): # open filename in mode 'omode', write content, set permissions to 'mode' if preserve_mode: try: file_stat = os.stat(filename) mode = stat.S_IMODE(file_stat.st_mode) except OSError: pass tf = None try: tf = tempfile.NamedTemporaryFile( dir=os.path.dirname(filename), delete=False, mode=omode ) LOG.debug( "Atomically writing to file %s (via temporary file %s) - %s: [%o]" " %d bytes/chars", filename, tf.name, omode, mode, len(content), ) tf.write(content) tf.close() os.chmod(tf.name, mode) os.rename(tf.name, filename) except Exception as e: if tf is not None: os.unlink(tf.name) raise e def json_serialize_default(_obj): """Handler for types which aren't json serializable.""" try: return "ci-b64:{0}".format(b64e(_obj)) except AttributeError: return "Warning: redacted unserializable type {0}".format(type(_obj)) def json_dumps(data): """Return data in nicely formatted json.""" return json.dumps( data, indent=1, sort_keys=True, separators=(",", ": "), default=json_serialize_default, ) def write_json(filename, data, mode=_DEF_PERMS): # dump json representation of data to file filename. return write_file( filename, json_dumps(data) + "\n", omode="w", mode=mode, )