Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href='stylemain.css' type='text/css'>
- <title>D-Link ADSL Router</title>
- <script language="javascript" src="aye_util.js"></script>
- <script language="javascript">
- if(FAKEUI == true)
- {
- var Lang = [{'language':'en'}];
- var passwdInfo = [{'username':'', 'timeout':'10','captcha':'0'}];
- var status_general = [{'name':'DSL-2750B','currenttime':'Wednesday, October 10, 2012 09:46:10 AM','fwversion':'DSL-2750B_2.03_WI_20120704','releaseDate':'2012/10/13'}];
- }
- else
- {
- var Lang = eval("[{'language':'en'}]");
- var passwdInfo = eval("[{'adminUserName':'admin','supportUserName':'support','userUserName':'user','timeout':'10','captcha':'0'}]");
- var status_general = eval("[{'name':'AW5200U','ModelName':'DSL-2750B-D1','currenttime':'Monday, June 20, 2016 21:03:04','fwversion':'DSL-2750B_1.02_WI_20141113','releaseDate':'2014.11.13-03:17:01'}]");
- }
- var language =( typeof(Lang[0].language) !== 'undefined' && Lang[0].language != 'unknown' && Lang != null ) ? Lang[0].language : 'en' ;
- Set_Cookie( 'MultiLingual', language, '1', '/');
- var ReleaseDate = '';
- var FirmVer = status_general[0].releaseDate;
- var ImageDateTime = FirmVer.split("-");
- var ImageDate = ImageDateTime[0].split(".");
- for(i=0;i<ImageDate.length;i++)
- {
- ReleaseDate += ImageDate[i];
- }
- Set_Cookie( 'ReleaseDate', ReleaseDate, '1', '/');
- document.write("<script language='javascript' charset='utf-8' src='js\/"+language+"\/glb_str.js'><\/script>");
- document.write("<script language='javascript' charset='utf-8' src='js\/"+language+"\/login.js'><\/script>");
- </script>
- <script language="javascript">
- <!--
- var accessmode = '';//lan or wan
- var captchaEnbl= passwdInfo[0].captcha;
- var login_remember = 0;
- var login_password = 0;
- var loginerrflag = false;
- //check login authentication
- if(typeof(aye_response) !== 'undefined' && aye_response != null) {
- var msg1 = aye_response.split("!!");
- if(msg1[0]!='Status:0'){
- // Remove cookie
- deleteAllCookies();
- loginerrflag = true;
- }else{
- var sessionKey = aye_response.split("sessionkey=")[1];
- login_remember = Get_Cookie('aye_remember');
- if(login_remember == 1)
- {
- login_password = Get_Cookie('password');
- }
- else
- {
- login_remember = 0;
- login_password = 0;
- Delete_Cookie('aye_remember','/','');
- Delete_Cookie('password','/','');
- }
- Set_Cookie( 'sessionKey', sessionKey, '1', '/');
- ayeSubmit('location=\'index.html\'');
- }
- }else{
- // Remove cookie
- login_remember = Get_Cookie('aye_remember');
- if(login_remember == 1)
- {
- login_password = Get_Cookie('password');
- }
- else
- {
- login_remember = 0;
- login_password = 0;
- Delete_Cookie('aye_remember','/','');
- Delete_Cookie('password','/','');
- }
- deleteAllCookies();
- }
- function frmLoad(){
- with ( document.forms[0] )
- {
- if(loginerrflag == true)
- {
- tryagain_btn.value = aye_btn(glb_try_again_btn);
- document.getElementById('loginerror').style.display='';
- document.getElementById('maincontent').style.display='none';
- }
- if(login_remember == 1)
- {
- loginfo.checked = true;
- password.value = login_password;
- }
- }
- }
- if(typeof(UPNP_DEV_MODEL_DESCRIPTION) == 'undefined')
- {
- var ModemVer = 'undefined';
- }
- else
- {
- var ModemVer = UPNP_DEV_MODEL_DESCRIPTION;
- }
- if(typeof(AYECOM_AREA) == 'undefined' || typeof(AYECOM_FWVER) == 'undefined')
- {
- var FirmwareVer = 'undefined';
- }
- else
- {
- var FirmwareVer = UPNP_DEV_MODEL_DESCRIPTION + '_' + AYECOM_FWVER + '_' + AYECOM_AREA + '_' + ReleaseDate;
- }
- if(typeof(AYECOM_HWVER) == 'undefined')
- {
- var HardwareVer = 'undefined';
- }
- else
- {
- var HardwareVer = AYECOM_HWVER;
- }
- var POL = "0";
- function returnlogin() {
- loc = 'login.html';
- code = 'location="' + loc + '"';
- ayeSubmit(code);
- }
- function convert(val)
- // this converts a given char to url hex form
- {
- return "%" + decToHex(val.charCodeAt(0), 16);
- }
- function decToHex(num, radix)
- // part of the hex-ifying functionality
- {
- var hexString = "";
- while ( num >= radix ) {
- temp = num % radix;
- num = Math.floor(num / radix);
- hexString += hexVals[temp];
- }
- hexString += hexVals[num];
- return reversal(hexString);
- }
- function reversal(s)
- // part of the hex-ifying functionality
- {
- var len = s.length;
- var trans = "";
- for (i = 0; i < len; i++)
- trans = trans + s.substring(len-i-1, len-i);
- s = trans;
- return s;
- }
- var hexVals = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
- "A", "B", "C", "D", "E", "F");
- var unsafeString = "\"<>%\\^[]`\+\$\,'#&";
- function isUnsafe(compareChar)
- // this function checks to see if a char is URL unsafe.
- // Returns bool result. True = unsafe, False = safe
- {
- if ( unsafeString.indexOf(compareChar) == -1 && compareChar.charCodeAt(0) > 32
- && compareChar.charCodeAt(0) < 123 )
- return false; // found no unsafe chars, return false
- else
- return true;
- }
- function encodeUrl(val)
- {
- var len = val.length;
- var i = 0;
- var newStr = "";
- var original = val;
- var hasField = false;
- for ( i = 0; i < len; i++ ) {
- if ( val.substring(i,i+1).charCodeAt(0) < 255 ) {
- // hack to eliminate the rest of unicode from this
- if (isUnsafe(val.substring(i,i+1)) == false)
- newStr = newStr + val.substring(i,i+1);
- else
- newStr = newStr + convert(val.substring(i,i+1));
- } else {
- // woopsie! restore.
- //alert ("Found a non-ISO-8859-1 character at position: " + (i+1) + ",\nPlease eliminate before continuing.");
- newStr = original;
- // short-circuit the loop and exit
- i = len;
- }
- }
- return newStr;
- }
- function checkForm(){
- with ( document.forms[0] ){
- temp = password.value;
- if (username.value == 'user' || username.value == 'support'){
- alert (aye_msg(account_str));
- return 0;
- }
- if (temp.length < 1){
- alert (aye_msg(input_password_str));
- return 0;
- }
- else {
- //password.value = encodeUrl(password.value);
- Set_Cookie( 'username', username.value, '1', '/');
- Set_Cookie( 'timeout', passwdInfo[0].timeout, '1', '/');
- if(loginfo.checked == true)
- {
- login_remember = 1;
- Set_Cookie( 'aye_remember', login_remember, '1', '/');
- Set_Cookie( 'password', password.value, '1', '/');
- }
- else
- {
- login_remember = 0;
- Set_Cookie( 'aye_remember', login_remember, '1', '/');
- }
- if(captchaEnbl == '1') {
- var loc= 'login.cgi?cli=' + 'access login encrypted ' + hex_md5('username '+username.value+' password '+password.value)+' authcode '+ authcode.value + '$';
- } else {
- var loc= 'login.cgi?cli=' + 'access login encrypted ' + hex_md5('username '+username.value+' password '+password.value) + '$';
- }
- var code = 'location=\'' + loc + '\'';
- ayeSubmit(code);
- }
- }
- }
- function stEnter(e){
- var keynum;
- if(window.event) // IE
- {
- keynum = e.keyCode;
- }
- else if(e.which) // Netscape/Firefox/Opera
- {
- keynum = e.which;
- }
- /*else if (e.charCode)
- {
- keynum = e.charCode;
- }*/
- if (keynum == 13){
- checkForm();
- }
- }
- function btnRegenerate()
- {
- with ( document.forms[0] ){
- var loc = 'auth_regen.cgi';
- var code = 'location="' + loc + '"';
- eval(code);
- }
- }
- // -->
- </script>
- </head>
- <!--
- <body onload="javascript:document.frmLogin.password.focus();document.frmLogin.username.value='admin';">
- -->
- <body onLoad=frmLoad()>
- <BLOCKQUOTE>
- <form focus="password" name="frmLogin" method="POST" action="login.cgi">
- <style>
- div.overflow
- {
- overflow: auto;
- width: 660px;
- }
- </style>
- <DIV align="center" style="display: hidden" id="tblmain">
- <TABLE cellSpacing=0 width="800"><TR><TD>
- <TABLE id=header_container width="800"><TR>
- <script language="javascript">
- document.writeln("<TD align=left width=\"200\">" + aye_msg(product_str) + ModemVer + "</TD>");
- document.writeln("<TD align=right width=\"50\"></TD>");
- //document.writeln("<TD align=right width=\"550\">Firmware Version: " + FirmwareVer + " Hardware Version: " + HardwareVer + "</TD>");
- document.writeln("<TD align=right width=\"550\">" + aye_msg(firmware_ver_str) + FirmwareVer + "</TD>");
- document.writeln("</TR></TABLE>");
- </script>
- <TABLE cellSpacing=0 width="800"><TR><TD id=masthead_container width="800"><IMG alt="" src="images/img_masthead.gif"></TD></TR></TABLE>
- <TABLE cellSpacing=0 summary="" border=0 width="100%" style="background-color:white" height=300>
- <TR>
- <TD align=center >
- <DIV id=maincontent style="width:600" align="center">
- <table id=box_header border=0 cellSpacing=0>
- <tr>
- <td class=topheader>
- <script>aye_txt(login_str);</script>
- </td>
- </tr>
- <tr>
- <td class=content>
- <p> <script>aye_txt(login_to_str);</script></p>
- <table class=formarea border="0" cellspacing="0" cellpadding="0" width=100% align="center">
- <tr>
- <td class=form_label ><b><script>aye_txt(username_str);</script></b></td>
- <script language="javascript">
- if(POL == '1') {
- document.writeln("<td><input type=\"username\" maxlength=\"16\" size=\"16\" name=\"username\" value='Multimedia' onkeypress='return stEnter(event)'></td>");
- }
- else
- {
- document.writeln("<td><input type=\"username\" maxlength=\"16\" size=\"16\" name=\"username\" value='admin' onkeypress='return stEnter(event)'></td>");
- }
- </script>
- </tr>
- <tr>
- <td class=form_label ><b>Password :</b></td>
- <td><input type="password" maxlength="16" size="16" name="password" onKeyPress="stEnter(event);">
- <!--<input type="button" value="Log In" onclick="checkForm();"></td>-->
- <script language="javascript">
- if(captchaEnbl == '1') {
- //document.writeln("<tr>");
- //document.writeln("<td class=form_label></td>");
- document.writeln("</td></tr><tr><td class=form_label ></td>");
- document.writeln("<td><b>"+enter_the_correct_str+".</b></td>");
- document.writeln("</tr> ");
- document.writeln("<tr>");
- document.writeln("<td class=form_label></td><td valign=center><IMG src='images/captcha.bmp'></td>");
- document.writeln("</tr> ");
- document.writeln("<tr>");
- document.writeln("<td class=form_label><b>"+authcode_str+" :</b></td>");
- document.writeln("<td><input type=authcode maxlength=16 size=18 id=authcode name=authcode onkeypress='return stEnter(event)'> </td>");
- document.writeln("</tr>");
- document.writeln("<tr>");
- document.writeln("<td class=form_label></td>");
- document.writeln("<td><input type=button value='"+glb_login_btn+"' onclick='checkForm()'><input type='button' value='Regenerate' onclick='btnRegenerate()'></td>");
- }
- else{
- //document.writeln("<tr>");
- //document.writeln("<td class=form_label></td>");
- document.writeln("<input type=button value='"+glb_login_btn+"' onclick='checkForm()'></td>");
- }
- </script>
- </tr>
- <tr>
- <td align=right><input type="checkbox" name="loginfo" id="loginfo"></td>
- <td><label for=loginfo><script>aye_txt(remember_my_login_str);</script></label></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </DIV>
- <DIV id=loginerror style="width:600;display:none" >
- <table id=box_header border=0 cellSpacing=0>
- <tr>
- <td class=topheader>
- Login
- </td>
- </tr>
- <tr>
- <td class=content>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" height="80%">
- <tr>
- <td align="center">
- <script>aye_txt(authenication_fali_str);</script><br>
- <script>aye_txt(incorrect_str);</script>
- </td>
- </tr>
- <tr>
- <td align="center">
- </td>
- </tr>
- <tr>
- <td align="center">
- <INPUT TYPE="button" NAME="tryagain_btn" onClick="returnlogin()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </DIV>
- </TD>
- </TR></TABLE>
- <TABLE id=footer_container cellSpacing=0 border=0><TR><TD id=leftimage>
- <IMG height=35 alt="" src="images/img_bottom.gif" width=114></TD>
- <TD> </TD></TR></TABLE>
- </TD></TR></TABLE><DIV id=copyright><script>aye_txt(glb_copyright_str);</script>.</DIV></DIV>
- </TR></TD></TABLE>
- </DIV>
- </form>
- </BLOCKQUOTE>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment