Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.45
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python313 /
lib64 /
python3.13 /
test /
support /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
_hypothesis_stubs
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
interpreters
[ DIR ]
drwxr-xr-x
2026-05-05 23:06
__init__.py
91.78
KB
-rw-r--r--
2026-03-26 17:22
ast_helper.py
1.79
KB
-rw-r--r--
2026-03-26 17:22
asynchat.py
11.33
KB
-rw-r--r--
2026-03-26 17:22
asyncore.py
19.9
KB
-rw-r--r--
2026-03-26 17:22
bytecode_helper.py
5.63
KB
-rw-r--r--
2026-03-26 17:22
hashlib_helper.py
1.86
KB
-rw-r--r--
2026-03-26 17:22
hypothesis_helper.py
2.04
KB
-rw-r--r--
2026-03-26 17:22
i18n_helper.py
1.98
KB
-rw-r--r--
2026-03-26 17:22
import_helper.py
10.44
KB
-rw-r--r--
2026-03-26 17:22
logging_helper.py
916
B
-rw-r--r--
2026-03-26 17:22
numbers.py
1.5
KB
-rw-r--r--
2026-03-26 17:22
os_helper.py
24.51
KB
-rw-r--r--
2026-03-26 17:22
pty_helper.py
3.22
KB
-rw-r--r--
2026-03-26 17:22
refleak_helper.py
165
B
-rw-r--r--
2026-03-26 17:22
script_helper.py
12.29
KB
-rw-r--r--
2026-03-26 17:22
smtpd.py
30.03
KB
-rwxr-xr-x
2026-03-26 17:22
socket_helper.py
13.46
KB
-rw-r--r--
2026-03-26 17:22
testcase.py
4.64
KB
-rw-r--r--
2026-03-26 17:22
threading_helper.py
7.86
KB
-rw-r--r--
2026-03-26 17:22
venv.py
2.3
KB
-rw-r--r--
2026-03-26 17:22
warnings_helper.py
6.69
KB
-rw-r--r--
2026-03-26 17:22
Save
Rename
""" Helper to run a script in a pseudo-terminal. """ import os import selectors import subprocess import sys from contextlib import ExitStack from errno import EIO from test.support.import_helper import import_module def run_pty(script, input=b"dummy input\r", env=None): pty = import_module('pty') output = bytearray() [master, slave] = pty.openpty() args = (sys.executable, '-c', script) # Isolate readline from personal init files by setting INPUTRC # to an empty file. See also GH-142353. if env is None: env = {**os.environ.copy(), "INPUTRC": os.devnull} else: env.setdefault("INPUTRC", os.devnull) proc = subprocess.Popen(args, stdin=slave, stdout=slave, stderr=slave, env=env) os.close(slave) with ExitStack() as cleanup: cleanup.enter_context(proc) def terminate(proc): try: proc.terminate() except ProcessLookupError: # Workaround for Open/Net BSD bug (Issue 16762) pass cleanup.callback(terminate, proc) cleanup.callback(os.close, master) # Avoid using DefaultSelector and PollSelector. Kqueue() does not # work with pseudo-terminals on OS X < 10.9 (Issue 20365) and Open # BSD (Issue 20667). Poll() does not work with OS X 10.6 or 10.4 # either (Issue 20472). Hopefully the file descriptor is low enough # to use with select(). sel = cleanup.enter_context(selectors.SelectSelector()) sel.register(master, selectors.EVENT_READ | selectors.EVENT_WRITE) os.set_blocking(master, False) while True: for [_, events] in sel.select(): if events & selectors.EVENT_READ: try: chunk = os.read(master, 0x10000) except OSError as err: # Linux raises EIO when slave is closed (Issue 5380) if err.errno != EIO: raise chunk = b"" if not chunk: return output output.extend(chunk) if events & selectors.EVENT_WRITE: try: input = input[os.write(master, input):] except OSError as err: # Apparently EIO means the slave was closed if err.errno != EIO: raise input = b"" # Stop writing if not input: sel.modify(master, selectors.EVENT_READ) ###################################################################### ## Fake stdin (for testing interactive debugging) ###################################################################### class FakeInput: """ A fake input stream for pdb's interactive debugger. Whenever a line is read, print it (to simulate the user typing it), and then return it. The set of lines to return is specified in the constructor; they should not have trailing newlines. """ def __init__(self, lines): self.lines = lines def readline(self): line = self.lines.pop(0) print(line) return line + '\n'