Results 1 to 4 of 4

Thread: Auto-insert Username/Password

  1. #1
    Join Date
    Jul 2009
    Location
    Coeur d'Alene, Idaho
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Auto-insert Username/Password

    We have a device that reads room temperature, and will spit out a little XML file of the current temp, which is something we need to monitor and record so that we have a history. That means automating the XML output so that we can periodically store the results in a database. No problem at all, except that the device (for some reason known only to the manufacturer) is password protected. (I guess they are protecting us to prevent our room temperature at a given moment from getting into unscrupulous hands! What a disaster that would be!)

    I digress ... Ya' gotta' admit, though - it is quite humorous!

    The software is on a chip.
    The device is accessed with a web browser and the username/password form is a standard browser login form - the same that you would see if you were to use .htaccess to password protect a directory.

    Of course, we can't automate the process if we can't inject the username and password.

    If anyone can provide some insight, it would certainly be helpful.

  2. #2
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,891
    Thanks
    2
    Thanked 441 Times in 435 Posts

    Default

    I am guessing without seeing the form

    hard code the required values in the form fields

    then

    window.onload=document.forms[0].submit();

  3. #3
    Join Date
    Jul 2009
    Location
    Coeur d'Alene, Idaho
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There are numerous things I could do if I had access to a form, including eliminating the form altogether. The form is hard-coded into a chip - most likely in the same way as you would password-protect a directory through .htaccess. There is no access to this form.

  4. #4
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    Rabbit, I think you misunderstood the suggestion. Find the username and password fields and assign values to them...
    Code:
    name.value = username;
    pass.value = password;
    -- Chris
    informal JavaScript student of Douglas Crockford
    I like wikis - a lot.

Bookmarks

Posting Permissions

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