Automatic login script for a website on windows machine?

后端 未结 5 2499
悲哀的现实
悲哀的现实 2020-12-12 16:27

I saw some guy had a file (I guess a batch file). On clicking of the batch file he was able to log in to multiple sites. (Perhaps it was done using VB.)

I looked for

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 17:07

    I used @qwertyjones's answer to automate logging into Oracle Agile with a public password.

    I saved the login page as index.html, edited all the href= and action= fields to have the full URL to the Agile server.

    The key

    line needed to change from

    
    

    to

    
    

    I also added this snippet to the end of the

     
    

    I had to disable the cookie check by redefining the function that did the check, because I was hosting this from XAMPP and I didn't want to deal with it. The submitLoginForm() call was inspired by inspecting the keyPressEvent() function.

提交回复
热议问题