jgphp Posted December 25, 2011 Share Posted December 25, 2011 Hello All. First of all I am new to this forum so. Here is my first question. I would like to create a php script that communicates to my home router. which is a DSL DLink Router. So far I have figured out how to reboot the router by loading the reboot.html file by clicking a button I created which automatically logs into the router and reboots. My issue is trying to enter information from my script to the device. I created a html form and added the username and password for the ISP login. What I would like to do is submit this to the router without entering the routers GUI. I copied the form ACTION which is /Form_1 I changed it in my form to 192.168.1.1/Form_1 yet the information is not submitted nor is there any action taken by the router. Any information on how to enter information into a router using a automatic script or forms. any ideas would be perfect. If examples can be added that would also be perfect. Many thnaks Happy Holidays. Quote Link to comment Share on other sites More sharing options...
trq Posted December 25, 2011 Share Posted December 25, 2011 You can gain shell access to a DLink router and skip the web interface all together. I would look down that path first rather than hacking together http requests. Quote Link to comment Share on other sites More sharing options...
jgphp Posted December 26, 2011 Author Share Posted December 26, 2011 I am doing that but I cannot login to the router using telnet via php. However I can using Putty. Any Ideas on the script I should write (note that the router only asks for a password no username) Many thanks for the previous quick response Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.