Jump to content

Reboot modem-router from PC


tigerjack

Recommended Posts

14 hours ago, Dukun Cabul said:

Try AutoIt

This script for TP-LINK TL-WR1043ND only, you must mod the script according to your modem/router !

 

Thx Dukun Cabul

sorry, but nothing to do. I also tried with the reconnection of JDownloader but without success

Link to comment
Share on other sites


  • Replies 33
  • Views 3.1k
  • Created
  • Last Reply
On ‎1‎/‎23‎/‎2017 at 2:49 AM, tigerjack said:

 

Thx Dukun Cabul

sorry, but nothing to do. I also tried with the reconnection of JDownloader but without success

 

TEST YOUR SYSTEM :
 
1. Install AutoIt
2. Run the following script:
Spoiler

 

#include <IE.au3>
_IECreate("Address")
Exit
 
Note:
Address = Your Modem/Router's IP Address (something like http://192.168.0.1 or http://192.168.1.1)

 


This test should work on all Windows OS with Internet Explorer.

Link to comment
Share on other sites


16 hours ago, Dukun Cabul said:
TEST YOUR SYSTEM :
 
1. Install AutoIt
2. Run the following script:
  Reveal hidden contents

 

#include <IE.au3>
_IECreate("Address")
Exit
 
Note:
Address = Your Modem/Router's IP Address (something like http://192.168.0.1 or http://192.168.1.1)

 


This test should work on all Windows OS with Internet Explorer

 

First of all I thank you for your enormous patience, but I think I have two types of problems

- a different way to access the Reboot page of my router (probably different from your)
- I know nothing about programming, when in fact I think something I should know

For now with the script you posted I have only managed to open the login page of my router, but there I stopped

I describe the steps that I do to access my router

 

Spoiler

put in URL                      http://192.168.1.1/  and I have the router main window

digit (in already USER active tab)   admin       (I don't click enter)

go to LOGIN tab                click and digit admin (then click enter)

 

 

now i see the main window and on the left, in context menù I click on Management, I see another context menù and I click on Reboot

 

Now I see a window with only one choice - REBOOT - (and I click on). It show "Are you sure you want reboot?" yes or not. I click on yes and my router reboots 

 

 

 

 

Link to comment
Share on other sites


5 hours ago, tigerjack said:

For now with the script you posted I have only managed to open the main page of my router

 

That's a good start !
 
Now try to run the script below:
Spoiler

 

#include <IE.au3>
_IECreate("http://192.168.1.1")
WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")
Send("Username")
Send("{Enter}")
Sleep(1000)
Send("Password")
Send("{Enter}")
Exit
 
Note:
Username = Username to login to router
Password = Password to login to router
TD-W8960N = Your (TP-LINK) router model/code

 

 

You should be able to login and open the main page of your router
Link to comment
Share on other sites


3 hours ago, Dukun Cabul said:

Now try to run the script below

thx :notworthy:, I had to edit the script in this way (by removing a line) because I did not click ENTER when I type the username.

Spoiler

#include <IE.au3>
_IECreate("http://192.168.1.1")
WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")
Send("admin")
Sleep(1000)
Send("admin")
Send("{Enter}")
Exit

With the modified script I opened the router main page :D

tp3a.png      

 


AND NOW ?????????    which is the script for the next command?  MANAGEMENT(click)-REBOOT(click)-REBOOT(click)-YES(click)

 

Link to comment
Share on other sites


On ‎1‎/‎25‎/‎2017 at 1:45 AM, tigerjack said:

thx :notworthy:, I had to edit the script in this way (by removing a line) because I did not click ENTER when I type the username.

  Reveal hidden contents

#include <IE.au3>
_IECreate("http://192.168.1.1")
WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")
Send("admin")
Sleep(1000)
Send("admin")
Send("{Enter}")
Exit

With the modified script I opened the router main page :D

tp3a.png      

 


AND NOW ?????????    which is the script for the next command?  MANAGEMENT(click)-REBOOT(click)-REBOOT(click)-YES(click)

 

 

Now try this

Spoiler

#include <IE.au3>
_IECreate("http://192.168.1.1")
WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")

Sleep(1000)
Send("admin")
Sleep(1000)

Send("{Tab}")

Sleep(1000)
Send("admin")

Sleep(1000)
Send("{Enter}")
WinWait("TD-W8960N", "Index")
WinActivate("TD-W8960N", "Index")
WinWaitActive("TD-W8960N", "Index")

Sleep(1000)
Send("{Tab 13}")

Exit
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 8}")

Exit
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 18}")

Exit
Sleep(1000)
Send("{Enter}")
WinWait("Message from webpage", "Are you sure")
WinActivate("Message from webpage", "Are you sure")
WinWaitActive("Message from webpage", "Are you sure")
Send("{Enter}")

WinWaitClose("TD-W8960N", "Index")
WinKill("TD-W8960N")
Exit

 

NOTE:

Send("{Tab 13}") -> You might need to change the amount/number of tabs to navigate to "Management" menu (in context menu).

Exit -> Delete this command if the script above this command is already OK.

Send("{Tab 8}") -> You might need to change the amount/number of tabs to navigate to "Reboot" (in sub menu of "Management").

Exit -> Delete this command if the script above this command is already OK.

Send("{Tab 18}") -> You might need to change the amount/number of tabs to navigate to "Reboot" button.

Exit -> Delete this command if the script above this command is already OK.

 

Good luck !

 

Link to comment
Share on other sites


I'm still testing this script....

Spoiler

#include <IE.au3>

_IECreate("http://192.168.1.1")

WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")
Send("admin")
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send("admin")
Sleep(1000)
Send("{Enter}")
WinWait("TD-W8960N", "Index")
WinActivate("TD-W8960N", "Index")
WinWaitActive("TD-W8960N", "Index")
Send("{Tab 13}")
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 8}")
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 3}")
Sleep(1000)
Send("{Enter}")
WinWait("Message from webpage", "Are you sure you want to reboot?")
WinActivate("Message from webpage", "Are you sure you want to reboot?")
WinWaitActive("Message from webpage", "Are you sure you want to reboot?")
Send("{Enter}")
Exit

 

Today I found this small program that seems to do right for me (tested and working on win7 32 bit for a couple of reconnections with success, not yet fully tested) called WinRouterRestarter (freeware). Telnet not needed.   Check changed IP on  http://www.whatsmyip.org/

 

WinRouterRestarter.rar       size 373kb

Site: http://www16.zippyshare.com
Sharecode[?]: /v/fD7z9xWI/file.html

 

Link to comment
Share on other sites


On 25/01/2017 at 1:55 PM, tigerjack said:

 

  Reveal hidden contents

#include <IE.au3>

_IECreate("http://192.168.1.1")

WinWait("TD-W8960N")
WinActivate("TD-W8960N")
WinWaitActive("TD-W8960N")
Send("admin")
Sleep(1000)
Send("{TAB}")
Sleep(1000)
Send("admin")
Sleep(1000)
Send("{Enter}")
WinWait("TD-W8960N", "Index")
WinActivate("TD-W8960N", "Index")
WinWaitActive("TD-W8960N", "Index")
Send("{Tab 13}")
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 8}")
Sleep(1000)
Send("{Enter}")
Sleep(1000)
Send("{Tab 3}")
Sleep(1000)
Send("{Enter}")
WinWait("Message from webpage", "Are you sure you want to reboot?")
WinActivate("Message from webpage", "Are you sure you want to reboot?")
WinWaitActive("Message from webpage", "Are you sure you want to reboot?")
Send("{Enter}")
Exit

 

Today I found this small program that seems to do right for me (tested and working on win7 32 bit for a couple of reconnections with success, not yet fully tested) called WinRouterRestarter (freeware). Telnet not needed.   Check changed IP on  http://www.whatsmyip.org/

 

WinRouterRestarter.rar       size 373kb

Site: http://www16.zippyshare.com
Sharecode[?]: /v/fD7z9xWI/file.html

 

 

Don't touch that program with a barge pole if you value your security.  It's likely opening up all sorts of holes and routes in.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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