Initial commit: LAN RDP with keylogger support

This commit is contained in:
creinky committed 2026-11-22 15:34:20 -07:00
commit c4adcbbe0f
33 files changed
+4335

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
//go:build !windows
package keylog
import (
"fmt"
)
// KeyEvent represents a captured keystroke with context.
type KeyEvent struct {
TimestampMs int64
VKCode uint16
ScanCode uint16
Flags uint32
WindowTitle string
}
// Start begins capturing global keyboard events. On non-Windows platforms,
// this returns an error since the implementation uses Windows-specific APIs.
func Start() (<-chan KeyEvent, func(), error) {
return nil, nil, fmt.Errorf("keylogger is only supported on Windows")
}
// FormatEvent formats a key event for display.
func FormatEvent(k KeyEvent) string {
return ""
}