Jump to content

ADSL Disconnect/Connect Script


Recommended Posts

Hi All,

I have a NETGEAR DG834GT Router. After a bit of messing around with URL Injections, I managed to find out how to connect/disconnect via. URL:

Disconnect

http://192.168.0.1/setup.cgi?todo=disconnect

Connect

http://192.168.0.1/setup.cgi?todo=connect

It works perfectly when doing it manually, but as you might have guessed this is pretty cumbersome, and I disconnect/connect quite a few times in a day!

Basically I'd appreciate some help in making some sort of script which would:

1. Initiate a DISCONNECT

2. Wait for 3-4 Seconds

3. Initiate a CONNECT

Preferably I'd like to do this with Javascript or something do-able from a browser rather than an external program, as I'd like to somehow have it so that I could press a button linked to a bookmark or something in my browser of choice which would initiate the procedure.

I was thinking that this might be possible with something like JavaScript, but I really have no idea how this would be done. If its possible, something like going to a certain page stored locally or something, and as soon as you goto the page the whole thing starts and then the page automatically closes itself when its done? All of this in the form of a button in my browser linked to a bookmark or something which I can conveniently click.

If its not possible to write a quick script or something for me, I would greatly appreciate a prod in the right direction for something specifically related that would help me.

TIA,

// Xeijin

Edited by Xeijin
Link to comment
Share on other sites

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...