os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
if not deps_ok: print() if confirm("现在自动安装依赖?", default=True): os.system(f"{sys.executable} -m pip install -q requests python-dotenv") print(f" {GREEN}✓{RESET} 依赖已安装") else: print(f" {GRAY}跳过依赖安装。手动跑: pip install -r requirements.txt{RESET}")- Confidence
- 91% confidence
- Finding
- os.system(f"{sys.executable} -m pip install -q requests python-dotenv")
