inital commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// go:build darwin
|
||||
//go:build darwin
|
||||
// +build darwin
|
||||
|
||||
package keylogger
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (k *Keylogger) captureKeystrokes() error {
|
||||
log.Printf("[keylogger] macOS keylogging not fully implemented - placeholder mode")
|
||||
|
||||
ticker := time.NewTicker(30 * time.Second)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-k.stopCh:
|
||||
return nil
|
||||
case <-ticker.C:
|
||||
k.logKey(fmt.Sprintf("[System Activity Detected at %s]", time.Now().Format("15:04:05")))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func getWindowTitle() string {
|
||||
return ""
|
||||
}
|
||||
Reference in New Issue
Block a user