mirror of https://github.com/n1nj4sec/pupy.git
Prevent zobmie creation
This commit is contained in:
parent
1a02ac6150
commit
416d7f47eb
|
@ -62,6 +62,7 @@ from network.lib.connection import PupyConnection
|
|||
import logging
|
||||
import shlex
|
||||
import marshal
|
||||
import signal
|
||||
|
||||
try:
|
||||
# additional imports needed to package with pyinstaller
|
||||
|
@ -215,6 +216,9 @@ def set_connect_back_host(HOST):
|
|||
import pupy
|
||||
pupy.get_connect_back_host = (lambda: HOST)
|
||||
|
||||
def handle_sigchld(*args, **kwargs):
|
||||
os.waitpid(-1, os.WNOHANG)
|
||||
|
||||
attempt = 0
|
||||
debug = False
|
||||
|
||||
|
@ -279,6 +283,8 @@ def main():
|
|||
|
||||
exited = False
|
||||
|
||||
signal.signal(signal.SIGCHLD, handle_sigchld)
|
||||
|
||||
while not exited:
|
||||
try:
|
||||
rpyc_loop(launcher)
|
||||
|
|
Loading…
Reference in New Issue