--- import Base from '../layouts/Base.astro'; import HeroLoop from '../components/HeroLoop.astro'; import Marquee from '../components/Marquee.astro'; import Operator from '../components/Operator.astro'; import SectionHeader from '../components/SectionHeader.astro'; import RecordRow from '../components/RecordRow.astro'; import Callout from '../components/Callout.astro'; import { CATEGORIES, categoryOf } from '../lib/taxonomy'; import { allSheets, categoryCounts, sheetHref, isReportGuide } from '../lib/sheets'; import { payloadsByTopic } from '../lib/payloads'; import { internalBySection, internalRootPages } from '../lib/internal'; import { hackTricksBySection } from '../lib/hacktricks'; import { url } from '../lib/url'; const sheets = await allSheets(); const counts = await categoryCounts(); const total = sheets.length; const domains = CATEGORIES.filter((c) => (counts[c.slug] ?? 0) > 0).length; const payloadTopics = await payloadsByTopic(); const payloadPages = payloadTopics.reduce((n, g) => n + g.count, 0); const internalSections = await internalBySection(); const internalRoot = await internalRootPages(); const internalPages = internalSections.reduce((n, g) => n + g.count, 0) + internalRoot.length; const hackTricksSections = await hackTricksBySection(); const hackTricksPages = hackTricksSections.reduce((n, g) => n + g.count, 0); // Latest sheet date, for the operator readout. const latest = sheets .map((s) => s.data.updated) .filter((d): d is string => !!d) .sort() .at(-1); const updatedLabel = latest ? `${latest.slice(0, 7).replace('-', '.')} · latest` : '2026 · current'; // ── Hero: six flagship shelves, one accent each (a designed showcase; the // full taxonomy is in the shelves grid below). Real routes + counts. ── const HERO = [ { slug: 'active-directory', accent: 'pine' }, { slug: 'enumeration', accent: 'love' }, { slug: 'exploitation', accent: 'gold' }, { slug: 'privilege-escalation', accent: 'foam' }, { slug: 'web', accent: 'iris' }, { slug: 'dfir', accent: 'rose' }, ]; const heroShelves = HERO.map((h, i) => { const c = categoryOf(h.slug); return { n: String(i + 1).padStart(2, '0'), label: c.tag, path: url(h.slug), accent: h.accent, desc: c.blurb }; }); // ── Manifest band lanes ── const laneTitles = [ { n: '01', title: 'DΛΣMӨП', accent: 'iris' }, { n: '02', title: 'Cheatsheets', accent: 'foam' }, { n: '03', title: 'Offline search', accent: 'gold' }, { n: '04', title: 'Copy-ready', accent: 'pine' }, { n: '05', title: `${CATEGORIES.length} shelves`, accent: 'love' }, { n: '06', title: 'Zero fluff', accent: 'rose' }, ]; const laneMeta = [ { tag: 'Sys', text: 'Open notebook', accent: 'iris' }, { tag: 'Search', text: 'Pagefind · offline', accent: 'love' }, { tag: 'Sheets', text: `${total} · curated`, accent: 'foam' }, { tag: 'Theme', text: 'Three palettes · two modes', accent: 'gold' }, { tag: 'Field', text: 'AD · web · privesc', accent: 'pine' }, { tag: 'Mirror', text: 'Three upstream trees', accent: 'love' }, { tag: 'Doctrine', text: 'Terse, not thin', accent: 'rose' }, ]; // ── Index rows: recent sheets, bucketed for the client-side filter ── const byDate = [...sheets].sort((a, b) => (b.data.updated ?? '').localeCompare(a.data.updated ?? '')); // Recent, but spread across shelves: cap 3 per category so one busy shelf // (the CPTS workflow, freshest by date) does not fill the whole index and the // Sheets / Workflow filters both have rows. const perCat: Record = {}; const recentRaw: typeof byDate = []; for (const entry of byDate) { const c = entry.data.category; perCat[c] = (perCat[c] ?? 0) + 1; if (perCat[c] > 3) continue; recentRaw.push(entry); if (recentRaw.length >= 24) break; } const recent = recentRaw .map((entry, i) => { const cat = categoryOf(entry.data.category); const bucket = entry.data.category === 'pentest-workflow' ? 'workflow' : 'sheets'; const metaVal = entry.data.updated ? entry.data.updated.replace(/-/g, '.') : entry.data.difficulty.toUpperCase(); const tags = entry.data.tags.slice(0, 2).join(' · '); return { href: url(sheetHref(entry)), n: String(i + 1).padStart(2, '0'), title: entry.data.title, reportGuide: isReportGuide(entry), kind: cat.tag, accent: cat.accent, meta: metaVal, excerpt: entry.data.description || `${cat.title} — terse, tested, kept current.`, tagline: [cat.title, tags].filter(Boolean).join(' · '), bucket, }; }); // ── Shelves grid: the full taxonomy ── const shelfCards = CATEGORIES.map((cat, i) => ({ n: String(i + 1).padStart(2, '0'), slug: cat.slug, label: cat.title, accent: cat.accent, count: counts[cat.slug] ?? 0, })); // ── Mirrors manifest: the two swisskyrepo trees + their largest sub-trees ── const topPayloads = [...payloadTopics].sort((a, b) => b.count - a.count).slice(0, 2); const topInternal = [...internalSections].sort((a, b) => b.count - a.count).slice(0, 2); const mirrorRows = [ { n: '01', path: 'payloads/', count: payloadPages }, { n: '02', path: 'internal/', count: internalPages }, { n: '03', path: 'hacktricks/', count: hackTricksPages }, { n: '04', path: `payloads/${topPayloads[0]?.slug ?? ''}/`, count: topPayloads[0]?.count ?? 0 }, { n: '05', path: `internal/${topInternal[0]?.slug ?? ''}/`, count: topInternal[0]?.count ?? 0 }, { n: '06', path: `hacktricks/section/${hackTricksSections[0]?.slug ?? ''}/`, count: hackTricksSections[0]?.count ?? 0 }, ]; ---
Pentesting: How Attacks Work — learn the foundations, follow interactive diagrams, and connect the attacks from DAEMONSEC write-ups to their tools.
{recent.map((r) => ( ))}
Showing 10 of {total} sheets Browse all {total} sheets ↗
Third party / mirrored

Some trees are borrowed.

Three directories are generated from upstream security references: swisskyrepo's PayloadsAllTheThings and InternalAllTheThings, plus an attributed selection from HackTricks — mirrored because the official site has gotten harder to read on its own terms, buried under ads and AI-generated filler. Same content, read clean, searchable offline, and every page still links back to its exact source. Attribution, modification notes, and licences live on the credits page.

Trees
03
Licence
Upstream
Sync
Scheduled
Edits
None
Read the credits →
Mirror manifest // upstreamswisskyrepo
{mirrorRows.map((m) => (
{m.n}{m.path}{m.count} files
))}
Authorised testing, CTFs and education only. HackTricks-derived pages are also restricted to non-commercial use under CC BY-NC 4.0. Know your scope, and get permission first, before you touch a system.