subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run(cmd, check=True, **kwargs): print(f"Running: {cmd}") r = subprocess.run(cmd, shell=True, **kwargs) if check and r.returncode != 0: sys.exit(f"Failed: {cmd}") return r- Confidence
- 85% confidence
- Finding
- r = subprocess.run(cmd, shell=True, **kwargs)
