Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.54
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
site-packages /
supervisor /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
medusa
[ DIR ]
drwxr-xr-x
?;
scripts
[ DIR ]
drwxr-xr-x
?;
skel
[ DIR ]
drwxr-xr-x
?;
tests
[ DIR ]
drwxr-xr-x
?;
ui
[ DIR ]
drwxr-xr-x
childutils.py
2.38
KB
-rw-r--r--
childutils.pyc
4.26
KB
-rw-r--r--
childutils.pyo
4.26
KB
-rw-r--r--
confecho.py
154
B
-rw-r--r--
confecho.pyc
485
B
-rw-r--r--
confecho.pyo
485
B
-rw-r--r--
datatypes.py
12.89
KB
-rw-r--r--
datatypes.pyc
17.6
KB
-rw-r--r--
datatypes.pyo
17.55
KB
-rw-r--r--
dispatchers.py
17.5
KB
-rw-r--r--
dispatchers.pyc
15.7
KB
-rw-r--r--
dispatchers.pyo
15.7
KB
-rw-r--r--
events.py
6.58
KB
-rw-r--r--
events.pyc
13
KB
-rw-r--r--
events.pyo
13
KB
-rw-r--r--
http.py
30.28
KB
-rw-r--r--
http.pyc
26.31
KB
-rw-r--r--
http.pyo
26.31
KB
-rw-r--r--
http_client.py
5.95
KB
-rw-r--r--
http_client.pyc
8.42
KB
-rw-r--r--
http_client.pyo
8.42
KB
-rw-r--r--
loggers.py
10.28
KB
-rw-r--r--
loggers.pyc
15.04
KB
-rw-r--r--
loggers.pyo
14.95
KB
-rw-r--r--
options.py
82.66
KB
-rw-r--r--
options.pyc
69.29
KB
-rw-r--r--
options.pyo
69.29
KB
-rw-r--r--
pidproxy.py
1.84
KB
-rw-r--r--
pidproxy.pyc
2.92
KB
-rw-r--r--
pidproxy.pyo
2.92
KB
-rw-r--r--
poller.py
6.54
KB
-rw-r--r--
poller.pyc
10.18
KB
-rw-r--r--
poller.pyo
10.18
KB
-rw-r--r--
process.py
35.4
KB
-rw-r--r--
process.pyc
28.68
KB
-rw-r--r--
process.pyo
28.68
KB
-rw-r--r--
rpcinterface.py
34.71
KB
-rw-r--r--
rpcinterface.pyc
29.7
KB
-rw-r--r--
rpcinterface.pyo
29.7
KB
-rw-r--r--
socket_manager.py
3.04
KB
-rw-r--r--
socket_manager.pyc
5.35
KB
-rw-r--r--
socket_manager.pyo
5.35
KB
-rw-r--r--
states.py
1.62
KB
-rw-r--r--
states.pyc
2.23
KB
-rw-r--r--
states.pyo
2.23
KB
-rw-r--r--
supervisorctl.py
47.77
KB
-rw-r--r--
supervisorctl.pyc
43.63
KB
-rw-r--r--
supervisorctl.pyo
43.63
KB
-rw-r--r--
supervisord.py
14.04
KB
-rw-r--r--
supervisord.pyc
12.43
KB
-rw-r--r--
supervisord.pyo
12.32
KB
-rw-r--r--
version.txt
5
B
-rw-r--r--
web.py
22.99
KB
-rw-r--r--
web.pyc
18.87
KB
-rw-r--r--
web.pyo
18.87
KB
-rw-r--r--
xmlrpc.py
21.63
KB
-rw-r--r--
xmlrpc.pyc
20.9
KB
-rw-r--r--
xmlrpc.pyo
20.9
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pidproxy.py
""" An executable which proxies for a subprocess; upon a signal, it sends that signal to the process identified by a pidfile. """ import os import sys import signal import time class PidProxy: pid = None def __init__(self, args): self.setsignals() try: self.pidfile, cmdargs = args[1], args[2:] self.command = os.path.abspath(cmdargs[0]) self.cmdargs = cmdargs except (ValueError, IndexError): self.usage() sys.exit(1) def go(self): self.pid = os.spawnv(os.P_NOWAIT, self.command, self.cmdargs) while 1: time.sleep(5) try: pid, sts = os.waitpid(-1, os.WNOHANG) except OSError: pid, sts = None, None if pid: break def usage(self): print "pidproxy.py <pidfile name> <command> [<cmdarg1> ...]" def setsignals(self): signal.signal(signal.SIGTERM, self.passtochild) signal.signal(signal.SIGHUP, self.passtochild) signal.signal(signal.SIGINT, self.passtochild) signal.signal(signal.SIGUSR1, self.passtochild) signal.signal(signal.SIGUSR2, self.passtochild) signal.signal(signal.SIGQUIT, self.passtochild) signal.signal(signal.SIGCHLD, self.reap) def reap(self, sig, frame): # do nothing, we reap our child synchronously pass def passtochild(self, sig, frame): try: pid = int(open(self.pidfile, 'r').read().strip()) except: pid = None print "Can't read child pidfile %s!" % self.pidfile return os.kill(pid, sig) if sig in [signal.SIGTERM, signal.SIGINT, signal.SIGQUIT]: sys.exit(0) def main(): pp = PidProxy(sys.argv) pp.go() if __name__ == '__main__': main()
Close