Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
cloudinit /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
1.4
KB
-rw-r--r--
2019-12-18 16:14
__init__.pyc
1.31
KB
-rw-r--r--
2022-10-18 11:04
__init__.pyo
1.31
KB
-rw-r--r--
2022-10-18 11:04
cc_apt_configure.py
32.8
KB
-rw-r--r--
2019-12-18 16:14
cc_apt_configure.pyc
30.2
KB
-rw-r--r--
2022-10-18 11:04
cc_apt_configure.pyo
30.2
KB
-rw-r--r--
2022-10-18 11:04
cc_apt_pipelining.py
2.44
KB
-rw-r--r--
2019-12-18 16:14
cc_apt_pipelining.pyc
2.48
KB
-rw-r--r--
2022-10-18 11:04
cc_apt_pipelining.pyo
2.48
KB
-rw-r--r--
2022-10-18 11:04
cc_bootcmd.py
3.5
KB
-rw-r--r--
2019-12-18 16:14
cc_bootcmd.pyc
3.02
KB
-rw-r--r--
2022-10-18 11:04
cc_bootcmd.pyo
3.02
KB
-rw-r--r--
2022-10-18 11:04
cc_byobu.py
3.1
KB
-rw-r--r--
2019-12-18 16:14
cc_byobu.pyc
3.09
KB
-rw-r--r--
2022-10-18 11:04
cc_byobu.pyo
3.09
KB
-rw-r--r--
2022-10-18 11:04
cc_ca_certs.py
4.09
KB
-rw-r--r--
2019-12-18 16:14
cc_ca_certs.pyc
4.1
KB
-rw-r--r--
2022-10-18 11:04
cc_ca_certs.pyo
4.1
KB
-rw-r--r--
2022-10-18 11:04
cc_chef.py
13.17
KB
-rw-r--r--
2022-10-18 11:03
cc_chef.pyc
10.79
KB
-rw-r--r--
2022-10-18 11:04
cc_chef.pyo
10.79
KB
-rw-r--r--
2022-10-18 11:04
cc_debug.py
3.08
KB
-rw-r--r--
2019-12-18 16:14
cc_debug.pyc
3.35
KB
-rw-r--r--
2022-10-18 11:04
cc_debug.pyo
3.35
KB
-rw-r--r--
2022-10-18 11:04
cc_disable_ec2_metadata.py
1.56
KB
-rw-r--r--
2019-12-18 16:14
cc_disable_ec2_metadata.pyc
1.57
KB
-rw-r--r--
2022-10-18 11:04
cc_disable_ec2_metadata.pyo
1.57
KB
-rw-r--r--
2022-10-18 11:04
cc_disk_setup.py
32.8
KB
-rw-r--r--
2019-12-18 16:14
cc_disk_setup.pyc
28.91
KB
-rw-r--r--
2022-10-18 11:04
cc_disk_setup.pyo
28.91
KB
-rw-r--r--
2022-10-18 11:04
cc_emit_upstart.py
2
KB
-rw-r--r--
2019-12-18 16:14
cc_emit_upstart.pyc
2.15
KB
-rw-r--r--
2022-10-18 11:04
cc_emit_upstart.pyo
2.15
KB
-rw-r--r--
2022-10-18 11:04
cc_fan.py
2.83
KB
-rw-r--r--
2019-12-18 16:14
cc_fan.pyc
3.09
KB
-rw-r--r--
2022-10-18 11:04
cc_fan.pyo
3.09
KB
-rw-r--r--
2022-10-18 11:04
cc_final_message.py
2.35
KB
-rw-r--r--
2019-12-18 16:14
cc_final_message.pyc
2.39
KB
-rw-r--r--
2022-10-18 11:04
cc_final_message.pyo
2.39
KB
-rw-r--r--
2022-10-18 11:04
cc_foo.py
2.07
KB
-rw-r--r--
2019-12-18 16:14
cc_foo.pyc
702
B
-rw-r--r--
2022-10-18 11:04
cc_foo.pyo
702
B
-rw-r--r--
2022-10-18 11:04
cc_growpart.py
11.51
KB
-rw-r--r--
2019-12-18 16:14
cc_growpart.pyc
11.12
KB
-rw-r--r--
2022-10-18 11:04
cc_growpart.pyo
11.12
KB
-rw-r--r--
2022-10-18 11:04
cc_grub_dpkg.py
2.87
KB
-rw-r--r--
2019-12-18 16:14
cc_grub_dpkg.pyc
2.63
KB
-rw-r--r--
2022-10-18 11:04
cc_grub_dpkg.pyo
2.63
KB
-rw-r--r--
2022-10-18 11:04
cc_keys_to_console.py
2.36
KB
-rw-r--r--
2019-12-18 16:14
cc_keys_to_console.pyc
2.39
KB
-rw-r--r--
2022-10-18 11:04
cc_keys_to_console.pyo
2.39
KB
-rw-r--r--
2022-10-18 11:04
cc_landscape.py
3.93
KB
-rw-r--r--
2019-12-18 16:14
cc_landscape.pyc
4.02
KB
-rw-r--r--
2022-10-18 11:04
cc_landscape.pyo
4.02
KB
-rw-r--r--
2022-10-18 11:04
cc_locale.py
1.16
KB
-rw-r--r--
2019-12-18 16:14
cc_locale.pyc
1.16
KB
-rw-r--r--
2022-10-18 11:04
cc_locale.pyo
1.16
KB
-rw-r--r--
2022-10-18 11:04
cc_lxd.py
10.27
KB
-rw-r--r--
2019-12-18 16:14
cc_lxd.pyc
8.33
KB
-rw-r--r--
2022-10-18 11:04
cc_lxd.pyo
8.33
KB
-rw-r--r--
2022-10-18 11:04
cc_mcollective.py
5.08
KB
-rw-r--r--
2019-12-18 16:14
cc_mcollective.pyc
3.8
KB
-rw-r--r--
2022-10-18 11:04
cc_mcollective.pyo
3.8
KB
-rw-r--r--
2022-10-18 11:04
cc_migrator.py
3.07
KB
-rw-r--r--
2019-12-18 16:14
cc_migrator.pyc
3.18
KB
-rw-r--r--
2022-10-18 11:04
cc_migrator.pyo
3.18
KB
-rw-r--r--
2022-10-18 11:04
cc_mounts.py
17.24
KB
-rw-r--r--
2022-10-18 11:03
cc_mounts.pyc
14.59
KB
-rw-r--r--
2022-10-18 11:04
cc_mounts.pyo
14.59
KB
-rw-r--r--
2022-10-18 11:04
cc_ntp.py
20.21
KB
-rw-r--r--
2022-10-18 11:03
cc_ntp.pyc
15.76
KB
-rw-r--r--
2022-10-18 11:04
cc_ntp.pyo
15.76
KB
-rw-r--r--
2022-10-18 11:04
cc_package_update_upgrade_install.py
4.11
KB
-rw-r--r--
2019-12-18 16:14
cc_package_update_upgrade_install.pyc
4.01
KB
-rw-r--r--
2022-10-18 11:04
cc_package_update_upgrade_install.pyo
4.01
KB
-rw-r--r--
2022-10-18 11:04
cc_phone_home.py
3.92
KB
-rw-r--r--
2019-12-18 16:14
cc_phone_home.pyc
3.28
KB
-rw-r--r--
2022-10-18 11:04
cc_phone_home.pyo
3.28
KB
-rw-r--r--
2022-10-18 11:04
cc_power_state_change.py
7.65
KB
-rw-r--r--
2019-12-18 16:14
cc_power_state_change.pyc
7.8
KB
-rw-r--r--
2022-10-18 11:04
cc_power_state_change.pyo
7.8
KB
-rw-r--r--
2022-10-18 11:04
cc_puppet.py
8.86
KB
-rw-r--r--
2019-12-18 16:14
cc_puppet.pyc
7.06
KB
-rw-r--r--
2022-10-18 11:04
cc_puppet.pyo
7.06
KB
-rw-r--r--
2022-10-18 11:04
cc_resizefs.py
10.79
KB
-rw-r--r--
2019-12-18 16:14
cc_resizefs.pyc
9.15
KB
-rw-r--r--
2022-10-18 11:04
cc_resizefs.pyo
9.15
KB
-rw-r--r--
2022-10-18 11:04
cc_resolv_conf.py
3.43
KB
-rw-r--r--
2019-12-18 16:14
cc_resolv_conf.pyc
3.44
KB
-rw-r--r--
2022-10-18 11:04
cc_resolv_conf.pyo
3.44
KB
-rw-r--r--
2022-10-18 11:04
cc_rh_subscription.py
15.65
KB
-rw-r--r--
2019-12-18 16:14
cc_rh_subscription.pyc
13.5
KB
-rw-r--r--
2022-10-18 11:04
cc_rh_subscription.pyo
13.5
KB
-rw-r--r--
2022-10-18 11:04
cc_rightscale_userdata.py
3.76
KB
-rw-r--r--
2019-12-18 16:14
cc_rightscale_userdata.pyc
2.82
KB
-rw-r--r--
2022-10-18 11:04
cc_rightscale_userdata.pyo
2.82
KB
-rw-r--r--
2022-10-18 11:04
cc_rsyslog.py
14.1
KB
-rw-r--r--
2019-12-18 16:14
cc_rsyslog.pyc
10.56
KB
-rw-r--r--
2022-10-18 11:04
cc_rsyslog.pyo
10.56
KB
-rw-r--r--
2022-10-18 11:04
cc_runcmd.py
3.11
KB
-rw-r--r--
2019-12-18 16:14
cc_runcmd.pyc
2.73
KB
-rw-r--r--
2022-10-18 11:04
cc_runcmd.pyo
2.73
KB
-rw-r--r--
2022-10-18 11:04
cc_salt_minion.py
4.66
KB
-rw-r--r--
2019-12-18 16:14
cc_salt_minion.pyc
3.78
KB
-rw-r--r--
2022-10-18 11:04
cc_salt_minion.pyo
3.78
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_boot.py
1.2
KB
-rw-r--r--
2019-12-18 16:14
cc_scripts_per_boot.pyc
1.2
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_boot.pyo
1.2
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_instance.py
1.38
KB
-rw-r--r--
2019-12-18 16:14
cc_scripts_per_instance.pyc
1.38
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_instance.pyo
1.38
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_once.py
1.31
KB
-rw-r--r--
2019-12-18 16:14
cc_scripts_per_once.pyc
1.31
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_per_once.pyo
1.31
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_user.py
1.42
KB
-rw-r--r--
2019-12-18 16:14
cc_scripts_user.pyc
1.38
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_user.pyo
1.38
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_vendor.py
1.38
KB
-rw-r--r--
2019-12-18 16:14
cc_scripts_vendor.pyc
1.46
KB
-rw-r--r--
2022-10-18 11:04
cc_scripts_vendor.pyo
1.46
KB
-rw-r--r--
2022-10-18 11:04
cc_seed_random.py
4.39
KB
-rw-r--r--
2019-12-18 16:14
cc_seed_random.pyc
4.53
KB
-rw-r--r--
2022-10-18 11:04
cc_seed_random.pyo
4.53
KB
-rw-r--r--
2022-10-18 11:04
cc_set_hostname.py
2.95
KB
-rw-r--r--
2019-12-18 16:14
cc_set_hostname.pyc
2.72
KB
-rw-r--r--
2022-10-18 11:04
cc_set_hostname.pyo
2.72
KB
-rw-r--r--
2022-10-18 11:04
cc_set_passwords.py
8.45
KB
-rw-r--r--
2022-10-18 11:03
cc_set_passwords.pyc
7.62
KB
-rw-r--r--
2022-10-18 11:04
cc_set_passwords.pyo
7.62
KB
-rw-r--r--
2022-10-18 11:04
cc_snap.py
8.11
KB
-rw-r--r--
2019-12-18 16:14
cc_snap.pyc
7.54
KB
-rw-r--r--
2022-10-18 11:04
cc_snap.pyo
7.54
KB
-rw-r--r--
2022-10-18 11:04
cc_snap_config.py
5.37
KB
-rw-r--r--
2019-12-18 16:14
cc_snap_config.pyc
5.03
KB
-rw-r--r--
2022-10-18 11:04
cc_snap_config.pyo
5.03
KB
-rw-r--r--
2022-10-18 11:04
cc_snappy.py
9.69
KB
-rw-r--r--
2019-12-18 16:14
cc_snappy.pyc
9.27
KB
-rw-r--r--
2022-10-18 11:04
cc_snappy.pyo
9.27
KB
-rw-r--r--
2022-10-18 11:04
cc_spacewalk.py
2.89
KB
-rw-r--r--
2019-12-18 16:14
cc_spacewalk.pyc
2.91
KB
-rw-r--r--
2022-10-18 11:04
cc_spacewalk.pyo
2.91
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh.py
10.59
KB
-rw-r--r--
2019-12-18 16:14
cc_ssh.pyc
9.11
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh.pyo
9.11
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh_authkey_fingerprints.py
3.43
KB
-rw-r--r--
2019-12-18 16:14
cc_ssh_authkey_fingerprints.pyc
3.94
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh_authkey_fingerprints.pyo
3.94
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh_import_id.py
2.88
KB
-rw-r--r--
2019-12-18 16:14
cc_ssh_import_id.pyc
2.72
KB
-rw-r--r--
2022-10-18 11:04
cc_ssh_import_id.pyo
2.72
KB
-rw-r--r--
2022-10-18 11:04
cc_timezone.py
1.15
KB
-rw-r--r--
2019-12-18 16:14
cc_timezone.pyc
1.15
KB
-rw-r--r--
2022-10-18 11:04
cc_timezone.pyo
1.15
KB
-rw-r--r--
2022-10-18 11:04
cc_ubuntu_advantage.py
6.08
KB
-rw-r--r--
2019-12-18 16:14
cc_ubuntu_advantage.pyc
6.12
KB
-rw-r--r--
2022-10-18 11:04
cc_ubuntu_advantage.pyo
6.12
KB
-rw-r--r--
2022-10-18 11:04
cc_ubuntu_drivers.py
5.66
KB
-rw-r--r--
2019-12-18 16:14
cc_ubuntu_drivers.pyc
4.63
KB
-rw-r--r--
2022-10-18 11:04
cc_ubuntu_drivers.pyo
4.63
KB
-rw-r--r--
2022-10-18 11:04
cc_update_etc_hosts.py
3.33
KB
-rw-r--r--
2019-12-18 16:14
cc_update_etc_hosts.pyc
2.99
KB
-rw-r--r--
2022-10-18 11:04
cc_update_etc_hosts.pyo
2.99
KB
-rw-r--r--
2022-10-18 11:04
cc_update_hostname.py
1.58
KB
-rw-r--r--
2019-12-18 16:14
cc_update_hostname.pyc
1.66
KB
-rw-r--r--
2022-10-18 11:04
cc_update_hostname.pyo
1.66
KB
-rw-r--r--
2022-10-18 11:04
cc_users_groups.py
7.06
KB
-rw-r--r--
2019-12-18 16:14
cc_users_groups.pyc
6.76
KB
-rw-r--r--
2022-10-18 11:04
cc_users_groups.pyo
6.76
KB
-rw-r--r--
2022-10-18 11:04
cc_write_files.py
4.95
KB
-rw-r--r--
2019-12-18 16:14
cc_write_files.pyc
5.13
KB
-rw-r--r--
2022-10-18 11:04
cc_write_files.pyo
5.13
KB
-rw-r--r--
2022-10-18 11:04
cc_yum_add_repo.py
4.3
KB
-rw-r--r--
2022-10-18 11:03
cc_yum_add_repo.pyc
3.91
KB
-rw-r--r--
2022-10-18 11:04
cc_yum_add_repo.pyo
3.91
KB
-rw-r--r--
2022-10-18 11:04
cc_zypper_add_repo.py
7.62
KB
-rw-r--r--
2019-12-18 16:14
cc_zypper_add_repo.pyc
7.12
KB
-rw-r--r--
2022-10-18 11:04
cc_zypper_add_repo.pyo
7.12
KB
-rw-r--r--
2022-10-18 11:04
schema.py
14.06
KB
-rw-r--r--
2019-12-18 16:14
schema.pyc
13.83
KB
-rw-r--r--
2022-10-18 11:04
schema.pyo
13.83
KB
-rw-r--r--
2022-10-18 11:04
Save
Rename
# Copyright (C) 2013 Yahoo! Inc. # Copyright (C) 2014 Canonical, Ltd # # Author: Joshua Harlow <harlowja@yahoo-inc.com> # Author: Dustin Kirkland <kirkland@ubuntu.com> # Author: Scott Moser <scott.moser@canonical.com> # # This file is part of cloud-init. See LICENSE file for license information. """ Seed Random ----------- **Summary:** provide random seed data Since all cloud instances started from the same image will produce very similar data when they are first booted, as they are all starting with the same seed for the kernel's entropy keyring. To avoid this, random seed data can be provided to the instance either as a string or by specifying a command to run to generate the data. Configuration for this module is under the ``random_seed`` config key. The ``file`` key specifies the path to write the data to, defaulting to ``/dev/urandom``. Data can be passed in directly with ``data``, and may optionally be specified in encoded form, with the encoding specified in ``encoding``. .. note:: when using a multiline value for ``data`` or specifying binary data, be sure to follow yaml syntax and use the ``|`` and ``!binary`` yaml format specifiers when appropriate Instead of specifying a data string, a command can be run to generate/collect the data to be written. The command should be specified as a list of args in the ``command`` key. If a command is specified that cannot be run, no error will be reported unless ``command_required`` is set to true. For example, to use ``pollinate`` to gather data from a remote entropy server and write it to ``/dev/urandom``, the following could be used:: random_seed: file: /dev/urandom command: ["pollinate", "--server=http://local.polinate.server"] command_required: true **Internal name:** ``cc_seed_random`` **Module frequency:** per instance **Supported distros:** all **Config keys**:: random_seed: file: <file> data: <random string> encoding: <raw/base64/b64/gzip/gz> command: [<cmd name>, <arg1>, <arg2>...] command_required: <true/false> """ import base64 import os from six import BytesIO from cloudinit import log as logging from cloudinit.settings import PER_INSTANCE from cloudinit import util frequency = PER_INSTANCE LOG = logging.getLogger(__name__) def _decode(data, encoding=None): if not data: return b'' if not encoding or encoding.lower() in ['raw']: return util.encode_text(data) elif encoding.lower() in ['base64', 'b64']: return base64.b64decode(data) elif encoding.lower() in ['gzip', 'gz']: return util.decomp_gzip(data, quiet=False, decode=None) else: raise IOError("Unknown random_seed encoding: %s" % (encoding)) def handle_random_seed_command(command, required, env=None): if not command and required: raise ValueError("no command found but required=true") elif not command: LOG.debug("no command provided") return cmd = command[0] if not util.which(cmd): if required: raise ValueError( "command '{cmd}' not found but required=true".format(cmd=cmd)) else: LOG.debug("command '%s' not found for seed_command", cmd) return util.subp(command, env=env, capture=False) def handle(name, cfg, cloud, log, _args): mycfg = cfg.get('random_seed', {}) seed_path = mycfg.get('file', '/dev/urandom') seed_data = mycfg.get('data', b'') seed_buf = BytesIO() if seed_data: seed_buf.write(_decode(seed_data, encoding=mycfg.get('encoding'))) # 'random_seed' is set up by Azure datasource, and comes already in # openstack meta_data.json metadata = cloud.datasource.metadata if metadata and 'random_seed' in metadata: seed_buf.write(util.encode_text(metadata['random_seed'])) seed_data = seed_buf.getvalue() if len(seed_data): log.debug("%s: adding %s bytes of random seed entropy to %s", name, len(seed_data), seed_path) util.append_file(seed_path, seed_data) command = mycfg.get('command', None) req = mycfg.get('command_required', False) try: env = os.environ.copy() env['RANDOM_SEED_FILE'] = seed_path handle_random_seed_command(command=command, required=req, env=env) except ValueError as e: log.warning("handling random command [%s] failed: %s", command, e) raise e # vi: ts=4 expandtab