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'

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