subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_json(command: list[str], check: bool = True) -> dict: completed = subprocess.run(command, check=check, text=True, capture_output=True) if not completed.stdout.strip(): return { "status": "no-output",- Confidence
- 70% confidence
- Finding
- completed = subprocess.run(command, check=check, text=True, capture_output=True)
