subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for opt in (extra_options or []): cmd.extend(['-o', opt]) result = subprocess.run(cmd, capture_output=True, text=True) if result.returncode == 0: output = result.stdout.strip()- Confidence
- 94% confidence
- Finding
- result = subprocess.run(cmd, capture_output=True, text=True)
