Jump to content

Remote Management


Recommended Posts

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..

Link to comment
Share on other sites

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 parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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 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

Link to comment
Share on other sites

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 by anixon
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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