os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
with open(PLIST_FILE, "w") as f: f.write(plist_content) result = os.system(f"launchctl load '{PLIST_FILE}' 2>/dev/null") if result == 0: print(f"✅ 定时任务已设置:每天 {hour:02d}:{minute:02d} 执行") else:- Confidence
- 89% confidence
- Finding
- result = os.system(f"launchctl load '{PLIST_FILE}' 2>/dev/null")
