subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
elif system == "Linux": subprocess.run(["xdg-open", path], check=True, capture_output=True) elif system == "Windows": subprocess.run(["start", "", path], check=True, shell=True, capture_output=True) except subprocess.CalledProcessError: pass- Confidence
- 97% confidence
- Finding
- subprocess.run(["start", "", path], check=True, shell=True, capture_output=True)
