0%

WASM pwn环境准备

WASM pwn环境

wasm编译环境

1
2
3
4
5
6
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
echo 'source "/mnt/c/Users/17360/Desktop/emsdk/emsdk_env.sh"' >> $HOME/.zprofile
source ~/.zprofile

安装成功:

image-20211212021225243

wabt工具包

1
2
3
4
5
6
git clone --recursive https://github.com/WebAssembly/wabt
cd wabt
mkdir build
cd build
cmake ../
cmake --build .

编译成功:

image-20211212023400563

image-20211212023531138

将wabt工具包路径加入环境变量:

1
export PATH=$PATH:/mnt/c/Users/17360/Desktop/wabt/build/

image-20211212024435269

wasmtime(JIT-runtime)

1
curl https://wasmtime.dev/install.sh -sSf | bash

wasmtime

image-20211212030241113