Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
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 /
dotenv /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-11-03 12:21
__init__.py
1.27
KB
-rw-r--r--
2022-09-17 12:04
__main__.py
129
B
-rw-r--r--
2022-09-17 12:04
cli.py
5.26
KB
-rw-r--r--
2022-09-17 12:04
ipython.py
1.27
KB
-rw-r--r--
2022-09-17 12:04
main.py
11.65
KB
-rw-r--r--
2022-09-17 12:04
parser.py
5.17
KB
-rw-r--r--
2022-09-17 12:04
py.typed
26
B
-rw-r--r--
2022-09-17 12:04
variables.py
2.35
KB
-rw-r--r--
2022-09-17 12:04
version.py
23
B
-rw-r--r--
2022-09-17 12:04
Save
Rename
import re from abc import ABCMeta from typing import Iterator, Mapping, Optional, Pattern _posix_variable = re.compile( r""" \$\{ (?P<name>[^\}:]*) (?::- (?P<default>[^\}]*) )? \} """, re.VERBOSE, ) # type: Pattern[str] class Atom(): __metaclass__ = ABCMeta def __ne__(self, other: object) -> bool: result = self.__eq__(other) if result is NotImplemented: return NotImplemented return not result def resolve(self, env: Mapping[str, Optional[str]]) -> str: raise NotImplementedError class Literal(Atom): def __init__(self, value: str) -> None: self.value = value def __repr__(self) -> str: return "Literal(value={})".format(self.value) def __eq__(self, other: object) -> bool: if not isinstance(other, self.__class__): return NotImplemented return self.value == other.value def __hash__(self) -> int: return hash((self.__class__, self.value)) def resolve(self, env: Mapping[str, Optional[str]]) -> str: return self.value class Variable(Atom): def __init__(self, name: str, default: Optional[str]) -> None: self.name = name self.default = default def __repr__(self) -> str: return "Variable(name={}, default={})".format(self.name, self.default) def __eq__(self, other: object) -> bool: if not isinstance(other, self.__class__): return NotImplemented return (self.name, self.default) == (other.name, other.default) def __hash__(self) -> int: return hash((self.__class__, self.name, self.default)) def resolve(self, env: Mapping[str, Optional[str]]) -> str: default = self.default if self.default is not None else "" result = env.get(self.name, default) return result if result is not None else "" def parse_variables(value: str) -> Iterator[Atom]: cursor = 0 for match in _posix_variable.finditer(value): (start, end) = match.span() name = match.groupdict()["name"] default = match.groupdict()["default"] if start > cursor: yield Literal(value=value[cursor:start]) yield Variable(name=name, default=default) cursor = end length = len(value) if cursor < length: yield Literal(value=value[cursor:length])