We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3963289 + 5140b8c commit 76cdd28Copy full SHA for 76cdd28
data/meterpreter/meterpreter.py
@@ -22,6 +22,7 @@
22
# this MUST be imported for urllib to work on OSX
23
try:
24
import SystemConfiguration as osxsc
25
+ osxsc.SCNetworkInterfaceCopyAll()
26
has_osxsc = True
27
except ImportError:
28
has_osxsc = False
@@ -749,7 +750,7 @@ def create_response(self, request):
749
750
resp = struct.pack('>I', len(resp) + 4) + resp
751
return resp
752
-if not hasattr(os, 'fork') or has_osxsc or (hasattr(os, 'fork') and os.fork() == 0):
753
+if not hasattr(os, 'fork') or (hasattr(os, 'fork') and os.fork() == 0):
754
if hasattr(os, 'setsid'):
755
756
os.setsid()
0 commit comments