subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
python_cmd = shutil.which("python") or shutil.which("python3") or "python3" else: python_cmd = shutil.which("python3") or shutil.which("python") or "python3" result = subprocess.run( [python_cmd, "-m", "venv", str(venv_path)], capture_output=True, text=True,- Confidence
- 79% confidence
- Finding
- result = subprocess.run( [python_cmd, "-m", "venv", str(venv_path)], capture_output=True, text=True, timeout=120, )
