E
E
exhang2019-07-01 21:57:15
PHP
exhang, 2019-07-01 21:57:15

How to send js code to the web admin panel with a script?

In general, the essence of the problem is that there is a yota many in the country and shows through it CCTV cameras.
The router periodically crashes and it can only be treated by rebooting, from the admin panel you can write something like "reboot();" in the javascript console. and everything starts up again, now the question is, how and most importantly on what to write a script, so that it would go to the address of the admin panel and execute the reboot sent in the console as soon as the Internet disappears (the script is executed every 5 minutes, for example, and checks the ping)? The problem is I don't even know how to google it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sbh, 2019-07-02
@sbh

I would look at alternative options for connecting to the router other than through the admin panel. Perhaps they are and you can implement it more beautifully than through selenium.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question