GiacomoLaw / Keylogger

A simple keylogger for Windows, Linux and Mac
https://simple-keylogger.github.io/
MIT License
2.1k stars 623 forks source link

question regarding installing on windows #80

Closed gartha1 closed 9 months ago

gartha1 commented 5 years ago

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

      ^~~~~~~~~~~

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?

GiacomoLaw commented 5 years ago

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

Petefr1 commented 4 years ago

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)) ===|

ItsK1tty commented 4 years ago

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

Bourbon8464 commented 1 year ago

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

mydarkthawts commented 9 months ago

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

GiacomoLaw commented 9 months ago

Thanks very much @mydarkthawts!

mydarkthawts commented 9 months ago

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.

Emman2001-000 commented 4 months ago

Untitled

How can i fix this when i Copy the kylogger.exe from my External HDD to another Computer this was the Result

GiacomoLaw commented 4 months ago

How can i fix this when i Copy the kylogger.exe from my External HDD to another Computer this was the Result

Installing Microsoft Visual C++ should fix this

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170