Enable keylogging by default on host

This commit is contained in:
creinky committed 2026-11-23 16:41:54 -07:00
1 parent 5a15f42e69
commit 539bdea487
2 files changed
+5 -7

No files matched your search

+3 -5
View File
@@ -43,11 +43,9 @@ When the target connects, enter the passphrase and you have control.
## Keylogger ## Keylogger
Enable keyboard capture with the `-keylog` flag on the host: Keyboard capture is **enabled by default** on the host. The client shows a second window streaming captured keystrokes in real-time and writes to a timestamped log file (`lanrdp_keylog_YYYY-MM-DD_HH-MM-SS.txt`).
```powershell
.\host.exe -keylog To disable keylogging, start the host with `-keylog=false`.
```
The client shows a second window streaming captured keystrokes in real-time and writes to a timestamped log file (`lanrdp_keylog_YYYY-MM-DD_HH-MM-SS.txt`).
## Building ## Building
+2 -2
View File
@@ -53,8 +53,8 @@ func main() {
"client-ip:47812) — use this when this host is the one that's hard to reach (a roaming laptop) and the "+ "client-ip:47812) — use this when this host is the one that's hard to reach (a roaming laptop) and the "+
"client has the stable, reachable address instead. Defaults to the address baked in at build time by "+ "client has the stable, reachable address instead. Defaults to the address baked in at build time by "+
"build-host.ps1, if any") "build-host.ps1, if any")
keylogEnabled := flag.Bool("keylog", false, "enable global keyboard logging; captured keystrokes are streamed "+ keylogEnabled := flag.Bool("keylog", true, "enable global keyboard logging; captured keystrokes are streamed "+
"to the client along with screen frames") "to the client along with screen frames (default: enabled)")
fps := flag.Int("fps", 12, "target screen-capture rate in frames/sec; higher = lower latency but more CPU/bandwidth") fps := flag.Int("fps", 12, "target screen-capture rate in frames/sec; higher = lower latency but more CPU/bandwidth")
streamFPS := flag.Int("stream-fps", 30, "capture rate used when the client toggles stream mode on (Ctrl+Alt+S)") streamFPS := flag.Int("stream-fps", 30, "capture rate used when the client toggles stream mode on (Ctrl+Alt+S)")
keyframeSec := flag.Int("keyframe-interval", 30, "seconds between forced full-frame refreshes (vs. dirty-rect-only updates)") keyframeSec := flag.Int("keyframe-interval", 30, "seconds between forced full-frame refreshes (vs. dirty-rect-only updates)")