13
Konsole
6y

The WiFi at my office requires username and password to sign-in and logs out after every few hours. Then I have to tap on "sign in" and submit the username and password again.

Is there any fucking way I could automate this.......?

Comments
  • 5
    Shell script?
  • 3
    pretend data loss because of constant connectivity loss. (sorry, no serious solution)
  • 1
    @netikras @erroronline1 @24th-Dragon Sorry guys... Was taking about my phone (android). I have Ethernet on my computer
  • 1
    @Konsole search over xda forums
  • 1
    unevaluated brainfart: if it is a webform-login and accepts an url it might be possible to call that automated in case of wifi disconnection (llama, tasker or any automation app)

    but @24th-Dragon s idea makes way more sense
  • 0
    @erroronline1 The sign in page doesn't show url at the top. How do I find the url?
  • 0
    @Konsole idk, but is it possible to view the sourcecode? you might only need the form target and try it with the form fields per get variables.
  • 0
    try disabling mobile data, open any website in eg chrome. if the login site appears in yor browser alter the protocol to view-source://
    tried that here without success but maybe you have more luck
  • 3
    @24th-Dragon and get your ass kicked when they find out. Probably different networks too. You don't just open some wifi in a cooperate environment. You would get your coffee rights revoked and your cpu priorities set lower than Natalie from HR if I was the admin
  • 2
    @Konsole Your smartphone knows you need to log in, because it's trying to open a non-https website which gets intercepted by the router and redirected to the login page. The router can do that because it's an unencrypted http connection. You can do the same manually (I usually use api.ipify.org for that).
    After that you can open the login page in your browser and look at the source. In Google Chrome you can just type in the address bar right at the very beginning of the URL "view-source:" and the enter. Usually these pages are not fancy AJAX pages but instead a simple form that POSTs something somewhere. Find that, and in theory you can then write an app, that automatically POSTs the required data to the endpoint every x minutes. Shouldn't be that hard.
    Feel free to hit me up in case you need help!
  • 1
  • 2
    @wildcard @erroronline1 Thanks guys. I found an app called "Automate" . Super cool app. I am going to try to use it to do this as soon as free.
    Will keep you updated.

    @wildcard sorry, I don't know app dev
Add Comment