Thread: keybd_event

  1. #1
    Banned
    Join Date
    Oct 2004
    Posts
    250

    keybd_event

    could anyone give me an example on how to use keybd_event
    i need it to stimulate a certain ket being pressed to automate processes for a certain online game

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Seriously, come on did you even search?
    I guess using a search engine to help make your virus is to hard.
    Last edited by prog-bman; 11-11-2004 at 02:32 AM. Reason: Took out a link to the *almighty* search engine decided not to help virus boy even that much
    Woop?

  3. #3
    Banned
    Join Date
    Oct 2004
    Posts
    250
    not tryint to make a virus just need to know how to automate sighnups ect
    does anyone know if i use
    Code:
     ShowWindow(hwnd, SW_HIDE);
    is there any way to for the user to see the program running?

  4. #4
    Banned
    Join Date
    Oct 2004
    Posts
    250
    and... i tried using this but its to slow and easy to get around i need a way to stop any programs running
    Code:
    HWND hwnd = FindWindow(NULL, "Windows Task Manager");
        if(!hwnd)
        {
            ofstream open_log("c:\\windows\\log.txt", ios::app);
            open_log <<"task manager not found"<<endl;
            open_log.close();
        }
        else
        {
            ::SendMessage(hwnd,WM_CLOSE,0,0);
            ofstream open_logf("log.txt", ios::app);
            open_logf <<"task manager found and closed"<<endl;
            open_logf.close();
        }
    }

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Why would you want to close the task manager ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  6. #6
    Banned
    Join Date
    Oct 2004
    Posts
    250
    im making a game trainer i dont want the user seeing some files that are running in the background

  7. #7
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    is there any way to for the user to see the program running?
    Yep. Via the task manager, or any other process explorer. And no, I'm not going to tell you how to hide your program's process.

  8. #8
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    Why hasn't cgod been banned yet he does nothing but ask questions about making a game trainer *cough*virus*cough*?
    Woop?

  9. #9
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    If it's a legitimate game trainer why not have your user see what it does ? After all, the user installed it and ran it, right ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  10. #10
    Banned
    Join Date
    Oct 2004
    Posts
    250
    what does hiding a process or using keybd_event have to do with a virus i mean it seems every question im accused of trying to make one

  11. #11
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    It is because people cannot see legitimate reasons for hiding your program. If it is a game trainer, then someone will have installed it and knows it is there, why try to hide it.

    Alternatively, if someone installs a game trainer which launches a hidden keylogger for example...

    That is why people will not help with questions where no legitmation has been provided. Simply saying "I'm not writing malicious code" is not going to carry much weight. Most virus writers when caught simply spout the "I was only trying to expose the weakness" type line. Doesn't work there, doesn't work here.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed