subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
self._prefix = ["adb"] + (["-s", device] if device else []) def shell(self, cmd: str, timeout: int = 30) -> str: r = subprocess.run(self._prefix + ["shell", cmd], capture_output=True, text=True, timeout=timeout) return r.stdout.strip()- Confidence
- 96% confidence
- Finding
- r = subprocess.run(self._prefix + ["shell", cmd], capture_output=True, text=True, timeout=timeout)
