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.10
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 /
ipykernel /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
comm
[ DIR ]
drwxr-xr-x
gui
[ DIR ]
drwxr-xr-x
inprocess
[ DIR ]
drwxr-xr-x
pylab
[ DIR ]
drwxr-xr-x
resources
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
__init__.py
125
B
-rw-r--r--
__main__.py
100
B
-rw-r--r--
_eventloop_macos.py
3.95
KB
-rw-r--r--
_version.py
176
B
-rw-r--r--
codeutil.py
1.27
KB
-rw-r--r--
connect.py
6.1
KB
-rw-r--r--
datapub.py
1.89
KB
-rw-r--r--
displayhook.py
2.62
KB
-rw-r--r--
embed.py
2.01
KB
-rw-r--r--
eventloops.py
10.62
KB
-rw-r--r--
heartbeat.py
2.35
KB
-rw-r--r--
iostream.py
14.83
KB
-rw-r--r--
ipkernel.py
14.99
KB
-rw-r--r--
jsonutil.py
6.37
KB
-rw-r--r--
kernelapp.py
19.96
KB
-rw-r--r--
kernelbase.py
27.18
KB
-rw-r--r--
kernelspec.py
6.47
KB
-rw-r--r--
log.py
766
B
-rw-r--r--
parentpoller.py
4.08
KB
-rw-r--r--
pickleutil.py
12.66
KB
-rw-r--r--
serialize.py
5.99
KB
-rw-r--r--
zmqshell.py
21.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _eventloop_macos.py
"""Eventloop hook for OS X Calls NSApp / CoreFoundation APIs via ctypes. """ # cribbed heavily from IPython.terminal.pt_inputhooks.osx # obj-c boilerplate from appnope, used under BSD 2-clause import ctypes import ctypes.util from threading import Event objc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('objc')) void_p = ctypes.c_void_p objc.objc_getClass.restype = void_p objc.sel_registerName.restype = void_p objc.objc_msgSend.restype = void_p objc.objc_msgSend.argtypes = [void_p, void_p] msg = objc.objc_msgSend def _utf8(s): """ensure utf8 bytes""" if not isinstance(s, bytes): s = s.encode('utf8') return s def n(name): """create a selector name (for ObjC methods)""" return objc.sel_registerName(_utf8(name)) def C(classname): """get an ObjC Class by name""" return objc.objc_getClass(_utf8(classname)) # end obj-c boilerplate from appnope # CoreFoundation C-API calls we will use: CoreFoundation = ctypes.cdll.LoadLibrary(ctypes.util.find_library('CoreFoundation')) CFAbsoluteTimeGetCurrent = CoreFoundation.CFAbsoluteTimeGetCurrent CFAbsoluteTimeGetCurrent.restype = ctypes.c_double CFRunLoopGetCurrent = CoreFoundation.CFRunLoopGetCurrent CFRunLoopGetCurrent.restype = void_p CFRunLoopGetMain = CoreFoundation.CFRunLoopGetMain CFRunLoopGetMain.restype = void_p CFRunLoopStop = CoreFoundation.CFRunLoopStop CFRunLoopStop.restype = None CFRunLoopStop.argtypes = [void_p] CFRunLoopTimerCreate = CoreFoundation.CFRunLoopTimerCreate CFRunLoopTimerCreate.restype = void_p CFRunLoopTimerCreate.argtypes = [ void_p, # allocator (NULL) ctypes.c_double, # fireDate ctypes.c_double, # interval ctypes.c_int, # flags (0) ctypes.c_int, # order (0) void_p, # callout void_p, # context ] CFRunLoopAddTimer = CoreFoundation.CFRunLoopAddTimer CFRunLoopAddTimer.restype = None CFRunLoopAddTimer.argtypes = [ void_p, void_p, void_p ] kCFRunLoopCommonModes = void_p.in_dll(CoreFoundation, 'kCFRunLoopCommonModes') def _NSApp(): """Return the global NSApplication instance (NSApp)""" return msg(C('NSApplication'), n('sharedApplication')) def _wake(NSApp): """Wake the Application""" event = msg(C('NSEvent'), n('otherEventWithType:location:modifierFlags:' 'timestamp:windowNumber:context:subtype:data1:data2:'), 15, # Type 0, # location 0, # flags 0, # timestamp 0, # window None, # context 0, # subtype 0, # data1 0, # data2 ) msg(NSApp, n('postEvent:atStart:'), void_p(event), True) _triggered = Event() def stop(timer=None, loop=None): """Callback to fire when there's input to be read""" _triggered.set() NSApp = _NSApp() # if NSApp is not running, stop CFRunLoop directly, # otherwise stop and wake NSApp if msg(NSApp, n('isRunning')): msg(NSApp, n('stop:'), NSApp) _wake(NSApp) else: CFRunLoopStop(CFRunLoopGetCurrent()) _c_callback_func_type = ctypes.CFUNCTYPE(None, void_p, void_p) _c_stop_callback = _c_callback_func_type(stop) def _stop_after(delay): """Register callback to stop eventloop after a delay""" timer = CFRunLoopTimerCreate( None, # allocator CFAbsoluteTimeGetCurrent() + delay, # fireDate 0, # interval 0, # flags 0, # order _c_stop_callback, None, ) CFRunLoopAddTimer( CFRunLoopGetMain(), timer, kCFRunLoopCommonModes, ) def mainloop(duration=1): """run the Cocoa eventloop for the specified duration (seconds)""" _triggered.clear() NSApp = _NSApp() _stop_after(duration) msg(NSApp, n('run')) if not _triggered.is_set(): # app closed without firing callback, # probably due to last window being closed. # Run the loop manually in this case, # since there may be events still to process (ipython/ipython#9734) CoreFoundation.CFRunLoopRun()
Close