subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run_cmd(cmd, check=True, capture=False): """Run a shell command.""" try: result = subprocess.run( cmd, shell=True, check=check, capture_output=capture, text=True )- Confidence
- 98% confidence
- Finding
- result = subprocess.run( cmd, shell=True, check=check, capture_output=capture, text=True )
