| the router in question is a D-Link DSL-300T, entry address is 192.168.1.1.
username is admin, password is admin. I've tried
<http://192.168.1.1/cgi-bin/webcm> but it didn't work. Maybe my settings are
wrong, I don't know...
I've tried for hours in WinHtrack (v3.3) using different urls to copy this
router but nothing works. The Log-In button on the first page tiggers some url
to enter the router, but I can't figure out what that url is.
Below is 1) - the html code of the Log-In page, and 2) - the html code of the
page after successfully logged in.
Thanks for any help.
1)
-----------------
<html>
<!-- Mirrored from 192.168.1.1/html/ by HTTrack Website Copier/3.x
[XR&CO'2001], Mon, 12 Sep 2005 20:24:06 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type"
content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
<head>
<link rel="stylesheet" href="css/alpha.css" type="text/css">
<script type='text/javascript' src="js/alphaindex.js"></script>
<script Language="JavaScript">
function DoLogin()
{
document.formLogin.elements[2].value=document.usrInput.username.value;
document.formLogin.elements[3].value=document.usrInput.password.value;
document.formLogin.submit();
}
//inserted by Edward on 2004/01/07 for user pressing "Enter" to login if
"Username" and "Password" are right
var focusTarget=-999;
var focusButton;
var ns=(navigator.appName=="Netscape"?1:0);
var ver=parseInt(navigator.appVersion)
document.onkeydown=whichF;
if (ns)
{
document.onmousedown=whichF;
if (ver==4 || ver==5)
{
document.captureEvents(Event.KEYDOWN | Event.MOUSEDOWN);
}
}
function whichF(e)
{
focusButton=(ns?e.target.type:event.srcElement.type);
if (ns)
{
focusTarget=e.which;
}
else
{
return chkKey(e);
}
}
function chkKey(e)
{
var chk=(ns?focusTarget:event.keyCode);
if (chk==13)
{
DoLogin();
}
return true;
}
//inserted by Edward on 2004/01/07 for user pressing "Enter" to login if
"Username" and "Password" are right end
</script>
</head>
<body>
<script type='text/javascript'>
<!-- main table -->
mainTableStart() ;
<!-- header and logo area [ First row ] -->
headerandlogo(1) ;
<!-- Second Row -->
secondRowStart() ;
<!-- Left Area -->
leftArea(0,0,0,0,1) ;
<!-- content main table start -->
contentMainTableStart() ;
contentTableStart(0,1) ;
</script>
<!-- #bbinclude "index-main.html" -->
<!-- end bbinclude -->
<form method="POST" action=http://192.168.1.1/cgi-bin/webcm
name="formLogin">
<input type="hidden" name="getpage" value="../html/frame.htm">
<input type="hidden" name="errorpage" value="../html/index.html" >
<input type="hidden" name="login:command/username" value="admin" >
<input type="hidden" name="login:command/password" value="" >
<input type="hidden" name="var:errormsg" value="Error">
</form>
<table width="540px" height="410" border="0" align="center"
bordercolor="#000000" cellspacing="0" cellpadding="8">
<tr>
<td height="35" class="tabhead"><div align="left">Login</div></td>
</tr>
<tr>
<td height="244" align="center" valign = "top">
<form name="usrInput">
<table width="100%" border="0" align="center" bordercolor="#000000"
cellspacing="0" cellpadding="5">
<tr>
<td colspan="3" class="blubg">Please log in to continue
</td>
</tr>
<tr>
<td width="5%" class="tabdata">
</td>
<td width="26%" class="tabdata">Login Name </td>
<td width="69%" class="tabdata"><input type="text" maxlength="64"
name="username" maxlength="15" value="admin">
</td>
</tr>
<tr>
<td class="tabdata">
</td>
<td class="tabdata">Password </td>
<td width="69%" class="tabdata"><input type=password maxlength="64"
name=password maxlength="15" value=""></td>
</tr>
<tr>
<td colspan="2" class="tabdata">
</td>
<td width="69%" class="tabdata">
<a href = "JavaScript:DoLogin()";>
<img src="images/login.jpg" border=0 name="login" height="30"
onClick="DoLogin()" ></a>
</td>
</tr>
<tr>
<td colspan="3" class="tabdata"><center><font color="red" align=center>
<? if neq '$var:errormsg' 'Error' ``
`Your Login Name / Password is Invalid` ?>
<? if neq '$var:logmsg' 'logout' ``
`You have successfully logged out` ?>
</font></center>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td class="tabhead"> </td>
</tr>
<tr>
<td class="copyright"> </td>
</tr>
<tr>
<td class="tabhead"> </td>
</tr>
<tr>
<td class="tabhead"> </td>
</tr>
<tr>
<td class="tabhead"> </td>
</tr>
<tr>
<td class="tabdata"> </td>
</tr>
<tr>
<td class="tabhead"> </td>
</tr>
</table>
<table width="96%" border="0" align="center" cellspacing="0" cellpadding="8">
<tr>
<td class="copyright">
</td>
</tr>
</table>
<script type='text/javascript'>
contentTableEnd() ;
contentMainTableEnd();
secondRowEnd() ;
mainTableEnd() ;
</script>
</body>
<!-- Mirrored from 192.168.1.1/html/ by HTTrack Website Copier/3.x
[XR&CO'2001], Mon, 12 Sep 2005 20:24:06 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type"
content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
</html>
<script language=javascript>
if (ns)
{
var f=document.forms;
for (var i=0;i < f.length;i++)
{
f[i].onsubmit=chkKey;
}
}
</script>
--------------------------------
2) below is the code of the page I get once successfully logged in.
<html>
<head>
<script>
var F5End = 3;//0:fsil 1:success 2:programing 3:skipped
var F5Seg = 3;
var reloadpage = "../cgi-bin/webcm?getpage=../index.htm";
</script>
</head>
<frameset rows="0,*" frameborder="0" framespacing="0">
<frame name="fPanel" src="" scrolling="auto" marginwidth="0"
marginheight="0">
<frame name="fInfo" src="../cgi-bin/webcm?getpage=../html/home.htm">
<noframes>
<body bgcolor="#008080">
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html> | |