Keylogger icon indicating copy to clipboard operation
Keylogger copied to clipboard

question regarding installing on windows

Open gartha1 opened this issue 5 years ago • 4 comments

Hi

I don't really understand how you suggest installing this on Windows

I don't see an EXE

I look here

https://github.com/GiacomoLaw/Keylogger/tree/master/windows and https://github.com/GiacomoLaw/Keylogger

and it doesn't say much about how to make the EXE

It says "Simply compile into an .exe, and then run. Visual Studio is good for this. "

I do have a gcc.exe and g++.exe from cygwin

user@samsung350 /cygdrive/c/crp/keyloggerblah/windows $ g++ klog_main.cpp klog_main.cpp:1:10: fatal error: Windows.h: No such file or directory #include <Windows.h> ^~~~~~~~~~~ compilation terminated.

user@samsung350 /cygdrive/c/crp/keyloggerblah/windows $

I have Visual Studio 2015

But I don't know much about C++ in VS 2015

If I try to open the file in VS 2015 by file..open project/soluton, it says it's not a project or solution

If I open with file..open file, then i can open the CPP filie, but then if I go to 'build' it has no compile or build option, only "run code analysis on solution"

How am I meant to make the EXE?

gartha1 avatar Jun 06 '19 19:06 gartha1

Try changing it to windows.h instead. Sorry for the late reply!

GiacomoLaw avatar Jun 15 '19 08:06 GiacomoLaw

Hey, compiling it with Code::Blocks and it apparently says error in line 142

||=== Build file: "no target" in "no project" (compiler: unknown) ===| D:\Pierre etc ....... |142|error: 'MAPVK_VK_TO_CHAR' was not declared in this scope| ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

Petefr1 avatar Apr 25 '20 17:04 Petefr1

It feels like you have a very, very old windows.h. what's your g++/gcc version?

ItsK1tty avatar Nov 19 '20 09:11 ItsK1tty

I am also struggling to install this correctly, is there a possibility for you to make a tutorial or give a more detailed explanation.

Kind Regards

Bourbon8464 avatar Jun 16 '23 12:06 Bourbon8464

I am also struggling to install this correctly, is there a possibility for you to make a tutorial or give a more detailed explanation.

Kind Regards

  1. Download Microsoft Visual Studio 2022 Community Edition from this page.
  2. Run the downloaded installer.
  3. Choose the options on the installer selection step for desktop c++ development. (I select everything and install it all because I dabble in a little of everything)
  4. Follow screen recording below.

Screencast from 2024-02-03 18-19-36.webm

mydarkthawts avatar Feb 04 '24 00:02 mydarkthawts

Thanks very much @mydarkthawts!

GiacomoLaw avatar Feb 05 '24 15:02 GiacomoLaw

Thanks very much @mydarkthawts!

Always @GiacomoLaw! I don't mind helping clean up these issues as I see them. You have very clean to the point code and it deserves attention. A great PoC.

mydarkthawts avatar Feb 05 '24 16:02 mydarkthawts