Wednesday, November 05, 2014

CURL Reboot D-Link Router (DWR-921)

#!/bin/sh
/usr/bin/curl 'http://192.168.1.1/log/in?un=admin&pw=password&rd=%2Fuir%2Fstatus.htm&rd2=%2Fuir%2Fwanst.htm&Nrd=1' -H 'Host: 192.168.1.10' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:33.0) Gecko/20100101 Firefox/33.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Referer: http://192.168.1.1/wanst.htm' -H 'Cookie: ID=AMIT0000' -H 'Connection: keep-alive'
/bin/sleep 1
/usr/bin/curl 'http://192.168.1.1/uir/rebo.htm?Nrd=0&ZT=1415119626974' -H 'Host: 192.168.1.10' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:33.0) Gecko/20100101 Firefox/33.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Referer: http://192.168.1.1/uir/status.htm?Nrc=0&Nrd=1' -H 'Cookie: ID=AMIT0000' -H 'Connection: keep-alive'

Comments:
I can't get it to work from a synology nas and I've got no error message or anything to work with...

any help?
 
Are you sure you have curl on your Synology NAS?
What happen when you type /usr/bin/curl?
Or when you run the script commands manually?
 
I am really thankful to you for sharing this blog, I have solved me some problems from d-link related to it. I think you provide us more this type of blogs in future. Any kind of technical support call at 0800-090-3220 or visit D-link Help Number UK
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?