T03 · Remote Payload Retrieval and Execution
- Location
scripts/setup.py:59- Finding
Unpinned Remote Code Is Downloaded, Installed, and Executed
- Content
View full analysis
1 else ""} {auth_url} "{dest}"', timeout=120) if ok: return True, out # Fallback: try without auth (public repo) if token: ok2, out2 = run(f'git clone {"--depth 1" if depth > 1 else ""} {url} "{dest}"', timeout=120) return ok2, out2 return ok, out ``` ```python ok, out = git_clone_with_auth(BACKEND_REPO, str(dest.parent)) if ok: # Rename if cloned as douyin-agent-master directly actual = home / "douyin-agent-master" if actual.is_dir() and not dest.is_dir(): dest = actual print(f" [OK] Cloned to: {dest}") project = dest ``` ```python ok, out = git_clone_with_auth( "https://github.com/HNC87/douyin-automation-skill.git", str(ct_dest.parent / "douyin-automation-skill") ) if ok: # Creator tools are in the skill repo src = ct_dest.parent / "douyin-automation-skill" / "assets" if src.exists(): import shutil ct_dest.mkdir(parents=True, exist_ok=True) for f in src.iterdir(): if f.suffix in [".mjs", ".js"]: shutil.copy(f, ct_dest / f.name) print(f" [OK] Copied to: {ct_ ...[truncated 4290 chars]- Remediation
View remediation
