Jump to content

How to make a program that will type in a certain place on a website for me. (preferably in C++)

Hey guys, I was wondering how to make a program to type in a certain spot on a website, over and over. Thanks.

P.S. I'm not great at programs, I can make some basic encryptors in C++ and some basic websites in HTML5.

Link to comment
Share on other sites

Link to post
Share on other sites

So that you may put it to work spamming/DoSing?

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

No, just curious, wanted to make it so that if I ever wanted to, I could make it say, send a message on multiple sites by having em open on different windows and have it type it in all of them, stuff like that.

@Nuluvius

Link to comment
Share on other sites

Link to post
Share on other sites

No, just curious, wanted to make it so that if I ever wanted to, I could make it say, send a message on multiple sites by having em open on different windows and have it type it in all of them, stuff like that.

@Nuluvius

 

Clearly...

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

It might actually be easier to download the page in question locally and just submit the form from your system directly to the accepting page. I'm not too familiar with people checking the domain of the posting page when processing form data.

 

[edit] Or, you can always use the SendInput function; there's that. Of course you'd need the handle of the window, that's not too hard to get of course.

Link to comment
Share on other sites

Link to post
Share on other sites

C++ is not a good choice for a task such as this; however, I believe it can be accomplished using the libcurl library.

 

A better alternative is to use a language like Perl, which has the powerful WWW::Mechanize module for web automation/interaction, Python, which has a library created based on WWW::Mechanize called mechanize, or Ruby, which has a gem called Mechanize that also accomplishes the same task.

Link to comment
Share on other sites

Link to post
Share on other sites

If you really want to do it in C++, what you may want to do is look at what the site is doing with the data you type.
For example, if it is using the form to submit a POST/GET request to some server script, then you can easily replicate that request by linking cURL in C++.

The cURL's documentation shows how to make POST requests.

You can also do the same thing with the curl binary and a shell script, or a php/perl/python script.

C++ is probably harder to do it in, unlike a shell script which would be one binary call or a php script which has the ability to make html requests built into it.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×