Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MarinX/keylogger
/ functions
Functions
20 in github.com/MarinX/keylogger
⨍
Functions
20
◇
Types & classes
5
↓ 4 callers
Method
Close
Close file descriptor
keylogger.go:219
↓ 4 callers
Method
KeyString
KeyString returns representation of pressed key as string eg enter, space, a, b, c...
input_event.go:53
↓ 4 callers
Method
hasDevice
(str string)
keylogger.go:21
↓ 3 callers
Function
New
New creates a new keylogger for a device path
keylogger.go:36
↓ 3 callers
Method
Read
Read from file descriptor Blocking call, returns channel Make sure to close channel when finish
keylogger.go:112
↓ 2 callers
Method
Write
Write writes to keyboard and sync the event This will keep the key pressed or released until you call another write with other direction eg, if the ke
keylogger.go:134
↓ 2 callers
Method
eventFromBuffer
eventFromBuffer parser bytes into InputEvent struct
keylogger.go:212
↓ 2 callers
Method
syn
syn syncs input events
keylogger.go:203
↓ 2 callers
Method
write
write to keyboard
keylogger.go:198
↓ 1 callers
Function
FindKeyboardDevice
FindKeyboardDevice by going through each device registered on OS Mostly it will contain keyword - keyboard Returns the file path which contains events
keylogger.go:52
↓ 1 callers
Method
IsRoot
IsRoot checks if the process is run with root permission
keylogger.go:105
↓ 1 callers
Method
KeyPress
KeyPress is the value when we press the key on keyboard
input_event.go:58
↓ 1 callers
Method
KeyRelease
KeyRelease is the value when we release the key on keyboard
input_event.go:63
↓ 1 callers
Method
WriteOnce
WriteOnce method simulates single key press When you send a key, it will press it, release it and send to sync
keylogger.go:158
↓ 1 callers
Method
read
read from file description and parse binary into go struct
keylogger.go:184
Function
FindAllKeyboardDevices
Like FindKeyboardDevice, but finds all devices which contain keyword 'keyboard' Returns an array of file paths which contain keyboard events
keylogger.go:76
Function
TestBufferParser
(t *testing.T)
keylogger_test.go:18
Function
TestFileDescriptor
(t *testing.T)
keylogger_test.go:8
Function
TestWithPermission
(t *testing.T)
keylogger_test.go:43
Function
main
()
_example/main.go:10