Created
January 19, 2021 14:47
-
-
Save khyberspache/48a7c3c166c086f6a2c378e1f21e6eb3 to your computer and use it in GitHub Desktop.
Example of loading windows DLL and Procs for keylogging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ( | |
user32 = syscall.NewLazyDLL("user32.dll") | |
getAsyncKeyState = user32.NewProc("GetAsyncKeyState") | |
getKeyboardLayout = user32.NewProc("GetKeyboardLayout") | |
getKeyState = user32.NewProc("GetKeyState") | |
toUnicodeEx = user32.NewProc("ToUnicodeEx") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment