Local, offline security notebook. No build step, no dependencies.
Open index.html directly, or serve it:
python serve.py # http://127.0.0.1:8000
- Create
content/11-yourtopic.js:
registerLesson({
id: 'yourtopic', track: 'systems', order: 11, level: 'Advanced', minutes: 40,
title: 'Title', summary: 'One line.',
sections: [{ h: 'Heading', html: '<p>HTML here</p>' }],
quiz: [{ q: '?', options: ['a','b'], answer: 1, why: '...' }], // optional
challenge: { title: '', brief: '<p>..</p>', hint: '', mount(el, solve) { W.flagBox(el, 'FLAG{x}', solve); } }, // optional
});- Add
<script src="content/11-yourtopic.js"></script>toindex.html.
New track: registerTrack({id, title, blurb}) in content/tracks.js.
Widgets (assets/widgets.js): W.flagBox, W.terminal, W.esc, W.b64u.
Progress is stored in localStorage (key cyberlab-progress-v1).