Skip to content

A Javascript toolkit for wasm exploitation and reverse.

Notifications You must be signed in to change notification settings

ExcelliumSA/WASMToolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

WASM toolkit

A Javascript toolkit for wasm exploitation and reverse.

Goals

Make WASM exploitation and reverse as easy as possible.

Currently available

The memory wrapper

A wrapper for the memory used to perform various actions on the memory like reading, writing and searching on multiple types:

  • 8, 16, 32 bits unsigned numbers
  • 8, 16, 32 bits signed numbers
  • bytes arrays
  • strings

To use it, you need to instantiate the classe contained in the memoryWrapper.js file in the console of your browser (Copy/Paste). This must be done when the debugger is not pausing the execution of the script (not on a breakpoint).

Once done, you can instantiate the classe when the WASM memory buffer is created by the browser, I usually breakpoint in the wasm code.

  • Chrome: var wrapper = new memoryWrapper($memory.buffer); or var wrapper = new memoryWrapper(wasmMemory.buffer); if you are not stopped on a breakpoint.

  • Firefox: var wrapper = new memoryWrapper(wasmMemory.buffer);

TODO

  • Add float support
  • Add 64 bits signed and unsigned support

About

A Javascript toolkit for wasm exploitation and reverse.

Topics

Resources

Stars

Watchers

Forks