subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""运行单个检查,返回(是否成功, 标准输出, 标准错误)""" print(f"\n🔍 开始检查: {check['name']}") try: result = subprocess.run( check["command"], shell=True, capture_output=True,- Confidence
- 94% confidence
- Finding
- result = subprocess.run( check["command"], shell=True, capture_output=True, text=True, timeout=300 )
