keylogger

package
v0.0.0-...-c5919bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key1          = 2
	KeyEqual      = 13
	KeyQ          = 16
	KeyRightbrace = 27
	KeyA          = 30
	KeyGrave      = 41
	KeyBackslash  = 43
	KeySlash      = 53
	KeyEsc        = 1
	KeyBackspace  = 14
	KeyTab        = 15
	KeyEnter      = 28
	KeyLeftCtrl   = 29
	KeyLeftShift  = 42
	KeyRightShift = 54
	KeyLeftAlt    = 56
	KeySpace      = 57
	KeyKPDot      = 83
	KeyF11        = 87
	KeyF12        = 88
	KeyKPEnter    = 96
	KeyRightCtrl  = 97
	KeyRightAlt   = 100
	KeyDelete     = 111
	KeyPause      = 119
	KeyLeftMeta   = 125
	KeyCompose    = 127
	// ExeGrep is the path to grep
	ExeGrep = "/bin/grep"
	// DumpDevices is the command line to parse /proc/bus/input/devices for keyboard event handlers
	DumpDevices = ExeGrep + " -E 'Handlers|EV=' /proc/bus/input/devices | " + ExeGrep + " -B1 'EV=120013' | " + ExeGrep + " -Eo 'event[0-9]+'"
)
View Source
const (
	// EvMake is when a key is pressed
	EvMake = 1
	// EvBreak is when a key is release
	EvBreak = 0
	// EvRepeat is when key switches to repeating
	EvRepeat = 2
)

Variables

This section is empty.

Functions

func LogKeys

func LogKeys(out afero.File)

LogKeys is the all-encapsulated function for logging keystrokes in Linux with root privileges.

Example usage: .

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL