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 logging
|
||||||
import shlex
|
import shlex
|
||||||
import marshal
|
import marshal
|
||||||
|
import signal
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# additional imports needed to package with pyinstaller
|
# additional imports needed to package with pyinstaller
|
||||||
|
@ -215,6 +216,9 @@ def set_connect_back_host(HOST):
|
||||||
import pupy
|
import pupy
|
||||||
pupy.get_connect_back_host = (lambda: HOST)
|
pupy.get_connect_back_host = (lambda: HOST)
|
||||||
|
|
||||||
|
def handle_sigchld(*args, **kwargs):
|
||||||
|
os.waitpid(-1, os.WNOHANG)
|
||||||
|
|
||||||
attempt = 0
|
attempt = 0
|
||||||
debug = False
|
debug = False
|
||||||
|
|
||||||
|
@ -279,6 +283,8 @@ def main():
|
||||||
|
|
||||||
exited = False
|
exited = False
|
||||||
|
|
||||||
|
signal.signal(signal.SIGCHLD, handle_sigchld)
|
||||||
|
|
||||||
while not exited:
|
while not exited:
|
||||||
try:
|
try:
|
||||||
rpyc_loop(launcher)
|
rpyc_loop(launcher)
|
||||||
|
|
Loading…
Reference in New Issue