subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
log(f"开始: {description}") log(f"命令: {cmd}") result = subprocess.run(cmd, shell=True, capture_output=True, text=True) if result.returncode != 0: log(f"❌ 失败: {description}")- Confidence
- 91% confidence
- Finding
- result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
