anixon Posted March 1, 2011 Posted March 1, 2011 I only know of two ways that you can reboot a router and that is to physically power it off wait 30 or so seconds and then power it up again. The other method is to log on to the router which usually requires a userid and passcode using a Web Browser and its IP address and select the menu item which performs a re-start. Is there any methodology which would allow you to code AutoIT to command the router to restart without having to keystroke a logon and restart process? In other words is there a command line process based on the LAN IP Address of the Router. Ant..
guinness Posted March 1, 2011 Posted March 1, 2011 Maybe the IE Functions in the Help File. But bare in mind the security implication is the Username and Password would be in the Script! UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
anixon Posted March 1, 2011 Author Posted March 1, 2011 Maybe the IE Functions in the Help File. But bare in mind the security implication is the Username and Password would be in the Script!Yes I thought of that I guess that solution is probably bettered geared to one router firmware operating system rather than a generic methodology. As far as the username and password I have written a scrambler and encrytion function for other processes that require a userid and passcode which whilst not perfect by hacker standards is sufficient given the weight of the risk. Ant..
kylomas Posted March 1, 2011 Posted March 1, 2011 (edited) anixon, This navigates to my router #include<ie.au3> $oIE = _IECreate ("http://192.168.1.254/") The router address can be obtained from ipconfig or netstat commands (I'm sure you know this already). IT is then up to you to navigate to logon screen and supply uid and psw. Do NOT think that this can be bypassed from windows as the security is intrinic to the router, not the OS. kylomas Edited March 1, 2011 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
anixon Posted March 1, 2011 Author Posted March 1, 2011 (edited) anixon, This navigates to my router #include<IE.AU3> $oIE = _IECreate ("http://192.168.1.254/") The router address can be obtained from ipconfig or netstat commands (I'm sure you know this already). IT is then up to you to navigate to logon screen and supply uid and psw. Do NOT think that this can be bypassed from windows as the security is intrinic to the router, not the OS. kylomas Thanks for that might have to look into what is involved communicating with a power switch managed with a remote. I guess the answer to that solution is how do you trigger the switch to turn off and then on Ant.. <BR><BR>I think that an iBoot device <A href="http://www.zantech.com.au/power/reboot/iboot.html">http://www.zantech.com.au/power/reboot/iboot.html</A> is probably the solution to my issue. Ant.. <IMG class=bbc_emoticon alt= src="http://www.autoitscript.com/forum/public/style_emoticons/autoit/mellow.gif"> Edited March 1, 2011 by anixon
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now