MCPcopy Create free account

hub / github.com/MarinX/keylogger / functions

Functions20 in github.com/MarinX/keylogger

↓ 4 callersMethodClose
Close file descriptor
keylogger.go:219
↓ 4 callersMethodKeyString
KeyString returns representation of pressed key as string eg enter, space, a, b, c...
input_event.go:53
↓ 4 callersMethodhasDevice
(str string)
keylogger.go:21
↓ 3 callersFunctionNew
New creates a new keylogger for a device path
keylogger.go:36
↓ 3 callersMethodRead
Read from file descriptor Blocking call, returns channel Make sure to close channel when finish
keylogger.go:112
↓ 2 callersMethodWrite
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 callersMethodeventFromBuffer
eventFromBuffer parser bytes into InputEvent struct
keylogger.go:212
↓ 2 callersMethodsyn
syn syncs input events
keylogger.go:203
↓ 2 callersMethodwrite
write to keyboard
keylogger.go:198
↓ 1 callersFunctionFindKeyboardDevice
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 callersMethodIsRoot
IsRoot checks if the process is run with root permission
keylogger.go:105
↓ 1 callersMethodKeyPress
KeyPress is the value when we press the key on keyboard
input_event.go:58
↓ 1 callersMethodKeyRelease
KeyRelease is the value when we release the key on keyboard
input_event.go:63
↓ 1 callersMethodWriteOnce
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 callersMethodread
read from file description and parse binary into go struct
keylogger.go:184
FunctionFindAllKeyboardDevices
Like FindKeyboardDevice, but finds all devices which contain keyword 'keyboard' Returns an array of file paths which contain keyboard events
keylogger.go:76
FunctionTestBufferParser
(t *testing.T)
keylogger_test.go:18
FunctionTestFileDescriptor
(t *testing.T)
keylogger_test.go:8
FunctionTestWithPermission
(t *testing.T)
keylogger_test.go:43
Functionmain
()
_example/main.go:10