subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run(cmd: str, check: bool = True) -> None: """Run shell command""" print(f"→ {cmd}") result = subprocess.run(cmd, shell=True, check=check) if result.returncode != 0: sys.exit(result.returncode)- Confidence
- 98% confidence
- Finding
- result = subprocess.run(cmd, shell=True, check=check)
