subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def check_command(cmd): try: subprocess.run(["command", "-v", cmd], check=True, capture_output=True, shell=True) return True except subprocess.CalledProcessError: return False- Confidence
- 96% confidence
- Finding
- subprocess.run(["command", "-v", cmd], check=True, capture_output=True, shell=True)
