Skip to content

Commit 15eef6e

Browse files
committed
Dont fork on OSX
1 parent 85ba60b commit 15eef6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/meterpreter/meterpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ def create_response(self, request):
749749
resp = struct.pack('>I', len(resp) + 4) + resp
750750
return resp
751751

752-
if not hasattr(os, 'fork') or (hasattr(os, 'fork') and os.fork() == 0):
752+
if not hasattr(os, 'fork') or has_osxsc or (hasattr(os, 'fork') and os.fork() == 0):
753753
if hasattr(os, 'setsid'):
754754
try:
755755
os.setsid()

0 commit comments

Comments
 (0)