How mystigan/keylogger works
This small Go program captures terminal keystrokes, writes each rune to test.txt, and displays the pressed key. Pressing Escape ends the loop; deferred cleanup closes the keyboard and file. The source confirms terminal capture and file output, but does not establish global capture or any of the README’s proposed future features.
Main entry points: keyLogger.go Key logger
Components 5
Runtime
- Key logger
keyLogger.go
Other components
- User
- Keyboard library
- Terminal output
- test.txt
Connections 5
- User → Keyboard library: presses keys
- Key logger → Keyboard library: opens and reads
- Keyboard library → Key logger: sends events
- Key logger → test.txt: writes runes
- Key logger → Terminal output: prints status