Results 1 to 4 of 4
  1. #1
    razanadrakoto is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default java login and password to decode

    hello all! somewhere in this html java document, may be there is the login and password of a huawei modem is someone can help me, thanks.

    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link rel="icon" type="image/icon" href="/favicon.ico?BM652w1308207697"/>
    <script language="JavaScript" src="../js/util.js?BM652w1308207697"></script>
    <script language="JavaScript" src="/lang/msgerrcode.res?BM652w1308207697"></script>
    <script language="JavaScript" type="text/javascript">document.write("<title>" + gVarLogin + "</title>");</script>
    <style type="text/css">
    a
    {
    color:#000000;
    cursor:hand;
    font-family:Arial;
    font-size:14px;
    text-decoration :none;
    }
    td
    {
    font-family:Arial;
    font-size:14px;
    }
    a:hover {
    color:#990000;
    }
    body
    {
    margin: 0 0 0 0;
    font-family:Arial;
    background-color:#ededed;
    }
    </style>
    <script language="JavaScript" type="text/javascript">
    var LoginError = "0:1074266212";
    var Cookieflag = 0;
    var LoginTimes = 0;
    var LoginErrorCode = 0;
    var list = LoginError.split(":");
    if (list.length == 2)
    {
    LoginTimes = list[0];
    LoginErrorCode = list[1];
    }
    var inittime = 0;
    var initcount = 0;
    var firmenu = 'Admin_0';
    var secmenu = 'Admin_0_0';
    var thirdmenu = 'Admin_0_0_0';
    var strCookie = document.cookie;
    var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789+/";
    var base64DecodeChars = new Array(
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
    -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
    52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
    -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
    15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
    -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
    41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
    function base64encode(str) {
    var out, i, len;
    var c1, c2, c3;
    len = str.length;
    i = 0;
    out = "";
    while(i < len) {
    c1 = str.charCodeAt(i++) & 0xff;
    if(i == len)
    {
    out += base64EncodeChars.charAt(c1 >> 2);
    out += base64EncodeChars.charAt((c1 & 0x3) << 4);
    out += "==";
    break;
    }
    c2 = str.charCodeAt(i++);
    if(i == len)
    {
    out += base64EncodeChars.charAt(c1 >> 2);
    out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
    out += base64EncodeChars.charAt((c2 & 0xF) << 2);
    out += "=";
    break;
    }
    c3 = str.charCodeAt(i++);
    out += base64EncodeChars.charAt(c1 >> 2);
    out += base64EncodeChars.charAt(((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4));
    out += base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6));
    out += base64EncodeChars.charAt(c3 & 0x3F);
    }
    return out;
    }
    function base64decode(str) {
    var c1, c2, c3, c4;
    var i, len, out;
    len = str.length;
    i = 0;
    out = "";
    while(i < len) {
    do {
    c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
    } while(i < len && c1 == -1);
    if(c1 == -1)
    break;
    do {
    c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];
    } while(i < len && c2 == -1);
    if(c2 == -1)
    break;
    out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
    do {
    c3 = str.charCodeAt(i++) & 0xff;
    if(c3 == 61)
    return out;
    c3 = base64DecodeChars[c3];
    } while(i < len && c3 == -1);
    if(c3 == -1)
    break;
    out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
    do {
    c4 = str.charCodeAt(i++) & 0xff;
    if(c4 == 61)
    return out;
    c4 = base64DecodeChars[c4];
    } while(i < len && c4 == -1);
    if(c4 == -1)
    break;
    out += String.fromCharCode(((c3 & 0x03) << 6) | c4);
    }
    return out;
    }
    function mouseOverLink(id)
    {
    if (id.indexOf('Login') != -1)
    {
    document.getElementById('loginleft').style.backgro undImage="url(/images/btnPass_L.png?BM652w1308207697)";
    document.getElementById('loginmid').style.backgrou ndImage="url(/images/btnPass_M.png?BM652w1308207697)";
    document.getElementById('loginright').style.backgr oundImage="url(/images/btnPass_R.png?BM652w1308207697)";
    }
    else if (id.indexOf('Cancel') != -1)
    {
    document.getElementById('cancelleft').style.backgr oundImage="url(/images/btnPass_L.png?BM652w1308207697)";
    document.getElementById('cancelmid').style.backgro undImage="url(/images/btnPass_M.png?BM652w1308207697)";
    document.getElementById('cancelright').style.backg roundImage="url(/images/btnPass_R.png?BM652w1308207697)";
    }
    }
    function mouseOutLink(id)
    {
    if (id.indexOf('Login') != -1)
    {
    document.getElementById('loginleft').style.backgro undImage="url(/images/btnInit_L.png?BM652w1308207697)";
    document.getElementById('loginmid').style.backgrou ndImage="url(/images/btnInit_M.png?BM652w1308207697)";
    document.getElementById('loginright').style.backgr oundImage="url(/images/btnInit_R.png?BM652w1308207697)";
    }
    else if (id.indexOf('Cancel') != -1)
    {
    document.getElementById('cancelleft').style.backgr oundImage="url(/images/btnInit_L.png?BM652w1308207697)";
    document.getElementById('cancelmid').style.backgro undImage="url(/images/btnInit_M.png?BM652w1308207697)";
    document.getElementById('cancelright').style.backg roundImage="url(/images/btnInit_R.png?BM652w1308207697)";
    }
    }
    function SubmitForm(type)
    {
    var Username = document.getElementById('txt_Username');
    var Password = document.getElementById('txt_Password');
    document.getElementById('loginleft').style.backgro undImage="url(/images/btnClick_L.png?BM652w1308207697)";
    document.getElementById('loginmid').style.backgrou ndImage="url(/images/btnClick_M.png?BM652w1308207697)";
    document.getElementById('loginright').style.backgr oundImage="url(/images/btnClick_R.png?BM652w1308207697)";
    if (Username.value == "")
    {
    alert(gErrStr0);
    document.getElementById('loginleft').style.backgro undImage="url(/images/btnInit_L.png?BM652w1308207697)";
    document.getElementById('loginmid').style.backgrou ndImage="url(/images/btnInit_M.png?BM652w1308207697)";
    document.getElementById('loginright').style.backgr oundImage="url(/images/btnInit_R.png?BM652w1308207697)";
    if (type)
    return false;
    else
    return;
    }
    if (Password.value == "")
    {
    alert(gErrStr1);
    document.getElementById('loginleft').style.backgro undImage="url(/images/btnInit_L.png?BM652w1308207697)";
    document.getElementById('loginmid').style.backgrou ndImage="url(/images/btnInit_M.png?BM652w1308207697)";
    document.getElementById('loginright').style.backgr oundImage="url(/images/btnInit_R.png?BM652w1308207697)";
    if (type)
    return false;
    else
    return;
    }
    var cookie = "FirstMenu=" + firmenu + "; path=/";
    document.cookie = cookie;
    var cookie = "SecondMenu=" + secmenu + "; path=/";
    document.cookie = cookie;
    var cookie = "ThirdMenu=" + thirdmenu + "; path=/";
    document.cookie = cookie;
    var date = new Date();
    date.setTime(date.getTime()+(365*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    var lantype = 0;
    if (0 == lantype)
    {
    var cookie = "Language=en" + expires + "; path=/";
    }
    else
    {
    var cookie = "Language=zh" + expires + "; path=/";
    }
    document.cookie = cookie;
    var form = new webSubmitForm();
    form.setAction('/index/login.cgi');
    form.addParameter('Username', Username.value);
    form.addParameter('Password', base64encode(Password.value));
    form.submit();
    if (type)
    return true;
    else
    return;
    }
    function get_cookie (cookie_name)
    {
    var results = document.cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );
    if (results)
    {
    return (results[2]);
    }
    else
    {
    return "";
    }
    }
    function LoadFrame()
    {
    document.getElementById('txt_Username').tabIndex = 1;
    document.getElementById('txt_Password').tabIndex = 2;
    document.getElementById('btnLogin').tabIndex = 3;
    document.getElementById('btnCancel').tabIndex = 4;
    document.getElementById('txt_Username').focus();
    setSelect('Language', 0);
    if ((LoginErrorCode < gPubErrStrArray.length) && (LoginErrorCode != '0'))
    {
    alert(gPubErrStrArray[LoginErrorCode]);
    }
    }
    function onCancel()
    {
    var Username = document.getElementById('txt_Username');
    var Password = document.getElementById('txt_Password');
    document.getElementById('cancelleft').style.backgr oundImage="url(/images/btnClick_L.png?BM652w1308207697)";
    document.getElementById('cancelmid').style.backgro undImage="url(/images/btnClick_M.png?BM652w1308207697)";
    document.getElementById('cancelright').style.backg roundImage="url(/images/btnClick_R.png?BM652w1308207697)";
    Username.value = '';
    Password.value = '';
    }
    function onHandleKeyDown(e)
    {
    var key = 0;
    if (window.event)
    key = window.event.keyCode;
    else if (e)
    key = e.which ;
    if (key == 13)
    {
    return SubmitForm(1);
    }
    return true;
    }
    function ChangeLanguage()
    {
    var date = new Date();
    date.setTime(date.getTime()+(365*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    var lantype = 0;
    if (0 == lantype)
    {
    var cookie = "Language=en" + expires + "; path=/";
    }
    else
    {
    var cookie = "Language=zh" + expires + "; path=/";
    }
    document.cookie = cookie;
    var form = new webSubmitForm();
    form.setAction('/tes/chglogin.cgi');
    form.submit();
    }
    document.onkeypress = onHandleKeyDown;
    </script>
    </head>
    <body onLoad="LoadFrame();">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">

    <tr>
    <td height="61" valign="top">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="162" height="68">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%" background="/images/logoback.gif?BM652w1308207697" >
    <tr>
    <td width="162" align="center">
    <img src="/images/logo.gif?BM652w1308207697" border="0" style="position:relative; top:0px"></img> </td>
    </tr>
    </table>
    </td>
    <td width="18" background="/images/leftblock.gif?BM652w1308207697">&nbsp;</td>
    <td background="/images/midblock.gif?BM652w1308207697" valign="top">
    <table height="61" border="0">
    <tr>

    <td height="15" colspan="5"></td>
    </tr>
    <tr>
    <td width="30" height="27">&nbsp;</td>
    <td width="504" valign="top" id="igd_title">
    <b>
    <font color="#006699" style="font-family:Arial;font-size:28px;">
    <script language="JavaScript" type="text/javascript">
    document.write(eval("gVarTitle"));
    </script>
    </font>
    <b>
    </td>
    <td width="117" valign="top">&nbsp;</a></td>
    <td width="60" valign="top">&nbsp;</td>
    <td width="95" valign="top">&nbsp;</td>
    </tr>
    <tr> </tr>

    </table>
    </td>
    <td width="19" background="/images/rightblock.gif?BM652w1308207697">&nbsp;</td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td height="510" align="center">
    <table height="351" width="383" cellpadding="0" cellspacing="0" border="0" style="position:relative;top:-30px;">
    <tr>
    <td height="74"><img src="/images/logtop.png?BM652w1308207697" width="383" height="74"></img></td>
    </tr>
    <tr>
    <td>
    <table height="174" width="383" cellpadding="0" cellspacing="0" border="0" background="/images/logMid.png?BM652w1308207697">
    <tr height="24">

    <td colspan="4">&nbsp;</td>
    </tr>
    <tr>
    <td width="30">&nbsp;</td>
    <td width="29" height="30"><img src="/images/username.png?BM652w1308207697" width="29" height="30"></img></td>
    <td width="100" align="center" id="usernameId">&nbsp;
    <script language="JavaScript" type="text/javascript">
    document.write(gVarName);
    </script>
    </td>
    <td width="221" align="left">
    <input id="txt_Username" type="text" name="Username" style="height:22px; width:155px;font-family:Arial;">
    </td>
    </tr>
    <tr><td height="10"></td></tr>
    <tr>
    <td width="30">&nbsp;</td>
    <td width="29" height="30"><img src="/images/password.gif?BM652w1308207697" width="29" height="30"></img></td>

    <td width="100" align="center" id="passwordId">&nbsp;
    <script language="JavaScript" type="text/javascript">
    document.write(gVarPwd);
    </script>
    </td>
    <td width="221" align="left">
    <input id="txt_Password" type="password" name="Password" style="height:22px; width:155px;font-family:Arial;">
    </td>
    </tr>
    <tr>
    <td height="38" colspan="2">&nbsp;</td>
    <td colspan="2" align="center" id="erroinfoId">
    <script language="JavaScript" type="text/javascript">
    if(Cookieflag == 1)
    {
    getElement('erroinfoId').innerHTML = '<font color="#FF3300">' + gErrStr2;
    }
    else if (Cookieflag == 2)
    {
    getElement('erroinfoId').innerHTML = '<font color="#FF3300">' + gErrStr3;
    }
    else
    {
    if (LoginTimes == 0)
    {
    getElement('erroinfoId').innerHTML = '<font color="#9e9e9e">' + gErrStr4;
    }
    else if (LoginTimes == 1)
    {
    getElement('erroinfoId').innerHTML = '<font color="#FF3300">' + gErrStr5;
    }
    else if (LoginTimes == 2)
    {
    getElement('erroinfoId').innerHTML = '<font color="#FF3300">' + gErrStr6;
    }
    else if (LoginTimes >= 3)
    {
    getElement('erroinfoId').innerHTML = '<font color="#FF3300">' + gErrStr7;
    }
    }
    </script>
    </td>
    </tr>
    </table>
    </td>

    </tr>
    <tr>
    <td height="103" valign="top" background="/images/logBotom.png?BM652w1308207697">
    <table height="30" width="100%" cellpadding="0" cellspacing="0" border="0" style="border-color:#efefef;">
    <tr>
    <td width="50">&nbsp; </td>
    <td id="loginleft" width="5" background="/images/btnInit_L.png?BM652w1308207697" style="background-repeat:no-repeat"></td>
    <td id="loginmid" width="89" align="center" background="/images/btnInit_M.png?BM652w1308207697">
    <a id="btnLogin" href="javascript:SubmitForm(0);" onMouseOver="mouseOverLink(this.id);" onMouseOut="mouseOutLink(this.id);">
    <script language="JavaScript" type="text/javascript">document.write(gVarLogin);</script>
    </a></td>
    <td id="loginright" width="5" background="/images/btnInit_R.png?BM652w1308207697" style="background-repeat:no-repeat"></td>
    <td width="50">&nbsp;</td>
    <td id="cancelleft" width="5" background="/images/btnInit_L.png?BM652w1308207697" style="background-repeat:no-repeat"></td>
    <td id="cancelmid" width="89" background="/images/btnInit_M.png?BM652w1308207697" align="center">

    <a id="btnCancel" href="#" onMouseOver="mouseOverLink(this.id);" onMouseOut="mouseOutLink(this.id);" onClick="onCancel();">
    <script language="JavaScript" type="text/javascript">document.write(gVarCancel);</script>
    </a>
    </td>
    <td id="cancelright" width="5" background="/images/btnInit_R.png?BM652w1308207697" style="background-repeat:no-repeat"></td>
    <td width="51">&nbsp; </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>

    </html>

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    6

    Default Re: java login and password to decode

    I can`t see Java code only Javascript ->
    java login and password to decode-3779250024_68be4fe8b0.jpg
    ->Java!=Javascript

  3. #3
    razanadrakoto is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: java login and password to decode

    so can someone decode it and help me to found the password and login (maybe admin) inside this javascript?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: java login and password to decode

    Quote Originally Posted by razanadrakoto View Post
    so can someone decode it and help me to found the password and login (maybe admin) inside this javascript?
    Let me spell it out more clearly for you since you don't appear to understanding the concept. This is a Java forum and you are asking a JavaScript question, a language that this forum doesn't address. To get an appropriate answer for your question, you need to Google for a JavaScript forum and ask this question there.

    Let's lock this thread as it is completely off topic from the scope of this forum.
    Last edited by Fubarable; 03-24-2012 at 04:35 PM.

Similar Threads

  1. Getting problem in UTF-8 Encode/Decode with Java
    By sagarsway in forum Advanced Java
    Replies: 2
    Last Post: 12-22-2008, 08:01 PM
  2. how to check password for 3 times enterd wrong password
    By sk.mahaboobbhasha@gmail.c in forum New To Java
    Replies: 2
    Last Post: 11-14-2008, 08:53 PM
  3. how to check password for 3 times enterd wrong password
    By sk.mahaboobbhasha@gmail.c in forum Java Servlet
    Replies: 0
    Last Post: 11-14-2008, 02:22 PM
  4. How to check password of a jsp/html with the password of Database(mysql) #1
    By sk.mahaboobbhasha@gmail.c in forum Java Servlet
    Replies: 2
    Last Post: 11-14-2008, 02:11 PM
  5. Replies: 0
    Last Post: 06-25-2008, 01:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •