Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
02-28-2013, 09:09 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
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.
02-28-2013, 09:15 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,660 Times in 2,629 Posts
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.
header('HTTP/1.1 420 Enhance Your Calm');
02-28-2013, 09:22 PM #3
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'.