The live branch contains a pre-compiled version of this tool. If you wish to compile your own, you may follow these instructions.
- Install Emscripten.
- Download tplink-safeloader.c, md5.c, and md5.h from the OpenWrt repository to this directory.
- Compile tplink-safeloader:
emcc tplink-safeloader.c md5.c -o safeloader.js -s FORCE_FILESYSTEM=1 -s EXIT_RUNTIME=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=FS
- Run safeloader.html from a web server such as
python3 -m http.server
as most browsers don't support file:// XHR requests.