Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
cloudinit /
net /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
38.7
KB
-rw-r--r--
2021-03-19 15:37
bsd.py
6.29
KB
-rw-r--r--
2021-03-19 15:37
cmdline.py
8.91
KB
-rw-r--r--
2021-03-19 15:37
dhcp.py
15.41
KB
-rw-r--r--
2021-03-19 15:37
eni.py
21.04
KB
-rw-r--r--
2021-03-19 15:37
freebsd.py
2.15
KB
-rw-r--r--
2021-03-19 15:37
netbsd.py
1.36
KB
-rw-r--r--
2021-03-19 15:37
netplan.py
15.83
KB
-rw-r--r--
2021-03-19 15:37
network_state.py
33.87
KB
-rw-r--r--
2021-03-19 15:37
openbsd.py
1.51
KB
-rw-r--r--
2021-03-19 15:37
renderer.py
1.87
KB
-rw-r--r--
2021-03-19 15:37
renderers.py
1.53
KB
-rw-r--r--
2021-03-19 15:37
sysconfig.py
39.85
KB
-rw-r--r--
2021-03-19 15:37
udev.py
1.38
KB
-rw-r--r--
2021-03-19 15:37
Save
Rename
# This file is part of cloud-init. See LICENSE file for license information. from cloudinit import log as logging from cloudinit import subp from cloudinit import util import cloudinit.net.bsd LOG = logging.getLogger(__name__) class Renderer(cloudinit.net.bsd.BSDRenderer): def write_config(self): for device_name, v in self.interface_configurations.items(): if_file = 'etc/hostname.{}'.format(device_name) fn = subp.target_path(self.target, if_file) if device_name in self.dhcp_interfaces(): content = 'dhcp\n' elif isinstance(v, dict): try: content = "inet {address} {netmask}\n".format( address=v['address'], netmask=v['netmask'] ) except KeyError: LOG.error( "Invalid static configuration for %s", device_name) util.write_file(fn, content) def start_services(self, run=False): if not self._postcmds: LOG.debug("openbsd generate postcmd disabled") return subp.subp(['sh', '/etc/netstart'], capture=True) def set_route(self, network, netmask, gateway): if network == '0.0.0.0': if_file = 'etc/mygate' fn = subp.target_path(self.target, if_file) content = gateway + '\n' util.write_file(fn, content) def available(target=None): return util.is_OpenBSD()