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 : wildcard.py
# -*- coding: utf-8 -*- """Support for wildcard pattern matching in object inspection. Authors ------- - Jörgen Stenarson <jorgen.stenarson@bostream.nu> - Thomas Kluyver """ #***************************************************************************** # Copyright (C) 2005 Jörgen Stenarson <jorgen.stenarson@bostream.nu> # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #***************************************************************************** import re import types from IPython.utils.dir2 import dir2 from .py3compat import iteritems def create_typestr2type_dicts(dont_include_in_type2typestr=["lambda"]): """Return dictionaries mapping lower case typename (e.g. 'tuple') to type objects from the types package, and vice versa.""" typenamelist = [tname for tname in dir(types) if tname.endswith("Type")] typestr2type, type2typestr = {}, {} for tname in typenamelist: name = tname[:-4].lower() # Cut 'Type' off the end of the name obj = getattr(types, tname) typestr2type[name] = obj if name not in dont_include_in_type2typestr: type2typestr[obj] = name return typestr2type, type2typestr typestr2type, type2typestr = create_typestr2type_dicts() def is_type(obj, typestr_or_type): """is_type(obj, typestr_or_type) verifies if obj is of a certain type. It can take strings or actual python types for the second argument, i.e. 'tuple'<->TupleType. 'all' matches all types. TODO: Should be extended for choosing more than one type.""" if typestr_or_type == "all": return True if type(typestr_or_type) == type: test_type = typestr_or_type else: test_type = typestr2type.get(typestr_or_type, False) if test_type: return isinstance(obj, test_type) return False def show_hidden(str, show_all=False): """Return true for strings starting with single _ if show_all is true.""" return show_all or str.startswith("__") or not str.startswith("_") def dict_dir(obj): """Produce a dictionary of an object's attributes. Builds on dir2 by checking that a getattr() call actually succeeds.""" ns = {} for key in dir2(obj): # This seemingly unnecessary try/except is actually needed # because there is code out there with metaclasses that # create 'write only' attributes, where a getattr() call # will fail even if the attribute appears listed in the # object's dictionary. Properties can actually do the same # thing. In particular, Traits use this pattern try: ns[key] = getattr(obj, key) except AttributeError: pass return ns def filter_ns(ns, name_pattern="*", type_pattern="all", ignore_case=True, show_all=True): """Filter a namespace dictionary by name pattern and item type.""" pattern = name_pattern.replace("*",".*").replace("?",".") if ignore_case: reg = re.compile(pattern+"$", re.I) else: reg = re.compile(pattern+"$") # Check each one matches regex; shouldn't be hidden; of correct type. return dict((key,obj) for key, obj in iteritems(ns) if reg.match(key) \ and show_hidden(key, show_all) \ and is_type(obj, type_pattern) ) def list_namespace(namespace, type_pattern, filter, ignore_case=False, show_all=False): """Return dictionary of all objects in a namespace dictionary that match type_pattern and filter.""" pattern_list=filter.split(".") if len(pattern_list) == 1: return filter_ns(namespace, name_pattern=pattern_list[0], type_pattern=type_pattern, ignore_case=ignore_case, show_all=show_all) else: # This is where we can change if all objects should be searched or # only modules. Just change the type_pattern to module to search only # modules filtered = filter_ns(namespace, name_pattern=pattern_list[0], type_pattern="all", ignore_case=ignore_case, show_all=show_all) results = {} for name, obj in iteritems(filtered): ns = list_namespace(dict_dir(obj), type_pattern, ".".join(pattern_list[1:]), ignore_case=ignore_case, show_all=show_all) for inner_name, inner_obj in iteritems(ns): results["%s.%s"%(name,inner_name)] = inner_obj return results
Close