Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-28-2013, 09:09 PM   PM User | #1
gmark
New to the CF scene

 
Join Date: Nov 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gmark is an unknown quantity at this point
Lightbulb Brute Force Automating Data Input Form

Given an input dialog webpage, how would I automate input?

Say I've got a page with several checkboxes and input dialogs and I have the
source. I need to use this thing to input data many times from a set of
known data. How would I do this?

Could I take the source and run a shellscript to extract the input
statements, somehow convert them all into a whole bunch of assignment
statements and the somehow execute it?

Could I somehow access the global variable over and over again, setting a
value and "submitting" the data in a loop?

Or would I have to actually take the thing apart and find out what SQL
tables are used and put an SQL script together?

Or am I banging my head against the wall without having direct access to the
SQL, security, passwords, etc.?

I don't have any problem with it being a brute force or clumsy approach,
since it'll just help me learn more, but at the moment, I'm completely at a loss.
gmark is offline   Reply With Quote
Old 02-28-2013, 09:15 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
The term brute here isn't exactly the best one, batch would be more appropriate. To batch submit, you simply establish direct connection to the submission form using sockets or curl, and submit your post data headers which you construct from the batch via looping (assumed post). Ignore the HTML completely as its of no relevance.
Although if you have control, I would program it to handle the batch input via files and either upload them or simply open a specific file.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Old 02-28-2013, 09:22 PM   PM User | #3
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Quote:
Originally Posted by gmark View Post
Given an input dialog webpage, how would I automate input?

Say I've got a page with several checkboxes and input dialogs and I have the
source. I need to use this thing to input data many times from a set of
known data. How would I do this?
Hullo,

I think that your looking for cURL PHP Post .. then run a loop to input the other batch of data

Check this out : http://www.electrictoolbox.com/php-curl-form-post/

And google more of 'cURL PHP Post'.
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Reply

Bookmarks

Tags
automate, data, input, php, webpage

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:05 PM.


Advertisement
Log in to turn off these ads.