Go to file
2022-09-13 12:28:40 -05:00
.vscode + Finished authentication 2022-09-10 14:28:54 -05:00
security + Finished authentication 2022-09-10 14:28:54 -05:00
smartkeyboard/auth + Finished authentication 2022-09-10 14:28:54 -05:00
util added utility to remove fenced code blocks from final html docs since srcweave is a pain in that regard 2022-09-08 13:35:51 -05:00
.gitattributes added gitattributes with linguist ignores 2022-09-10 14:33:46 -05:00
.gitignore Added make file to manage literacy commands and tests 2022-09-08 13:32:08 -05:00
Dependencies.md + Finished authentication 2022-09-10 14:28:54 -05:00
EnvironmentVariables.md + Finished authentication 2022-09-10 14:28:54 -05:00
Makefile added server.md scaffolding 2022-09-13 12:28:40 -05:00
ReadMe.md added server.md scaffolding 2022-09-13 12:28:40 -05:00
Server.md added server.md scaffolding 2022-09-13 12:28:40 -05:00

GoSmartKeyboard Daemon

Introduction

This is a simple websocket server meant to accept a single connection, authenticate it, and stream UTF16 characters and send them as key strokes into the window manager.

The goal of this particular daemon is not to perfectly emulate a HID, so it may trip up on Windows UAC or game anticheat systems.

Some points about the design of this project:

  • Written in literate go, so this markdown book is actually the source code
  • The project is test-driven
  • KISS principle above All
  • Small and light core
  • Advanced features provided via plugins
  • Well defined threat model

Why a smart keyboard?

Keyboards have been an essential element of computing since the beginning, however they have not evolved much. Everything has a smart variant, so why not keyboards?

A smart keyboard could, for example, be used for the following:

  • Typical macros
  • Buffer typed text before sending it to the client, preventing invalid commands or input. (This would also save some CPU on low power machines, this is how many early teletype systems worked)
  • Clever CLI tricks, think vim or cowsay on your keyboard!
  • Isolated password manager
  • One Time Passwords
  • Virtual keyboard switch or communicating with multiple daemons at once
  • Easily attach to VMs
  • Text storage, such as configuration or SSH pubkeys
  • On-the-fly spell checking or translation
  • On-the-fly encryption (ex: PGP sign every message you type), isolated from the perhaps untrusted computer
  • Easy layout configuration
  • Delay keystrokes by a few dozen or so milliseconds to reduce key stroke timing biometrics

Daemon Entrypoint

First, we call


--- entrypoint

    func main(){
        server.StartServer()
    }

---


--- /main.go
    package main

    import(
        "keyboard.voidnet.tech/server"
    )


    @{entrypoint}

---



--- set network bind globals

    var string unixSocketPath
    var bool unixSocketPathExists
    var string tcpBindAddress
    var bool tcpBindAddressExists
    var string tcpBindPort
    var bool tcpBindPortExists

---