UMDCTF 2023-i-heart-wasm

Zengan 2025-09-18 10:10:37 319 0 返回题目详情


我们可以在 wasm 二进制文件中嵌入自定义部分,并从 JavaScript 中访问它们。

控制台输入:

WebAssembly.compileStreaming(fetch("./pkg/wasm_test_bg.wasm"))
.then(mod => {
let flag = "";
for (let i = 42; i >= 0; i--) {
const sections = WebAssembly.Module.customSections(mod, i.toString());
const decoder = new TextDecoder();
const text = decoder.decode(sections[0]);
flag += text;
}
console.log(flag);
});

参考文档:https://rustwasm.github.io/docs/book/reference/js-ffi.html#custom-sections

分类:WEB
image
作者:Zengan

1

提交

0

收入

相关WriteUP

  • cookiehead

    ***收费WriteUP请购买后查看,VIP用户可免费查看***

    • WEB
    • 8月前
  • sqli-0x1 Writeup

    ***收费WriteUP请购买后查看,VIP用户可免费查看***

    • WEB
    • 2年前
  • [HackINI-2022] lfi WriteUp

    ***收费WriteUP请购买后查看,VIP用户可免费查看***

    • WEB
    • 2年前
  • just-work-type

    ***收费WriteUP请购买后查看,VIP用户可免费查看***

    • WEB
    • 2年前
  • SQL注入.2

    ***收费WriteUP请购买后查看,VIP用户可免费查看***

    • WEB
    • 11月前
问题反馈