Files
windows-rdp-keylogger/cmd/host/embed.go
T

22 lines
907 B
Go
Raw Normal View History

package main
// embeddedPasswordHash is baked in at build time by build-host.ps1 via:
//
// go build -ldflags "-X main.embeddedPasswordHash=<argon2id hash>"
//
// Left empty for a plain `go build`, in which case the host falls back to
// interactive first-run passphrase setup backed by config.json.
var embeddedPasswordHash string
// embeddedConnectAddr is optionally baked in at build time by
// build-host.ps1 via:
//
// go build -ldflags "-X main.embeddedConnectAddr=<client-ip:port>"
//
// If set, and -connect isn't passed at runtime, this host dials out to
// this address by default instead of listening — for a host built
// specifically to call back to one particular client (e.g. a laptop
// built to always call home to a desktop). Left empty by default, so a
// build with no -connect flag still falls back to the normal interactive
// listen-address picker.
var embeddedConnectAddr string