subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def execute(self, command: str, timeout: int = 60) -> ExecutionResult: logger.debug("local_execute", command=command[:80]) try: result = subprocess.run( command, shell=self._shell, capture_output=True,- Confidence
- 97% confidence
- Finding
- result = subprocess.run( command, shell=self._shell, capture_output=True, text=True, timeout=timeout,
