Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 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.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    333
    Thanks
    2
    Thanked 47 Times in 46 Posts
    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'.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •