1

[post=235794]Creating Bruteforce Program[/post]

You mean start up on every reboot. And runs in the background...

That would fit.

Ok, here's an example. To shutdown a computer using windows you can press ctrl+alt, u, u. If I wanted my computer to shutdown everytime I pressed u,u,u, how would I go about making a program that runs automatically at the start and waits for key inputs or some other command. A decent keylogger would be another example of the type of application I would like to make.

Why do I get the feeling you are up to no good?

0

Keylogger source code is easy to find. I must have found at least a dozen full length in 15 minutes. I'm not intersted in a keylogger, I am only interested in how they run. Most useful programs I can think of right now would work best running as I described.

0

Keylogger source code is easy to find. I must have found at least a dozen full length in 15 minutes.

So? There's porn on the 'net too -- that doesn't mean it's welcome everywhere.

0

My point is if I wanted to tweak my own keylogger, I could just get the source online easier. The process I described earlier allows me to make many more useful programs. If I was planning to make anything malicious, there's a good chance it would be easier to find a much better written program than I could ever hope to write pre-written for me. The point is, I am trying to learn how to do this, and I strongly suspect I will be using it frequently in the future. It seems a bit silly that I am defending myself.

0

Okay I had the initial doubt as Dave, but we will give you the benefit of the doubt. If you want the user to login for the program to start, look for Windows Startup Programs. If you want only the computer to be switched on, look for Windows Services.

0

Ok, what am I doing wrong?:

#include <iostream>
#include <windows.h>
using namespace std;
int main(){
UINT msg;
POINT c;
while(1){
switch(msg){
case WM_MOUSEMOVE:
GetCursorPos(&c);
cout<<c.x<<", "<<c.y;
}}}
0

What are you trying to do?

#include <windows.h>
#include <iostream>

using namespace std;

class Mouse
{
public:
       void Pos();
};

void Mouse::Pos()
{
    for (int i = 0; i<1000; i++)
    {
      POINT c;
      GetCursorPos(&c);
      std::cout<<c.x<<", "<<c.y<<std::endl;
      Sleep(100);
    }
       
}

int main()
{
       // Get a handle to an application window.
       Mouse me;
       me.Pos();
       
       cin.get();
 
}
0

I don't want it to do anything until the mouse has move. I want to use WM_MOUSE move. I don't want to tell it to compare the coordinates and if they're different, do something.

0

Is there any chance someone could just tell me what I need to fix? I don't get much out of the MSDN library. :-/

0

Is there any chance someone could just tell me what I need to fix? I don't get much out of the MSDN library. :-/

Well, it looks like you need to go back to the WinMain "hello world" for starters before you go on to doing anything like you are attempting -- make an "empty" GUI app.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.