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 /
handlers /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
9.02
KB
-rw-r--r--
2019-12-18 16:14
__init__.pyc
8.26
KB
-rw-r--r--
2022-10-18 11:04
__init__.pyo
8.26
KB
-rw-r--r--
2022-10-18 11:04
boot_hook.py
1.96
KB
-rw-r--r--
2019-12-18 16:14
boot_hook.pyc
2.21
KB
-rw-r--r--
2022-10-18 11:04
boot_hook.pyo
2.21
KB
-rw-r--r--
2022-10-18 11:04
cloud_config.py
5.25
KB
-rw-r--r--
2019-12-18 16:14
cloud_config.pyc
4.41
KB
-rw-r--r--
2022-10-18 11:04
cloud_config.pyo
4.41
KB
-rw-r--r--
2022-10-18 11:04
jinja_template.py
5.37
KB
-rw-r--r--
2019-12-18 16:14
jinja_template.pyc
5.43
KB
-rw-r--r--
2022-10-18 11:04
jinja_template.pyo
5.43
KB
-rw-r--r--
2022-10-18 11:04
shell_script.py
1.27
KB
-rw-r--r--
2019-12-18 16:14
shell_script.pyc
1.47
KB
-rw-r--r--
2022-10-18 11:04
shell_script.pyo
1.47
KB
-rw-r--r--
2022-10-18 11:04
upstart_job.py
3.21
KB
-rw-r--r--
2019-12-18 16:14
upstart_job.pyc
2.92
KB
-rw-r--r--
2022-10-18 11:04
upstart_job.pyo
2.92
KB
-rw-r--r--
2022-10-18 11:04
Save
Rename
# Copyright (C) 2012 Canonical Ltd. # Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # Copyright (C) 2012 Yahoo! Inc. # # Author: Scott Moser <scott.moser@canonical.com> # Author: Juerg Haefliger <juerg.haefliger@hp.com> # Author: Joshua Harlow <harlowja@yahoo-inc.com> # # This file is part of cloud-init. See LICENSE file for license information. import os from cloudinit import handlers from cloudinit import log as logging from cloudinit import util from cloudinit.settings import (PER_ALWAYS) LOG = logging.getLogger(__name__) class ShellScriptPartHandler(handlers.Handler): prefixes = ['#!'] def __init__(self, paths, **_kwargs): handlers.Handler.__init__(self, PER_ALWAYS) self.script_dir = paths.get_ipath_cur('scripts') if 'script_path' in _kwargs: self.script_dir = paths.get_ipath_cur(_kwargs['script_path']) def handle_part(self, data, ctype, filename, payload, frequency): if ctype in handlers.CONTENT_SIGNALS: # TODO(harlowja): maybe delete existing things here return filename = util.clean_filename(filename) payload = util.dos2unix(payload) path = os.path.join(self.script_dir, filename) util.write_file(path, payload, 0o700) # vi: ts=4 expandtab