diff --git a/CMakeLists.txt b/CMakeLists.txt index ac8c651..27bdc77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -230,6 +230,20 @@ if (EMSCRIPTEN) configure_file(${CMAKE_SOURCE_DIR}/index-${TARGET}-tmpl.html ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/index.html @ONLY) configure_file(${CMAKE_SOURCE_DIR}/style.css ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/style.css @ONLY) + + # keytap3-gui + set(TARGET keytap3-gui) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${TARGET}) + + set_target_properties(${TARGET} PROPERTIES LINK_FLAGS " \ + -s TOTAL_MEMORY=536870912 \ + -s FORCE_FILESYSTEM=1 \ + -s LZ4=1 \ + --preload-file ${PROJECT_SOURCE_DIR}/data/ggwords-6-gram.dat.binary@/data/ \ + ") + + configure_file(${CMAKE_SOURCE_DIR}/index-${TARGET}-tmpl.html ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/index.html @ONLY) + configure_file(${CMAKE_SOURCE_DIR}/style.css ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/style.css @ONLY) endif() if (NOT EMSCRIPTEN) diff --git a/README.md b/README.md index ed0f08c..98ae5b4 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ A more detailed description of the tool is available here: [Keytap2 discussion]( [CTF: can you guess the text being typed?](https://ggerganov.github.io/keytap-challenge/) [Try it online:](https://keytap2.ggerganov.com) - + ### Keytap3 @@ -39,6 +39,8 @@ automated and does not require any manual intervation during the text recovery p [Video: short demo of using Keytap3](https://youtu.be/5aphvxpSt3o) +[GUI for Keytap3](https://keytap3.ggerganov.com) + [Check if your keyboard is vulnerable to Keytap:](https://keytap3.ggerganov.com) @@ -99,6 +101,7 @@ Short summary of the available tools. If the status of the tool is not **stable* | **keytap-gui** | gui | **stable** | | **keytap2-gui** | gui | **stable** | | **keytap3** | text | **stable** | +| **keytap3-gui** | gui | **stable** | | - | *extra* | - | | **guess-qp** | text | experiment | | **guess-qp2** | text | experiment | @@ -107,7 +110,6 @@ Short summary of the available tools. If the status of the tool is not **stable* | **subreak** | text | experiment | | **key-average-gui** | gui | experiment | | **keytap2** | text | experiment | -| **keytap3-gui** | gui | experiment | ## Tool details @@ -157,6 +159,8 @@ Short summary of the available tools. If the status of the tool is not **stable* ./keytap-gui input0.kbd [input1.kbd] [input2.kbd] ... [-cN] [-CN] + Online demo: https://keytap.ggerganov.com + --- * **keytap2-gui** record.kbd n-gram-dir [-pN] [-cN] [-CN] @@ -165,6 +169,8 @@ Short summary of the available tools. If the status of the tool is not **stable* ./keytap2-gui record.kbd ../data + Online demo: https://keytap2.ggerganov.com + --- * **keytap3** @@ -177,6 +183,16 @@ Short summary of the available tools. If the status of the tool is not **stable* --- +* **keytap3-gui** + + GUI version of the **keytap3** tool. + + ./keytap3-gui input.kbd ../data [-cN] [-CN] [-pF] [-tF] [-FN] [-fN] + + Online demo: https://keytap3-gui.ggerganov.com + + --- + * **view-full-gui** Visualize waveforms recorded with the **record-full** tool. Can also playback the audio data. diff --git a/index-keytap2-gui-tmpl.html b/index-keytap2-gui-tmpl.html index 82ebd1a..502e1a8 100644 --- a/index-keytap2-gui-tmpl.html +++ b/index-keytap2-gui-tmpl.html @@ -269,6 +269,6 @@