martes, 3 de enero de 2012

Router Zyxel Reboot




(c) FG
fagervan at gmail

#!/bin/sh

#auth form
action_login="http://192.168.1.25/Forms/rpAuth_1"
action_reset="http://192.168.1.25/Forms/DiagGeneral_2?IsReset=1"
logdir="/var/log/router-zyxel-reset"

fecha=`date +"%y-%m-%d"`

date >> ${logdir}

#calcular pass con md5
curl -d "hiddenPassword=3a3a06888888886503475493765a30fb" $action_login --max-time 8
curl $action_reset --max-time 8