subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if shell and sys.platform == "win32": cmd = ["powershell", "-Command", cmd] if isinstance(cmd, str) else cmd result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 93% confidence
- Finding
- result = subprocess.run( cmd, capture_output=True, text=True, encoding='utf-8', errors='ignore', shell=shell if sys.
