Jump to content

some1 got an ip reset script for a router?


Pwn3D
 Share

Recommended Posts

hey all , as im rly new to autoit and dont understand it right i try to ask if some1 of ya can maybve write a ip reset script for my adsl netgear router D834GB (192.168.0.1) , if sum1 could do this for i would be rly rly rly apriciated to him/her :lmao:

thx in advance to all who looked/helped :P

Link to comment
Share on other sites

You actually don't need AutoIt at all.

Downlod cURL: The first link for "Win32 - Generic" seems to work here:

http://curl.mirrormonster.com/download.html#Win32

I don' t know the specifics for your router, but the following is based on a Netgear WGR614 v2 router:

curl -u admin:yourPassword http://192.168.0.1/RST_status.htm

You just need to figure out the reset command.... View the source code of the page to determine the action of the button....

It seems that the following should also retrieve the status page, but it doesn't "http://192.168.0.1/s_status.cgi?StPoE=Connection%20Status"

I also had an SMC router, and I can tell you that the following commands performed a reset:

curl http://192.168.0.1/logon.cgi?pws=myPassword

curl http://192.168.0.1/system_r.cgi?RebootForm=

See the cURL manual for info: http://curl.haxx.se/docs/manual.html

I don't know much about cURL, so I cannot answer any questions, sorry.

Edited by CyberSlug
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • 7 years later...

I have an SMCWBR16T-G model.

To reset this router I have used the following script:

#!/bin/sh

routerIP="192.168.1.1"

curl -d "pws=MYPASSWORD" "http://${routerIP}/cgi-bin/login.exe"

curl "http://${routerIP}/cgi-bin/restart.exe?name=RebootForm"

exit 0

Link to comment
Share on other sites

  • Moderators

edberoi,

I take it you did not notice the post above yours dates from SEVEN years ago? :wacko:

A warm welcome to the AutoIt forum - but please do not necro-post like this again. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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