ctf-box
CTF / Boot-to-Root Box
Own a whole machine: recon -> service triage -> foothold -> user.txt -> privesc -> root.txt.
Run everything from the engagement tooling host (e.g. Kali in tmux), capture into targets/<eng>/.
Track progress in targets/<eng>/Approach.md -- work the current phase's open items, mark [x] as each
lands; honor GATE 1 (no hand-rolled exploit before its wiki item is [x]), GATE 2 (no exploit step [x]
without a poc/ image), GATE 3 (exhausted vector -> [!] + one Deadends.md line, never re-run it).
Run python3 scripts/campaign.py next before every exploit step, and done/pass-done after each lands. The driver reprints the required posture (msf-shell rule, searchsploit+msf-first, the RTL stop-tells) and is the forcing function now that the drift-guard block is advisory-only - do not free-hand a box off the board.
Standing mandate: Wiki-first, tools-before-scripts (GATE 1, all phases)
This mandate stands over every phase below. Before writing ANY custom script or recalling an exploit from memory:
qmd_query "<tech/version> exploit"andqmd_query "<service> privilege escalation"via wiki-search MCP. Read matches. If the MCP is down (it drops mid-session), runbash scripts/wiki-query.sh "<tech> exploit"(same qmd index;-kfor an exact CVE) - do NOT skip wiki-first or fall back to grep.- Pull payloads from
wiki/payloads/and chains fromwiki/cheatsheets/attack-chains.md+wiki/cheatsheets/cve-arsenal.md, orSkill(arsenal)to resolve the exact file. - Privesc reference:
wiki/techniques/linux/linux-privesc.md/wiki/cheatsheets/linux-privesc.md(or windows-privesc). Only after the wiki has nothing do you write a custom PoC. Do not reinvent what the wiki already documents.