Skip to content

Add bonus level: Lua Metatable Hooks - #2

Merged
ZayanKhan-12 merged 1 commit into
mainfrom
add-lua-metatable-level
Aug 11, 2026
Merged

Add bonus level: Lua Metatable Hooks#2
ZayanKhan-12 merged 1 commit into
mainfrom
add-lua-metatable-level

Conversation

@ZayanKhan-12

Copy link
Copy Markdown
Owner

Re-homes the Lua metatable __index hook challenge from upstream skills#128 (by @TheDarkThief) into a standalone Bonus-Levels/Lua-Metatable-Hooks/ folder.

Why a bonus folder: the original PR targeted Season-4/Level-1, but upstream now has a full, differently-themed Season 4 ("ProdBot"). Placing the level under Bonus-Levels/ avoids the collision and keeps the Season 4 narrative intact.

Included: code.lua, hack.lua, tests.lua, hint.txt, solution/, and a self-contained README.md. Path references updated to the new location. The devcontainer now installs lua5.4 + luarocks + busted and adds the sumneko.lua extension (all upstream ProdBot setup kept; the PR's stale devcontainer/codeql rollbacks were dropped).

Verified locally with busted: tests.lua 2/2 pass, solution/solution_test.lua 3/3 pass, and hack.lua fails against the vulnerable code.lua by design (that failing exploit test is the challenge).

Re-homes the Lua metatable __index hook RCE challenge from
skills#128 (by @TheDarkThief) into a standalone
Bonus-Levels/ folder so it coexists with the existing Season 4
"ProdBot" narrative instead of colliding with Season-4/Level-1.

- Level content: code.lua, hack.lua, tests.lua, hint.txt, solution/
- Path references updated to the new location
- devcontainer: install lua5.4 + luarocks + busted; add sumneko.lua
  extension (kept all upstream ProdBot setup; dropped the PR's stale
  devcontainer/codeql rollbacks)

Verified locally with busted: tests.lua 2/2 and solution_test.lua 3/3
pass; hack.lua fails against the vulnerable code by design.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ZayanKhan-12
ZayanKhan-12 merged commit 5b51465 into main Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants