parazeeknova / nyxtext

Audit: Starting a process with a partial executable path BAN-B607
Security
Minor
3 months ago6 months old
Starting a process with a partial executable path
455            subprocess.call(["start", "cmd"])
456        elif system == "Darwin":
457            # macOS
458            subprocess.call(["open", "-a", "Terminal"])459        else:
460            print("Unsupported platform")
461
Starting a process with a partial executable path
452                except Exception as e:
453                    print(e)
454        elif system == "Windows":
455            subprocess.call(["start", "cmd"])456        elif system == "Darwin":
457            # macOS
458            subprocess.call(["open", "-a", "Terminal"])
Starting a process with a partial executable path
264        if os.name == "nt":  # Windows
265            os.startfile(directory)
266        elif os.name == "posix":  # macOS or Linux
267            subprocess.Popen(["open", directory])268        else:
269            print("Unsupported operating system.")
270