T06 · System Persistence
- Location
scripts/fetch_xhs_ai.py:407- Finding
Persistent Scheduled Execution Through LaunchAgent or Crontab
- Content
View full analysis
EnvironmentVariables {ENV_KEY} {api_key} """ plist_content = f''' Label {PLIST_LABEL} ProgramArguments /usr/bin/python3 {script_path} --no-open StartCalendarInterval Hour 16 Minute 0 StandardOutPath {log_path} StandardErrorPath {log_path} RunAtLoad {env_section} ''' plist_path.write_text(plist_content, encoding="utf-8") try: subprocess.run(["launchctl", "load", str(plist_path)], check=True, capture_output=True) info("订阅成功! 每天 16:00 自动生成小红书 AI 日报") info(f"日报目录: ~/Downloads/QoderReports/") info(f"日志: {log_path}") return True except subp ...[truncated 2415 chars]- Remediation
View remediation
