https://github.com/keisukeyamashita/go-macos-keylogger
Go written keylogger for macOS
https://github.com/keisukeyamashita/go-macos-keylogger
Last synced: 5 months ago
JSON representation
Go written keylogger for macOS
- Host: GitHub
- URL: https://github.com/keisukeyamashita/go-macos-keylogger
- Owner: KeisukeYamashita
- License: apache-2.0
- Created: 2021-10-25T00:38:28.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T12:37:38.000Z (almost 4 years ago)
- Last Synced: 2025-04-01T01:39:53.687Z (6 months ago)
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go macOS Keylogger
> Go written keylogger utils for macOS
_NOTE: This is in development phase, don't use in production_
## Limitations
⚠ Currently, this package is not thread safe. If you are planning in multiple thread, please wait for development.
## Usage
Using this package is super easy and Go native.
```golang
package mainimport (
"fmt"
"log""github.com/KeisukeYamashita/go-macos-keylogger/pkg/keyboard"
"github.com/KeisukeYamashita/go-macos-keylogger/pkg/keylogger"
)func main() {
kl, err := keylogger.New()
if err != nil {
log.Fatal(err)
}f := func(key keyboard.Key, state keyboard.State) {
fmt.Println(key)
}kl.Listen(f)
}
```will output
```console
$ go run main.go
```## Maintainers
* [@KeisukeYamashita](https://github.com/KeisukeYamashita)
## LICENSE
Copyright 2021 Go macOS KeyLogger contributors. This package is released under the Apache License 2.0.