SHARE
TWEET

Untitled

a guest Jun 12th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4.  
  5.  
  6. <!DOCTYPE html>
  7. <html>
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  9. <title>TIM Modem </title>
  10. <head>
  11. <meta charset="utf-8">
  12.    <link href="css/bootstrap.css" rel="stylesheet">
  13.     <style>
  14.       body {
  15.         padding-top: 0px; /* 90px to make the container go all the way to the bottom of the topbar */
  16.       }
  17.     </style>
  18.     <link href="css/responsive.css" rel="stylesheet">
  19.  
  20.    <div class="navbar navbar-fixed-top" align = "center">
  21.     <a class="brand" style="margin-top: 7px;" href="#"><img style="margin-left: 14px;" src="img/tim-logo.png" alt="Telecom Italia Logo"></a>
  22.       <div class="navbar-inner">
  23.         <div class="container-fluid">
  24.           <a class="btn btn-navbar" data-toggle="collapse" href="#nav-collapse">
  25.             <span class="icon-bar"></span>
  26.             <span class="icon-bar"></span>
  27.             <span class="icon-bar"></span>
  28.           </a>
  29.         </div>
  30.       </div>
  31.     </div>
  32.    
  33.  
  34. </head>
  35. <body height="100%" style="margin:0px;" oncontextmenu="return false;" onload="noBack();" onpageshow="if (event.persisted) noBack();" onunload="">
  36.   <noscript>
  37.     <h1>TIM Modem</h1>
  38.     <h4>Per visualizzare l'interfaccia Web di TIM Modem, è necessario che il browser supporti JavaScript e sia predisposto per il suo utilizzo! <br><br>Abilitare l'uso degli script e aggiornare la pagina visualizzata dal browser.</h4>
  39.   </noscript>
  40.  
  41. <script type="text/javascript">
  42. window.history.forward();
  43.     function noBack() { window.history.forward(); }
  44. //<![CDATA[
  45. function disable_fields(theForm)
  46. {
  47.   var len = theForm.elements.length;
  48.   for (var i = 0; i < len; i++) {
  49.     // Don't disable "hidden" fields.
  50.     // Don't disable the input elem "user", to compatible with Safari and Opera
  51.     // which execute this function before form submit() method.
  52.     if((theForm.elements[i].type.toLowerCase() != "hidden") &&
  53.        (theForm.elements[i].name != "user"))
  54.       theForm.elements[i].disabled = 1;
  55.   }
  56. }
  57.  
  58. function setLanguage(langCode)
  59. {
  60.   document.langSelect.elements[0].value = langCode;
  61.   document.langSelect.submit();
  62.   disable_fields(document.langSelect);
  63. }
  64.  
  65. //----RTL GUI support start----
  66. function traversingDOMNode(rootNode, callback)
  67. {
  68.   var currentNode = rootNode.childNodes;
  69.   for (var i = 0; i < currentNode.length; i++){
  70.     callback(currentNode[i]);
  71.     traversingDOMNode(currentNode[i], callback);
  72.   }
  73. }
  74.  
  75. function alignByClassFlag(node)
  76. {
  77.   if (node.className && node.className != "") {
  78.     if (node.className.search(/js_right/i)!=-1) {
  79.       node.style.textAlign = "right";
  80.     }
  81.     else if (node.className.search(/js_left/i)!=-1) {
  82.       node.style.textAlign = "left";
  83.     }
  84.   }
  85. }
  86.  
  87. function getLanguageDirection(lang_code)
  88. {
  89.   var dir = "ltr";
  90.   var rtlLangSet = new Array()
  91.   rtlLangSet[0] = "ar"
  92.  
  93.   for (var i=0; i<rtlLangSet.length; i++) {
  94.     if (lang_code && (lang_code.toLowerCase() == rtlLangSet[i])) {
  95.       dir = "rtl";
  96.       break;
  97.     }
  98.   }
  99.   return dir;
  100. }
  101.  
  102. function js_dir_rtl()
  103. {
  104.   document.documentElement.dir = "rtl";
  105.   traversingDOMNode(document.documentElement, alignByClassFlag);
  106. }
  107. //----end----
  108. function noenter(e) {
  109.   var keycode;
  110.  
  111.   if (window.event)
  112.     keycode = window.event.keyCode;
  113.   else if (e)
  114.     keycode = e.which;
  115.   else
  116.     return true;
  117.  
  118.   if (keycode == 13)
  119.     return false;
  120.   else
  121.     return true;
  122. }
  123.  
  124. // NOTE: Chrome and Safari will ignore this function and submit form directly,
  125. //       when press "ENTER".
  126. function enter_submit(e) {
  127.   var keycode;
  128.  
  129.   if (window.event)
  130.     keycode = window.event.keyCode;
  131.   else if (e)
  132.     keycode = e.which;
  133.   else
  134.     return true;
  135.  
  136.   if (keycode == 13) {
  137.     submitAuthentication();
  138.     return false;
  139.   }
  140.  
  141.   return true;
  142. }
  143.  
  144. var hex_chr = "0123456789abcdef";
  145. function rhex(num)
  146. {
  147.   str = "";
  148.   for(j = 0; j <= 3; j++)
  149.     str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) +
  150.            hex_chr.charAt((num >> (j * 8)) & 0x0F);
  151.   return str;
  152. }
  153.  
  154. /*
  155.  * Convert a string to a sequence of 16-word blocks, stored as an array.
  156.  * Append padding bits and the length, as described in the MD5 standard.
  157.  */
  158. function str2blks_MD5(str)
  159. {
  160.   nblk = ((str.length + 8) >> 6) + 1;
  161.   blks = new Array(nblk * 16);
  162.   for(i = 0; i < nblk * 16; i++) blks[i] = 0;
  163.   for(i = 0; i < str.length; i++)
  164.     blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8);
  165.   blks[i >> 2] |= 0x80 << ((i % 4) * 8);
  166.   blks[nblk * 16 - 2] = str.length * 8;
  167.   return blks;
  168. }
  169.  
  170. /*
  171.  * Add integers, wrapping at 2^32. This uses 16-bit operations internally
  172.  * to work around bugs in some JS interpreters.
  173.  */
  174. function add(x, y)
  175. {
  176.   var lsw = (x & 0xFFFF) + (y & 0xFFFF);
  177.   var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  178.   return (msw << 16) | (lsw & 0xFFFF);
  179. }
  180.  
  181. /*
  182.  * Bitwise rotate a 32-bit number to the left
  183.  */
  184. function rol(num, cnt)
  185. {
  186.   return (num << cnt) | (num >>> (32 - cnt));
  187. }
  188.  
  189. /*
  190.  * These functions implement the basic operation for each round of the
  191.  * algorithm.
  192.  */
  193. function cmn(q, a, b, x, s, t)
  194. {
  195.   return add(rol(add(add(a, q), add(x, t)), s), b);
  196. }
  197. function ff(a, b, c, d, x, s, t)
  198. {
  199.   return cmn((b & c) | ((~b) & d), a, b, x, s, t);
  200. }
  201. function gg(a, b, c, d, x, s, t)
  202. {
  203.   return cmn((b & d) | (c & (~d)), a, b, x, s, t);
  204. }
  205. function hh(a, b, c, d, x, s, t)
  206. {
  207.   return cmn(b ^ c ^ d, a, b, x, s, t);
  208. }
  209. function ii(a, b, c, d, x, s, t)
  210. {
  211.   return cmn(c ^ (b | (~d)), a, b, x, s, t);
  212. }
  213.  
  214. /*
  215.  * Take a string and return the hex representation of its MD5.
  216.  */
  217. function MD5(str)
  218. {
  219.   x = str2blks_MD5(str);
  220.   var a =  1732584193;
  221.   var b = -271733879;
  222.   var c = -1732584194;
  223.   var d =  271733878;
  224.  
  225.   for(i = 0; i < x.length; i += 16)
  226.   {
  227.     var olda = a;
  228.     var oldb = b;
  229.     var oldc = c;
  230.     var oldd = d;
  231.  
  232.     a = ff(a, b, c, d, x[i+ 0], 7 , -680876936);
  233.     d = ff(d, a, b, c, x[i+ 1], 12, -389564586);
  234.     c = ff(c, d, a, b, x[i+ 2], 17,  606105819);
  235.     b = ff(b, c, d, a, x[i+ 3], 22, -1044525330);
  236.     a = ff(a, b, c, d, x[i+ 4], 7 , -176418897);
  237.     d = ff(d, a, b, c, x[i+ 5], 12,  1200080426);
  238.     c = ff(c, d, a, b, x[i+ 6], 17, -1473231341);
  239.     b = ff(b, c, d, a, x[i+ 7], 22, -45705983);
  240.     a = ff(a, b, c, d, x[i+ 8], 7 ,  1770035416);
  241.     d = ff(d, a, b, c, x[i+ 9], 12, -1958414417);
  242.     c = ff(c, d, a, b, x[i+10], 17, -42063);
  243.     b = ff(b, c, d, a, x[i+11], 22, -1990404162);
  244.     a = ff(a, b, c, d, x[i+12], 7 ,  1804603682);
  245.     d = ff(d, a, b, c, x[i+13], 12, -40341101);
  246.     c = ff(c, d, a, b, x[i+14], 17, -1502002290);
  247.     b = ff(b, c, d, a, x[i+15], 22,  1236535329);
  248.  
  249.     a = gg(a, b, c, d, x[i+ 1], 5 , -165796510);
  250.     d = gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
  251.     c = gg(c, d, a, b, x[i+11], 14,  643717713);
  252.     b = gg(b, c, d, a, x[i+ 0], 20, -373897302);
  253.     a = gg(a, b, c, d, x[i+ 5], 5 , -701558691);
  254.     d = gg(d, a, b, c, x[i+10], 9 ,  38016083);
  255.     c = gg(c, d, a, b, x[i+15], 14, -660478335);
  256.     b = gg(b, c, d, a, x[i+ 4], 20, -405537848);
  257.     a = gg(a, b, c, d, x[i+ 9], 5 ,  568446438);
  258.     d = gg(d, a, b, c, x[i+14], 9 , -1019803690);
  259.     c = gg(c, d, a, b, x[i+ 3], 14, -187363961);
  260.     b = gg(b, c, d, a, x[i+ 8], 20,  1163531501);
  261.     a = gg(a, b, c, d, x[i+13], 5 , -1444681467);
  262.     d = gg(d, a, b, c, x[i+ 2], 9 , -51403784);
  263.     c = gg(c, d, a, b, x[i+ 7], 14,  1735328473);
  264.     b = gg(b, c, d, a, x[i+12], 20, -1926607734);
  265.  
  266.     a = hh(a, b, c, d, x[i+ 5], 4 , -378558);
  267.     d = hh(d, a, b, c, x[i+ 8], 11, -2022574463);
  268.     c = hh(c, d, a, b, x[i+11], 16,  1839030562);
  269.     b = hh(b, c, d, a, x[i+14], 23, -35309556);  
  270.     a = hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
  271.     d = hh(d, a, b, c, x[i+ 4], 11,  1272893353);
  272.     c = hh(c, d, a, b, x[i+ 7], 16, -155497632);
  273.     b = hh(b, c, d, a, x[i+10], 23, -1094730640);
  274.     a = hh(a, b, c, d, x[i+13], 4 ,  681279174);
  275.     d = hh(d, a, b, c, x[i+ 0], 11, -358537222);
  276.     c = hh(c, d, a, b, x[i+ 3], 16, -722521979);
  277.     b = hh(b, c, d, a, x[i+ 6], 23,  76029189);  
  278.     a = hh(a, b, c, d, x[i+ 9], 4 , -640364487);
  279.     d = hh(d, a, b, c, x[i+12], 11, -421815835);
  280.     c = hh(c, d, a, b, x[i+15], 16,  530742520);
  281.     b = hh(b, c, d, a, x[i+ 2], 23, -995338651);
  282.  
  283.     a = ii(a, b, c, d, x[i+ 0], 6 , -198630844);
  284.     d = ii(d, a, b, c, x[i+ 7], 10,  1126891415);
  285.     c = ii(c, d, a, b, x[i+14], 15, -1416354905);
  286.     b = ii(b, c, d, a, x[i+ 5], 21, -57434055);  
  287.     a = ii(a, b, c, d, x[i+12], 6 ,  1700485571);
  288.     d = ii(d, a, b, c, x[i+ 3], 10, -1894986606);
  289.     c = ii(c, d, a, b, x[i+10], 15, -1051523);  
  290.     b = ii(b, c, d, a, x[i+ 1], 21, -2054922799);
  291.     a = ii(a, b, c, d, x[i+ 8], 6 ,  1873313359);
  292.     d = ii(d, a, b, c, x[i+15], 10, -30611744);  
  293.     c = ii(c, d, a, b, x[i+ 6], 15, -1560198380);
  294.     b = ii(b, c, d, a, x[i+13], 21,  1309151649);
  295.     a = ii(a, b, c, d, x[i+ 4], 6 , -145523070);
  296.     d = ii(d, a, b, c, x[i+11], 10, -1120210379);
  297.     c = ii(c, d, a, b, x[i+ 2], 15,  718787259);
  298.     b = ii(b, c, d, a, x[i+ 9], 21, -343485551);
  299.  
  300.     a = add(a, olda);
  301.     b = add(b, oldb);
  302.     c = add(c, oldc);
  303.     d = add(d, oldd);
  304.   }
  305.   return rhex(a) + rhex(b) + rhex(c) + rhex(d);
  306. }
  307.  
  308. var realm;
  309. var nonce;
  310. var qop;
  311. var uri = "/login.lp";
  312.  
  313. function submitAuthentication()
  314. {
  315.   var user = document.getElementById("user").value;
  316.   var pwd  = document.getElementById("password").value;
  317.   document.getElementById("password").disabled = true;
  318.   $.get("login.lp?get_preauth=true",function(res){    
  319.     res = res.split("|");
  320.     $("#rn").val(res[0]);
  321.     realm = res[1];
  322.     nonce = res[2];
  323.     qop = res[3];  
  324.     var HA1 = MD5(user + ":" + realm + ":" + pwd);
  325.     var HA2 = MD5("GET" + ":" + uri);
  326.     document.getElementById("hidepw").value = MD5(HA1 + ":" + nonce +
  327.                           ":" + "00000001" + ":" + "xyz" + ":" + qop + ":" + HA2);
  328.     document.authform.submit();
  329.     disable_fields(document.authform);
  330.   })
  331. }
  332.  
  333. function cancelLogin()
  334. {
  335.   if (window.opener || window.name == "userpage")
  336.     window.close();     // Close pop-up login window
  337.   else
  338.     location.href="/";
  339. }
  340. //]]>
  341. </script>
  342. <br/><br/><br/><br/>
  343.  
  344.                             <script type="text/javascript">
  345.                               var g_dir = getLanguageDirection("it");
  346.                             </script>
  347.                            
  348.                 <script type="text/javascript">
  349.                    
  350.                 </script>
  351.            
  352.     <tr>
  353.        <td class="page" width="760">
  354.          <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
  355.           <tr>
  356.             <td>
  357.               <table cellspacing="0" cellpadding="0" border="0" width="100%">
  358.                 <tr>
  359.                   <td>
  360.                 <div  class="row-fluid">  
  361.  
  362. <hr/>
  363. <div class='contentitem' style="margin-top:100px;">
  364. <table cellspacing='0' cellpadding='0' width='100%'>
  365.  
  366.   <tr><td colspan='2'>
  367.  
  368.      </div><br/>
  369.  
  370. <p align = "center" ><b>Inserire il nome utente e la password per accedere a TIM Modem.</b></p><br>
  371.  
  372.  
  373.  
  374.     <p style="color:red;text-align:center;">Il nome utente o la password inserita non è corretta. Verificare e riprovare.</p>
  375.  
  376.  
  377.  
  378.  
  379.     <form method="post" action="login.lp" name="authform" id="authform">
  380.     <input type="hidden" name="rn" id="rn"/>
  381.     <input type="hidden" name="hidepw" id="hidepw" value=""/>
  382.  
  383.     <table width='100%' cellspacing='0' cellpadding='0'>
  384.       <tr><td width="500" valign="top"></td>
  385.       <td valign="top">
  386.         <table width='100%' class="datatable" cellspacing='0' cellpadding='0' align = "center">
  387.           <tr><td></td><td width=''></td><td width=''></td><td width=''></td></tr>
  388.           <tr><td colspan='4' height='7'></td></tr>
  389.           <tr>
  390.             <td width='120px'><b>Nome utente:</b></td>
  391.             <td colspan='3'><select id = "user" name = "user"  style="width: 160px;color: rgb(51, 51, 51);" ><option selected="selected" value = "Administrator">Administrator</option></select></td>
  392.          
  393.           </tr>
  394.           <tr><td colspan='4' height='7'></td></tr>
  395.           <tr>
  396.             <td width='120px'><b>Password:</b></td>
  397.             <td colspan='3'><input type="password" name="password" id="password" maxlength="64" style="width: 150px;" onkeypress="return enter_submit(event);" /></td></td>
  398.           </tr>
  399.           <tr><td colspan='4' height='7'></td></tr>
  400.           <tr>
  401.             <td colspan="4" style="padding-left:153px;">
  402.               <input style="color: rgb(255, 255, 255);" name="ok" class="btn btn-primary" type="button" value="Accedi" onclick='submitAuthentication()' />
  403.             </td>
  404.           </tr>
  405.         </table>
  406.       </td></tr>
  407.     </table>
  408.  
  409.     </form>
  410.     </td></tr></table>
  411. </td></tr></table>
  412. </div>
  413.  
  414. <script type="text/javascript">
  415. //<![CDATA[
  416. document.authform.user.focus();
  417. if (g_dir == "rtl")
  418.   js_dir_rtl();
  419. //]]>
  420. </script>
  421.  
  422. </div>
  423.                   </td>
  424.                 </tr>
  425.               </table>
  426.             </td>
  427.           </tr>
  428.     <script src="js/jquery.js"></script>
  429.     <script src="js/bootstrap-modal.js"></script>
  430. </body>
  431. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top