Pwn3D Posted December 10, 2005 Share Posted December 10, 2005 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 thx in advance to all who looked/helped Link to comment Share on other sites More sharing options...
gamerman2360 Posted December 11, 2005 Share Posted December 11, 2005 i would make a .bat file and put this into it.@echo off @ipconfig /renew @pauseSometimes it works. Sometimes it dosn't. Link to comment Share on other sites More sharing options...
CyberSlug Posted December 11, 2005 Share Posted December 11, 2005 (edited) 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#Win32I 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.htmYou 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=myPasswordcurl http://192.168.0.1/system_r.cgi?RebootForm=See the cURL manual for info: http://curl.haxx.se/docs/manual.htmlI don't know much about cURL, so I cannot answer any questions, sorry. Edited December 11, 2005 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 More sharing options...
edberoi Posted December 13, 2012 Share Posted December 13, 2012 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 More sharing options...
Moderators Melba23 Posted December 13, 2012 Moderators Share Posted December 13, 2012 edberoi,I take it you did not notice the post above yours dates from SEVEN years ago? A warm welcome to the AutoIt forum - but please do not necro-post like this again. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts