Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 52.14.12.61
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
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
/
opt /
alt /
python34 /
lib64 /
python3.4 /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
asyncio
[ DIR ]
drwxr-xr-x
collections
[ DIR ]
drwxr-xr-x
concurrent
[ DIR ]
drwxr-xr-x
config-3.4m
[ DIR ]
drwxr-xr-x
ctypes
[ DIR ]
drwxr-xr-x
curses
[ DIR ]
drwxr-xr-x
dbm
[ DIR ]
drwxr-xr-x
distutils
[ DIR ]
drwxr-xr-x
email
[ DIR ]
drwxr-xr-x
encodings
[ DIR ]
drwxr-xr-x
ensurepip
[ DIR ]
drwxr-xr-x
html
[ DIR ]
drwxr-xr-x
http
[ DIR ]
drwxr-xr-x
idlelib
[ DIR ]
drwxr-xr-x
importlib
[ DIR ]
drwxr-xr-x
json
[ DIR ]
drwxr-xr-x
lib-dynload
[ DIR ]
drwxr-xr-x
lib2to3
[ DIR ]
drwxr-xr-x
logging
[ DIR ]
drwxr-xr-x
multiprocessing
[ DIR ]
drwxr-xr-x
plat-linux
[ DIR ]
drwxr-xr-x
pydoc_data
[ DIR ]
drwxr-xr-x
site-packages
[ DIR ]
drwxr-xr-x
sqlite3
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
unittest
[ DIR ]
drwxr-xr-x
urllib
[ DIR ]
drwxr-xr-x
venv
[ DIR ]
drwxr-xr-x
wsgiref
[ DIR ]
drwxr-xr-x
xml
[ DIR ]
drwxr-xr-x
xmlrpc
[ DIR ]
drwxr-xr-x
__future__.py
4.48
KB
-rw-r--r--
__phello__.foo.py
64
B
-rw-r--r--
_bootlocale.py
1.27
KB
-rw-r--r--
_collections_abc.py
19.43
KB
-rw-r--r--
_compat_pickle.py
8.12
KB
-rw-r--r--
_dummy_thread.py
4.76
KB
-rw-r--r--
_markupbase.py
14.26
KB
-rw-r--r--
_osx_support.py
18.65
KB
-rw-r--r--
_pyio.py
72.16
KB
-rw-r--r--
_sitebuiltins.py
3.04
KB
-rw-r--r--
_strptime.py
21.54
KB
-rw-r--r--
_sysconfigdata.py
28.05
KB
-rw-r--r--
_threading_local.py
7.24
KB
-rw-r--r--
_weakrefset.py
5.57
KB
-rw-r--r--
abc.py
8.42
KB
-rw-r--r--
aifc.py
30.84
KB
-rw-r--r--
antigravity.py
475
B
-rw-r--r--
argparse.py
87.92
KB
-rw-r--r--
ast.py
11.75
KB
-rw-r--r--
asynchat.py
11.55
KB
-rw-r--r--
asyncore.py
20.51
KB
-rw-r--r--
base64.py
19.71
KB
-rwxr-xr-x
bdb.py
22.81
KB
-rw-r--r--
binhex.py
13.6
KB
-rw-r--r--
bisect.py
2.53
KB
-rw-r--r--
bz2.py
18.42
KB
-rw-r--r--
cProfile.py
5.2
KB
-rwxr-xr-x
calendar.py
22.4
KB
-rw-r--r--
cgi.py
35.1
KB
-rwxr-xr-x
cgitb.py
11.76
KB
-rw-r--r--
chunk.py
5.3
KB
-rw-r--r--
cmd.py
14.51
KB
-rw-r--r--
code.py
9.8
KB
-rw-r--r--
codecs.py
35.07
KB
-rw-r--r--
codeop.py
5.85
KB
-rw-r--r--
colorsys.py
3.97
KB
-rw-r--r--
compileall.py
9.39
KB
-rw-r--r--
configparser.py
48.53
KB
-rw-r--r--
contextlib.py
11.37
KB
-rw-r--r--
copy.py
8.79
KB
-rw-r--r--
copyreg.py
6.67
KB
-rw-r--r--
crypt.py
1.83
KB
-rw-r--r--
csv.py
15.81
KB
-rw-r--r--
datetime.py
74.03
KB
-rw-r--r--
decimal.py
223.33
KB
-rw-r--r--
difflib.py
79.77
KB
-rw-r--r--
dis.py
16.76
KB
-rw-r--r--
doctest.py
102.04
KB
-rw-r--r--
dummy_threading.py
2.75
KB
-rw-r--r--
enum.py
21.03
KB
-rw-r--r--
filecmp.py
9.6
KB
-rw-r--r--
fileinput.py
14.52
KB
-rw-r--r--
fnmatch.py
3.09
KB
-rw-r--r--
formatter.py
14.82
KB
-rw-r--r--
fractions.py
22.66
KB
-rw-r--r--
ftplib.py
37.63
KB
-rw-r--r--
functools.py
27.84
KB
-rw-r--r--
genericpath.py
3.79
KB
-rw-r--r--
getopt.py
7.31
KB
-rw-r--r--
getpass.py
5.93
KB
-rw-r--r--
gettext.py
20.28
KB
-rw-r--r--
glob.py
3.38
KB
-rw-r--r--
gzip.py
23.74
KB
-rw-r--r--
hashlib.py
9.62
KB
-rw-r--r--
heapq.py
17.58
KB
-rw-r--r--
hmac.py
4.94
KB
-rw-r--r--
imaplib.py
49.09
KB
-rw-r--r--
imghdr.py
3.45
KB
-rw-r--r--
imp.py
9.75
KB
-rw-r--r--
inspect.py
102.19
KB
-rw-r--r--
io.py
3.32
KB
-rw-r--r--
ipaddress.py
69.92
KB
-rw-r--r--
keyword.py
2.17
KB
-rwxr-xr-x
linecache.py
3.86
KB
-rw-r--r--
locale.py
72.78
KB
-rw-r--r--
lzma.py
18.92
KB
-rw-r--r--
macpath.py
5.49
KB
-rw-r--r--
macurl2path.py
2.67
KB
-rw-r--r--
mailbox.py
76.54
KB
-rw-r--r--
mailcap.py
7.26
KB
-rw-r--r--
mimetypes.py
20.29
KB
-rw-r--r--
modulefinder.py
22.87
KB
-rw-r--r--
netrc.py
5.61
KB
-rw-r--r--
nntplib.py
42.07
KB
-rw-r--r--
ntpath.py
20
KB
-rw-r--r--
nturl2path.py
2.39
KB
-rw-r--r--
numbers.py
10
KB
-rw-r--r--
opcode.py
5.31
KB
-rw-r--r--
operator.py
8.98
KB
-rw-r--r--
optparse.py
58.93
KB
-rw-r--r--
os.py
33.09
KB
-rw-r--r--
pathlib.py
41.47
KB
-rw-r--r--
pdb.py
59.56
KB
-rwxr-xr-x
pickle.py
54.68
KB
-rw-r--r--
pickletools.py
89.61
KB
-rw-r--r--
pipes.py
8.71
KB
-rw-r--r--
pkgutil.py
20.72
KB
-rw-r--r--
platform.py
45.67
KB
-rwxr-xr-x
plistlib.py
31.05
KB
-rw-r--r--
poplib.py
13.98
KB
-rw-r--r--
posixpath.py
13.13
KB
-rw-r--r--
pprint.py
14.57
KB
-rw-r--r--
profile.py
21.52
KB
-rwxr-xr-x
pstats.py
25.7
KB
-rw-r--r--
pty.py
4.65
KB
-rw-r--r--
py_compile.py
6.94
KB
-rw-r--r--
pyclbr.py
13.2
KB
-rw-r--r--
pydoc.py
100.6
KB
-rwxr-xr-x
queue.py
8.63
KB
-rw-r--r--
quopri.py
7.09
KB
-rwxr-xr-x
random.py
25.47
KB
-rw-r--r--
re.py
15.24
KB
-rw-r--r--
reprlib.py
4.99
KB
-rw-r--r--
rlcompleter.py
5.93
KB
-rw-r--r--
runpy.py
10.56
KB
-rw-r--r--
sched.py
6.21
KB
-rw-r--r--
selectors.py
16.7
KB
-rw-r--r--
shelve.py
8.33
KB
-rw-r--r--
shlex.py
11.28
KB
-rw-r--r--
shutil.py
38.97
KB
-rw-r--r--
site.py
21.05
KB
-rw-r--r--
smtpd.py
29.29
KB
-rwxr-xr-x
smtplib.py
38.06
KB
-rwxr-xr-x
sndhdr.py
6.11
KB
-rw-r--r--
socket.py
18.62
KB
-rw-r--r--
socketserver.py
23.8
KB
-rw-r--r--
sre_compile.py
19.44
KB
-rw-r--r--
sre_constants.py
7.1
KB
-rw-r--r--
sre_parse.py
30.69
KB
-rw-r--r--
ssl.py
33.93
KB
-rw-r--r--
stat.py
4.3
KB
-rw-r--r--
statistics.py
19.1
KB
-rw-r--r--
string.py
11.18
KB
-rw-r--r--
stringprep.py
12.61
KB
-rw-r--r--
struct.py
257
B
-rw-r--r--
subprocess.py
63.04
KB
-rw-r--r--
sunau.py
17.67
KB
-rw-r--r--
symbol.py
2
KB
-rwxr-xr-x
symtable.py
7.23
KB
-rw-r--r--
sysconfig.py
24.05
KB
-rw-r--r--
tabnanny.py
11.14
KB
-rwxr-xr-x
tarfile.py
89.41
KB
-rwxr-xr-x
telnetlib.py
22.53
KB
-rw-r--r--
tempfile.py
22
KB
-rw-r--r--
textwrap.py
18.83
KB
-rw-r--r--
this.py
1003
B
-rw-r--r--
threading.py
47.66
KB
-rw-r--r--
timeit.py
11.69
KB
-rwxr-xr-x
token.py
2.96
KB
-rw-r--r--
tokenize.py
25
KB
-rw-r--r--
trace.py
30.75
KB
-rwxr-xr-x
traceback.py
10.91
KB
-rw-r--r--
tracemalloc.py
15.28
KB
-rw-r--r--
tty.py
879
B
-rw-r--r--
types.py
5.28
KB
-rw-r--r--
uu.py
6.61
KB
-rwxr-xr-x
uuid.py
23.17
KB
-rw-r--r--
warnings.py
13.97
KB
-rw-r--r--
wave.py
17.27
KB
-rw-r--r--
weakref.py
18.93
KB
-rw-r--r--
webbrowser.py
20.93
KB
-rwxr-xr-x
xdrlib.py
5.77
KB
-rw-r--r--
zipfile.py
66.94
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _threading_local.py
"""Thread-local objects. (Note that this module provides a Python version of the threading.local class. Depending on the version of Python you're using, there may be a faster one available. You should always import the `local` class from `threading`.) Thread-local objects support the management of thread-local data. If you have data that you want to be local to a thread, simply create a thread-local object and use its attributes: >>> mydata = local() >>> mydata.number = 42 >>> mydata.number 42 You can also access the local-object's dictionary: >>> mydata.__dict__ {'number': 42} >>> mydata.__dict__.setdefault('widgets', []) [] >>> mydata.widgets [] What's important about thread-local objects is that their data are local to a thread. If we access the data in a different thread: >>> log = [] >>> def f(): ... items = sorted(mydata.__dict__.items()) ... log.append(items) ... mydata.number = 11 ... log.append(mydata.number) >>> import threading >>> thread = threading.Thread(target=f) >>> thread.start() >>> thread.join() >>> log [[], 11] we get different data. Furthermore, changes made in the other thread don't affect data seen in this thread: >>> mydata.number 42 Of course, values you get from a local object, including a __dict__ attribute, are for whatever thread was current at the time the attribute was read. For that reason, you generally don't want to save these values across threads, as they apply only to the thread they came from. You can create custom local objects by subclassing the local class: >>> class MyLocal(local): ... number = 2 ... initialized = False ... def __init__(self, **kw): ... if self.initialized: ... raise SystemError('__init__ called too many times') ... self.initialized = True ... self.__dict__.update(kw) ... def squared(self): ... return self.number ** 2 This can be useful to support default values, methods and initialization. Note that if you define an __init__ method, it will be called each time the local object is used in a separate thread. This is necessary to initialize each thread's dictionary. Now if we create a local object: >>> mydata = MyLocal(color='red') Now we have a default number: >>> mydata.number 2 an initial color: >>> mydata.color 'red' >>> del mydata.color And a method that operates on the data: >>> mydata.squared() 4 As before, we can access the data in a separate thread: >>> log = [] >>> thread = threading.Thread(target=f) >>> thread.start() >>> thread.join() >>> log [[('color', 'red'), ('initialized', True)], 11] without affecting this thread's data: >>> mydata.number 2 >>> mydata.color Traceback (most recent call last): ... AttributeError: 'MyLocal' object has no attribute 'color' Note that subclasses can define slots, but they are not thread local. They are shared across threads: >>> class MyLocal(local): ... __slots__ = 'number' >>> mydata = MyLocal() >>> mydata.number = 42 >>> mydata.color = 'red' So, the separate thread: >>> thread = threading.Thread(target=f) >>> thread.start() >>> thread.join() affects what we see: >>> mydata.number 11 >>> del mydata """ from weakref import ref from contextlib import contextmanager __all__ = ["local"] # We need to use objects from the threading module, but the threading # module may also want to use our `local` class, if support for locals # isn't compiled in to the `thread` module. This creates potential problems # with circular imports. For that reason, we don't import `threading` # until the bottom of this file (a hack sufficient to worm around the # potential problems). Note that all platforms on CPython do have support # for locals in the `thread` module, and there is no circular import problem # then, so problems introduced by fiddling the order of imports here won't # manifest. class _localimpl: """A class managing thread-local dicts""" __slots__ = 'key', 'dicts', 'localargs', 'locallock', '__weakref__' def __init__(self): # The key used in the Thread objects' attribute dicts. # We keep it a string for speed but make it unlikely to clash with # a "real" attribute. self.key = '_threading_local._localimpl.' + str(id(self)) # { id(Thread) -> (ref(Thread), thread-local dict) } self.dicts = {} def get_dict(self): """Return the dict for the current thread. Raises KeyError if none defined.""" thread = current_thread() return self.dicts[id(thread)][1] def create_dict(self): """Create a new dict for the current thread, and return it.""" localdict = {} key = self.key thread = current_thread() idt = id(thread) def local_deleted(_, key=key): # When the localimpl is deleted, remove the thread attribute. thread = wrthread() if thread is not None: del thread.__dict__[key] def thread_deleted(_, idt=idt): # When the thread is deleted, remove the local dict. # Note that this is suboptimal if the thread object gets # caught in a reference loop. We would like to be called # as soon as the OS-level thread ends instead. local = wrlocal() if local is not None: dct = local.dicts.pop(idt) wrlocal = ref(self, local_deleted) wrthread = ref(thread, thread_deleted) thread.__dict__[key] = wrlocal self.dicts[idt] = wrthread, localdict return localdict @contextmanager def _patch(self): impl = object.__getattribute__(self, '_local__impl') try: dct = impl.get_dict() except KeyError: dct = impl.create_dict() args, kw = impl.localargs self.__init__(*args, **kw) with impl.locallock: object.__setattr__(self, '__dict__', dct) yield class local: __slots__ = '_local__impl', '__dict__' def __new__(cls, *args, **kw): if (args or kw) and (cls.__init__ is object.__init__): raise TypeError("Initialization arguments are not supported") self = object.__new__(cls) impl = _localimpl() impl.localargs = (args, kw) impl.locallock = RLock() object.__setattr__(self, '_local__impl', impl) # We need to create the thread dict in anticipation of # __init__ being called, to make sure we don't call it # again ourselves. impl.create_dict() return self def __getattribute__(self, name): with _patch(self): return object.__getattribute__(self, name) def __setattr__(self, name, value): if name == '__dict__': raise AttributeError( "%r object attribute '__dict__' is read-only" % self.__class__.__name__) with _patch(self): return object.__setattr__(self, name, value) def __delattr__(self, name): if name == '__dict__': raise AttributeError( "%r object attribute '__dict__' is read-only" % self.__class__.__name__) with _patch(self): return object.__delattr__(self, name) from threading import current_thread, RLock
Close