Linux premium180.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
LiteSpeed
: 162.0.209.168 | : 216.73.216.187
Cant Read [ /etc/named.conf ]
8.3.30
nortrmdp
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
opt /
alt /
python313 /
lib64 /
python3.13 /
_pyrepl /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
925
B
-rw-r--r--
__main__.py
422
B
-rw-r--r--
_minimal_curses.py
1.8
KB
-rw-r--r--
_threading_handler.py
2.12
KB
-rw-r--r--
base_eventqueue.py
3.75
KB
-rw-r--r--
commands.py
12.01
KB
-rw-r--r--
completing_reader.py
9.81
KB
-rw-r--r--
console.py
6.71
KB
-rw-r--r--
curses.py
1.21
KB
-rw-r--r--
fancy_termios.py
2.51
KB
-rw-r--r--
historical_reader.py
12.93
KB
-rw-r--r--
input.py
3.69
KB
-rw-r--r--
keymap.py
6.31
KB
-rw-r--r--
main.py
1.89
KB
-rw-r--r--
mypy.ini
870
B
-rw-r--r--
pager.py
5.68
KB
-rw-r--r--
reader.py
27.06
KB
-rw-r--r--
readline.py
19.75
KB
-rw-r--r--
simple_interact.py
5.66
KB
-rw-r--r--
trace.py
433
B
-rw-r--r--
types.py
354
B
-rw-r--r--
unix_console.py
26.09
KB
-rw-r--r--
unix_eventqueue.py
2.46
KB
-rw-r--r--
utils.py
2.39
KB
-rw-r--r--
windows_console.py
21.11
KB
-rw-r--r--
windows_eventqueue.py
991
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : simple_interact.py
# Copyright 2000-2010 Michael Hudson-Doyle <micahel@gmail.com> # Armin Rigo # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and # that both that copyright notice and this permission notice appear in # supporting documentation. # # THE AUTHOR MICHAEL HUDSON DISCLAIMS ALL WARRANTIES WITH REGARD TO # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, # INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER # RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF # CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """This is an alternative to python_reader which tries to emulate the CPython prompt as closely as possible, with the exception of allowing multiline input and multiline history entries. """ from __future__ import annotations import _sitebuiltins import functools import os import sys import code from .readline import _get_reader, multiline_input TYPE_CHECKING = False if TYPE_CHECKING: from typing import Any _error: tuple[type[Exception], ...] | type[Exception] try: from .unix_console import _error except ModuleNotFoundError: from .windows_console import _error def check() -> str: """Returns the error message if there is a problem initializing the state.""" try: _get_reader() except _error as e: if term := os.environ.get("TERM", ""): term = f"; TERM={term}" return str(str(e) or repr(e) or "unknown error") + term return "" def _strip_final_indent(text: str) -> str: # kill spaces and tabs at the end, but only if they follow '\n'. # meant to remove the auto-indentation only (although it would of # course also remove explicitly-added indentation). short = text.rstrip(" \t") n = len(short) if n > 0 and text[n - 1] == "\n": return short return text def _clear_screen(): reader = _get_reader() reader.scheduled_commands.append("clear_screen") REPL_COMMANDS = { "exit": _sitebuiltins.Quitter('exit', ''), "quit": _sitebuiltins.Quitter('quit' ,''), "copyright": _sitebuiltins._Printer('copyright', sys.copyright), "help": _sitebuiltins._Helper(), "clear": _clear_screen, "\x1a": _sitebuiltins.Quitter('\x1a', ''), } def _more_lines(console: code.InteractiveConsole, unicodetext: str) -> bool: # ooh, look at the hack: src = _strip_final_indent(unicodetext) try: code = console.compile(src, "<stdin>", "single") except (OverflowError, SyntaxError, ValueError): lines = src.splitlines(keepends=True) if len(lines) == 1: return False last_line = lines[-1] was_indented = last_line.startswith((" ", "\t")) not_empty = last_line.strip() != "" incomplete = not last_line.endswith("\n") return (was_indented or not_empty) and incomplete else: return code is None def run_multiline_interactive_console( console: code.InteractiveConsole, *, future_flags: int = 0, ) -> None: from .readline import _setup _setup(console.locals) if future_flags: console.compile.compiler.flags |= future_flags more_lines = functools.partial(_more_lines, console) input_n = 0 _is_x_showrefcount_set = sys._xoptions.get("showrefcount") _is_pydebug_build = hasattr(sys, "gettotalrefcount") show_ref_count = _is_x_showrefcount_set and _is_pydebug_build def maybe_run_command(statement: str) -> bool: statement = statement.strip() if statement in console.locals or statement not in REPL_COMMANDS: return False reader = _get_reader() reader.history.pop() # skip internal commands in history command = REPL_COMMANDS[statement] if callable(command): # Make sure that history does not change because of commands with reader.suspend_history(): command() return True return False while 1: try: try: sys.stdout.flush() except Exception: pass ps1 = getattr(sys, "ps1", ">>> ") ps2 = getattr(sys, "ps2", "... ") try: statement = multiline_input(more_lines, ps1, ps2) except EOFError: break if maybe_run_command(statement): continue input_name = f"<python-input-{input_n}>" more = console.push(_strip_final_indent(statement), filename=input_name, _symbol="single") # type: ignore[call-arg] assert not more input_n += 1 except KeyboardInterrupt: r = _get_reader() r.cmpltn_reset() if r.input_trans is r.isearch_trans: r.do_cmd(("isearch-end", [""])) r.pos = len(r.get_unicode()) r.dirty = True r.refresh() r.in_bracketed_paste = False console.write("\nKeyboardInterrupt\n") console.resetbuffer() except MemoryError: console.write("\nMemoryError\n") console.resetbuffer() except SystemExit: raise except: console.showtraceback() console.resetbuffer() if show_ref_count: console.write( f"[{sys.gettotalrefcount()} refs," f" {sys.getallocatedblocks()} blocks]\n" )
Close