-
Update
lib.rs
with username, password and payload (base64 encoded) -
Run
wasm-pack build --target no-modules --release
to compile the library -
Update the built
/pkg/*.js
file to replace the__wbg_init
function with the code fromnew_init.js
-
Replace the
const base64Wasm = "{{BASE64_ENCODED_WASM}}";
in the new init function with the Base64 encoded/pkg/*.wasm
file (you can usebase64 -w 0 *.wasm > base64wasm.txt
to get the Base64 encoded string) -
Place the entire updated JavaScript code at the top of the
<script>
in thetemplate.html
file -
Serve the
template.html
and try it out!
-
Notifications
You must be signed in to change notification settings - Fork 0
nettitude/wasm-smuggler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published