Results 1 to 16 of 16

Thread: Creating a keylogger

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Pittshburgh, PA (Duh)
    Posts
    6
    Hey all. I've been wondering recently how you could get a user's keyboard input even if your program doensn't have focus.
    That is, your program is either invisable, minimized, or in the background yet everything that someone is typing into Word or AOL is constantly being added to a text box on your program as well as the desired text box on Word or AOL.

    Please help me. Thank you!
    "I'm not a VB newbie... I'm just VB-knowledgely challenged."

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    you could use a timer and GetAsyncKeyState, but this is usually not good enough. C++ alows for a global hook to do this and i just saw some VB code to track mouse movements, so you may be able to track the keyboard using the same concept.
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Pittshburgh, PA (Duh)
    Posts
    6

    ???

    Alright, that thuroughly confused me. I don't know any C++ at all, so I'd like to do this with VB. Where did you see this mouse movement code?
    "I'm not a VB newbie... I'm just VB-knowledgely challenged."

  4. #4
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    on this forum, a couple days ago.
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  5. #5
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    if you have directx7, you can do a hook with that pretty easily. Search around. There is code for that. I posted some in this forum myself. The only problem you might have is the size of the module. If it is for your own computer (and i am assuming it is since you nicely mentioned aol), then this won't be an issue since you have the file anyway.
    Dontya hate it when they don't save their passwords?
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Pittshburgh, PA (Duh)
    Posts
    6
    Please keep in mind that I am a pretty severe newbie. I have no idea how to use Direct X, I just thought it was something you had to install everytime you get a game. *Twirls his blonde hair absently*
    Actually, I was intending to sell this program to my friends. Not because I personally dispise AOL parental controls, but because everyone deserves the ability to log their IMs and Chats on their own. Hehehehe.
    Anyway, if you could please point me toward these codes that you have posted, I would be eternally grateful.
    Thanks!
    "I'm not a VB newbie... I'm just VB-knowledgely challenged."

  7. #7
    Guest
    You can't have a global WH_KEYBOARD hook in VB...I think, however, that the WH_JOURNALRECORD message can do this, but I have not yet tested it.

  8. #8
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    i dont know if it works on aol 6.0,
    but every other version of aol has that ability already.

    Just bring the window into focus you want to log and go to "save as"
    the log name will become the title of the window.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  9. #9

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Pittshburgh, PA (Duh)
    Posts
    6
    ...Oh, thank you.... It's not like I'm simply trying to show a legitamite face for a program that I actually intend to imploy on stealing passwords and monitoring other family member's conversations.......
    "I'm not a VB newbie... I'm just VB-knowledgely challenged."

  10. #10
    Lively Member
    Join Date
    Mar 2001
    Posts
    98
    coool
    Visual basic 6.0 Enterprise Edition
    [email protected]

  11. #11
    New Member
    Join Date
    Jan 2001
    Posts
    6

    Cool

    Here's a little something I threw together (I found the api code on a forum somewhere). This basically puts all keys pressed in a textbox. Pressing backspace removes the last character from the textbox, etc. Let me know if it doesn't work...


    <Warning From Moderator>The attached exe file has not been tested and VBForums takes no responability for any harm done by it. Run it at your own risk.</Warning From Moderator>
    Attached Files Attached Files
    Last edited by Electroman; Jan 26th, 2005 at 12:17 PM.

  12. #12
    Guest
    There is also a key lgger avialable at PSC.

  13. #13
    Guest
    Click here to view them.

  14. #14
    New Member
    Join Date
    Sep 2004
    Posts
    6

    Exclamation WARNING! Virus found in BILLZELLER's zip file!!!

    WARNING! Virus (exe) in BILLZELLER's zip file!!!

  15. #15
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Creating a keylogger

    you could also make whatever they keyascii saved into a .text file ; )

  16. #16
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Re: Creating a keylogger

    lol why is this old topic being posted in?

    Do people check the dates on posts, 2001
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width