How to reboot a SMC Barricade router remotely

Jesse Lee jkl555 at hotmail.com
Sun May 4 09:30:25 EDT 2003


"Chris Tavares" <cct at tavaresstudios.com> wrote in message news:<6u2ta.53259$ey1.4895862 at newsread1.prod.itd.earthlink.net>...
> "Jesse Lee" <jkl555 at hotmail.com> wrote in message
> news:86e72741.0305031947.29b2ec97 at posting.google.com...
> > I have a SMC Barricade 7004AWBR router and I am trying to find a
> > script that can remotely reboot the router (to renew the IP address).
> > I have a web server running all the time. For security reason I would
> > like to renew the IP address every night. Would someone point me to
> > any web site that I can find such a script ?
> >
> > Thanks.
> >
> > Jesse Lee
> 
> I've written several similar scripts, but not for the 7004AWBR. What you
> need to do is act like a web client. urllib and httplib are your friends
> here.
> 
> To figure out what you need to send, grab a copy of tcpTrace from
> http://www.pocketsoap.com/tcptrace/ . This is a tool that lets you easily
> spy on http transactions, so you can tell how the router does it's login,
> and what happens when you press the reset button. You will need some
> knowledge of how HTTP works to understand what's happening here.
> Unfortunately, every router does this sort of thing differently.
> 
> Good luck,
> 
> -Chris

Chris,

Thanks. I tried the tool and I think I know the steps I need to do are
login through cgi-bin/logi and then call cgi-bin/rebo for this router.
But the login process seems to pass encrypted password to the router.
This may explain why I always get "Password is incorrect".

For the reference, here is the cgi-bin/logi web page looks like

<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=iso-8859-1"><SCRIPT LANGUAGE=JavaScript><!--
function GURL(x){var t=new Date(); location=x+'&ZT='+t.getTime();}
function makesure(p,l){if (confirm(p)) GURL(l);}
//--></SCRIPT></HEAD><BODY TEXT=#FFFFFF BGCOLOR=#0000FF LINK=#FFFF00
VLINK=#FFFF00 ALINK=#FF0000>
<CENTER><A HREF=http://www.smc.com TARGET='resource window'><IMG
SRC=/logo.gif BORDER=0 WIDTH=99 HEIGHT=45 ALT="SMC Networks,
Inc."></A></CENTER><BR>
<LI><A HREF=/status.htm TARGET=main>Status</A><BR>

<CENTER>

<FORM ACTION=/cgi-bin/logi METHOD=POST NAME=LOGIN><INPUT TYPE=HIDDEN
VALUE="@D" NAME=RC><INPUT TYPE=HIDDEN VALUE="root" NAME=ACCT><INPUT
TYPE=HIDDEN VALUE="00:08:06 (S=00:00:00,P=0)" NAME=PSWD>System
Password<BR><INPUT TYPE=PASSWORD NAME=URL SIZE=9
MAXLENGTH=9><BR>(default: <B>admin</B>)<P><INPUT TYPE=HIDDEN
VALUE="3ABC.374E.3ABC/3100+ADA4 at Totoro 193s1" NAME=KEY><INPUT
TYPE=HIDDEN VALUE="R1.93s1" NAME=htm>
<INPUT TYPE=SUBMIT VALUE="Log in"></FORM>

<SCRIPT LANGUAGE=JavaScript><!--
function reload() { GURL("/menu.htm?RC=") }
function refresh() { GURL("/menu.htm?RC=@") }

document.LOGIN.URL.focus();





//--></SCRIPT>
</CENTER>
</BODY></HTML>




More information about the Python-list mailing list