Advertisement
Guest User

Mitrastar HPNA login

a guest
Jun 13th, 2018
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.47 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5. <meta http-equiv="Pragma" content="no-cache">
  6. <meta name="generator" content="GoLive CyberStudio 3">
  7. <title>.::Welcome to the Web-Based Configurator::.</title>
  8. <script src="../js/jquery-1.6.3.min.js" type="text/javascript"></script>
  9. <script src="../js/jquery.validate.pack.js" type="text/javascript"></script>
  10. <script type="text/javascript" src="../js/Multi_Language.js"></script>
  11. <script type="text/javascript" src="../js/common.js"></script>
  12. <script type="text/javascript">
  13. $.ajaxSetup({
  14. 'beforeSend': function(xhr) {
  15. xhr.setRequestHeader("If-Modified-Since", "0");
  16. xhr.setRequestHeader("Cache-Control", "no-cache");
  17. xhr.setRequestHeader("Pragma", "no-cache");
  18. xhr.setRequestHeader("Expires", "0");
  19. }
  20. });
  21. $(function(){
  22. function showTroubleShooting(src){ var content = '<iframe frameborder=0 src="' + src + '" style=" width:100%; height:360px; ">'
  23. $.modal(content, {
  24. escClose: false,
  25. opacity: 85,
  26. position: ['140px'],
  27. containerCss: {
  28. backgroundImage:"url(../images/bg.gif)",
  29. //backgroundColor:"#fff",
  30. height: 360,
  31. padding: 0,
  32. width: 700
  33. }
  34. });
  35. }
  36. if (window.location.search.substring(1) == 'th=1')
  37. showTroubleShooting("troubleshooting.html");
  38.  
  39. if (window.location.search.substring(1) == 'th=5')
  40. showTroubleShooting("message.html");
  41.  
  42. });
  43. var urlstring=top.location.href
  44. var strarray = urlstring.split('/');
  45. if(strarray.length > 4 && strarray[4] != "login.html"){
  46. var newurl =strarray[0]+"//"+strarray[2];
  47. top.location.href=newurl;
  48. }
  49. var END_OF_INPUT = -1;
  50. var base64Chars = new Array(
  51. 'A','B','C','D','E','F','G','H',
  52. 'I','J','K','L','M','N','O','P',
  53. 'Q','R','S','T','U','V','W','X',
  54. 'Y','Z','a','b','c','d','e','f',
  55. 'g','h','i','j','k','l','m','n',
  56. 'o','p','q','r','s','t','u','v',
  57. 'w','x','y','z','0','1','2','3',
  58. '4','5','6','7','8','9','+','/'
  59. );
  60.  
  61. var base64Str;
  62. var base64Count;
  63. function setBase64Str(str){
  64. base64Str = str;
  65. base64Count = 0;
  66. }
  67. function readBase64(){
  68. if (!base64Str) return END_OF_INPUT;
  69. if (base64Count >= base64Str.length) return END_OF_INPUT;
  70. var c = base64Str.charCodeAt(base64Count) & 0xff;
  71. base64Count++;
  72. return c;
  73. }
  74. function encodeBase64(str){
  75. setBase64Str(str);
  76. var result = '';
  77. var inBuffer = new Array(3);
  78. var lineCount = 0;
  79. var done = false;
  80. while (!done && (inBuffer[0] = readBase64()) != END_OF_INPUT){
  81. inBuffer[1] = readBase64();
  82. inBuffer[2] = readBase64();
  83. result += (base64Chars[ inBuffer[0] >> 2 ]);
  84. if (inBuffer[1] != END_OF_INPUT){
  85. result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30) | (inBuffer[1] >> 4) ]);
  86. if (inBuffer[2] != END_OF_INPUT){
  87. result += (base64Chars [((inBuffer[1] << 2) & 0x3c) | (inBuffer[2] >> 6) ]);
  88. result += (base64Chars [inBuffer[2] & 0x3F]);
  89. } else {
  90. result += (base64Chars [((inBuffer[1] << 2) & 0x3c)]);
  91. result += ('=');
  92. done = true;
  93. }
  94. } else {
  95. result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30)]);
  96. result += ('=');
  97. result += ('=');
  98. done = true;
  99. }
  100. lineCount += 4;
  101. if (lineCount >= 76){
  102. result += ('\n');
  103. lineCount = 0;
  104. }
  105. }
  106. return result;
  107. }
  108. var hexcase = 0;
  109. var chrsz = 8;
  110. function hex_md5(s){
  111. return binl2hex(core_md5(str2binl(s), s.length * chrsz));
  112. }
  113. function core_md5(x, len) {
  114. x[len >> 5] |= 0x80 << ((len) % 32);
  115. x[(((len + 64) >>> 9) << 4) + 14] = len;
  116.  
  117. var a = 1732584193;
  118. var b = -271733879;
  119. var c = -1732584194;
  120. var d = 271733878;
  121.  
  122. for(var i = 0; i < x.length; i += 16) {
  123. var olda = a;
  124. var oldb = b;
  125. var oldc = c;
  126. var oldd = d;
  127.  
  128. a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
  129. d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
  130. c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
  131. b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
  132. a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
  133. d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
  134. c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
  135. b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
  136. a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
  137. d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
  138. c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
  139. b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
  140. a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
  141. d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
  142. c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
  143. b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
  144.  
  145. a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
  146. d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
  147. c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
  148. b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
  149. a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
  150. d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
  151. c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
  152. b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
  153. a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
  154. d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
  155. c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
  156. b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
  157. a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
  158. d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
  159. c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
  160. b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
  161.  
  162. a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
  163. d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
  164. c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
  165. b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
  166. a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
  167. d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
  168. c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
  169. b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
  170. a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
  171. d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
  172. c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
  173. b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
  174. a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
  175. d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
  176. c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
  177. b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
  178.  
  179. a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
  180. d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
  181. c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
  182. b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
  183. a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
  184. d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
  185. c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
  186. b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
  187. a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
  188. d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
  189. c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
  190. b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
  191. a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
  192. d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
  193. c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
  194. b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
  195.  
  196. a = safe_add(a, olda);
  197. b = safe_add(b, oldb);
  198. c = safe_add(c, oldc);
  199. d = safe_add(d, oldd);
  200. }
  201. return Array(a, b, c, d);
  202. }
  203. function md5_cmn(q, a, b, x, s, t) {
  204. return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
  205. }
  206. function md5_ff(a, b, c, d, x, s, t) {
  207. return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
  208. }
  209. function md5_gg(a, b, c, d, x, s, t) {
  210. return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
  211. }
  212. function md5_hh(a, b, c, d, x, s, t) {
  213. return md5_cmn(b ^ c ^ d, a, b, x, s, t);
  214. }
  215. function md5_ii(a, b, c, d, x, s, t) {
  216. return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
  217. }
  218. function safe_add(x, y) {
  219. var lsw = (x & 0xFFFF) + (y & 0xFFFF);
  220. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  221. return (msw << 16) | (lsw & 0xFFFF);
  222. }
  223. function bit_rol(num, cnt) {
  224. return (num << cnt) | (num >>> (32 - cnt));
  225. }
  226. function str2binl(str) {
  227. var bin = Array();
  228. var mask = (1 << chrsz) - 1;
  229. for(var i = 0; i < str.length * chrsz; i += chrsz) {
  230. bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
  231. }
  232. return bin;
  233. }
  234. function binl2hex(binarray) {
  235. var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
  236. var str = "";
  237. for(var i = 0; i < binarray.length * 4; i++) {
  238. str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
  239. }
  240. return str;
  241. }
  242.  
  243.  
  244. function uiApply()
  245. {
  246. var username = document.passWarning.Loginuser.value;
  247. var passwd = document.passWarning.LoginPassword.value;
  248. if (username=="" || username.length <2){
  249. //alert(document.getElementById("WAN_Empty_Error_2").innerHTML);
  250. alert(document.getElementById("MLG_Pass_Warn9_Txt").innerHTML);
  251. return false;
  252. }
  253. if (passwd=="" || passwd.length >64){
  254. //alert(document.getElementById("Password_Errors_3").innerHTML);
  255. alert(document.getElementById("MLG_Pass_Warn8_Txt").innerHTML);
  256. return false;
  257. }
  258.  
  259. if(username == document.passWarning.last_username0.value){
  260. if(document.passWarning.status0.value == "1"){
  261. }
  262. else{
  263. return false;
  264. }
  265. }
  266. if(username == document.passWarning.last_username1.value){
  267. if(document.passWarning.status1.value == "1"){
  268. }
  269. else{
  270. return false;
  271. }
  272. }
  273.  
  274. //passwd=hex_md5(passwd);
  275. var sid = "3ef6cdea";
  276. passwd=hex_md5(sid+":"+passwd);
  277. var string=username+":"+passwd;
  278. document.passWarning.LoginPassword.value="";
  279. var passd=encodeBase64( string);
  280. document.passWarning.action="/cgi-bin/index.asp?"+passd;
  281. //alert(document.passWarning.action);
  282. document.passWarning.submit();
  283. }
  284. function frmLoad () {
  285. var login_ret = "0";
  286. if (login_ret != "0") {
  287. $("#Message").html("<font color='#DD0000'>The username or password is not correct.Authorization will be failed after trying 3 times!!!..</font>");
  288. }
  289. }
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298. $(document).ready(function() {
  299. Multi_Language();
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309. });
  310. function Multi_Language(){
  311. var Language="Portugal";
  312. var language_Index = get_language_index(Language);
  313.  
  314. document.getElementById("Welcome_Login").innerHTML = MLG_Welcome_Login[language_Index];
  315. document.getElementById("WelcomeTo_Login").innerHTML = MLG_WelcomeTo_Login[language_Index];
  316. document.getElementById("ExplainText_Login").innerHTML = MLG_ExplainText_Login[language_Index];
  317.  
  318. document.getElementById("Username_Login").innerHTML = MLG_Username_Login[language_Index];
  319. document.getElementById("Password_Login").innerHTML = MLG_Password_Login[language_Index];
  320. document.getElementById("Login_Text").innerHTML = MLG_Button_Login[language_Index];
  321. document.passWarning.Prestige_Login.value = document.getElementById("Login_Text").innerHTML;
  322. //document.getElementById("Line").innerHTML = Line[language_Index];
  323. document.getElementById("MLG_Pass_Warn8_Txt").innerHTML = MLG_Pass_Warn8[language_Index];
  324. document.getElementById("MLG_Pass_Warn9_Txt").innerHTML = MLG_Pass_Warn9[language_Index];
  325. document.getElementById("MLG_Pass_Warn11_Txt").innerHTML = MLG_Pass_Warn11[language_Index];
  326. document.getElementById("MLG_Pass_Warn12_Txt").innerHTML = MLG_Pass_Warn12[language_Index];
  327. document.getElementById("MLG_Pass_Wrong_Txt").innerHTML = MLG_Pass_Wrong1[language_Index];
  328. document.getElementById("MLG_Username_Wrong_Txt").innerHTML = MLG_Username_Wrong1[language_Index];
  329. document.getElementById("MLG_NotCorrectErrMsg_Login").innerHTML = MLG_NotCorrectErrMsg_Login[language_Index];
  330. }
  331.  
  332. </script>
  333. </head>
  334. <link href="../css/brick.css" rel="stylesheet" type="text/css" />
  335. <body class="loginbg">
  336.  
  337.  
  338.  
  339. <div class="logo"><a href="http://www.cadastrospeedy.com.br"><img src="../images/logo_brazil.gif" alt="" /></a></div>
  340.  
  341.  
  342.  
  343. <div class="wraplogin">
  344.  
  345. <div class="header_position"><div class="logoWb"><img src="../images/logo.gif" alt="" /></div>
  346.  
  347. </div>
  348. <div class="logincenter"><div class="login_left_pic"><img src="../images/p_login.gif"/></div>
  349. <div class="login_right" id="login_inputs">
  350. <div>
  351. <ul>
  352.  
  353.  
  354. <span class="title_index"><span id='Welcome_Login'>Welcome</span> <br />
  355.  
  356. <li class="content_word">
  357.  
  358. <span id='WelcomeTo_Login'>Welcome to </span> GPT-2731GN2A4P <span id='ExplainText_Login'>configuration interface. Please enter username and password to login.</span>
  359.  
  360. <div>
  361. <form name="passWarning" method="post" id="login" action="/cgi-bin/index.asp" onSubmit="uiApply();" autocomplete="off"><fieldset><ul>
  362. <li style=" margin-top:10px;">
  363. <label for="Loginuser" style="width: 150px;" class="content_word_title"><span id='Username_Login' class="required">Username:</span></label>
  364.  
  365. <input name="Loginuser" type="text" class="text required" id="Loginuser" size="20" then"/>
  366.  
  367. <label for="Loginuser" class="error"><span id='MLG_Username_Wrong_Txt'>The username is not correct. </span></label>
  368. </li>
  369.  
  370. <li style=" margin-top:10px; clear:both;">
  371. <label for="LoginPassword" style="width: 150px;" class="content_word_title"><span id='Password_Login' class="required">Password:</span></label>
  372. <input name="fake_username" id="fake_username" type="text"maxlength="64" style='display:none'/><input name="fake_pass" id="fake_pass" type="password" maxlength="64" style='display:none'/><input name="LoginPassword" type="password" autocomplete="new-password" class="text required" id="LoginPassword" size="20" autocomplete="off" />
  373. <label for="LoginPassword" class="error"><span id='MLG_Pass_Wrong_Txt'>The password is not correct. </span></label>
  374. </li>
  375. <li>
  376. <label id="Message"></label>
  377. </li>
  378. <li class="login_button">
  379. <input id='Login_ID' type="submit" value="Login" name="Prestige_Login" >
  380. </li>
  381. </ul>
  382. </fieldset>
  383.  
  384. <input name="last_username0" type="hidden" value="support">
  385. <input name="last_username1" type="hidden" value="admin">
  386. <input name="status0" type="hidden" value="1">
  387. <input name="status1" type="hidden" value="1">
  388.  
  389. </form>
  390. </div>
  391. </li>
  392. <li style="display:none">
  393. <span id='Login_Text'></span>
  394. <span id='MLG_Pass_Warn8_Txt'></span>
  395. <span id='MLG_Pass_Warn9_Txt'></span>
  396. <span id='MLG_NotCorrectErrMsg_Login'></span></li>
  397. </ul>
  398. <input id='Login_Timer' style="display:none"></input>
  399. </div></div>
  400. <div id="Login_fail" style="display:none" align="center" >
  401. <span id='Fail_Login' style="font-size:18px; font-weight:bold;"><font color="#DD0000"><br /><br /><span id='MLG_Pass_Warn11_Txt'>Authorization failed after trying 3 times!!!</span></font></span>
  402. </div>
  403. <div id="Login_try" style="display:none" align="center" >
  404.  
  405. <span id='Fail_Login2' style="font-size:18px; font-weight:bold;"><font color="#DD0000"><br /><br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <span id='MLG_Pass_Warn12_Txt'>Please try again after</span> <span id='MLG_Pass_Warn13_Txt'>Please wait seconds.</span></font></span>
  406.  
  407. </div>
  408. </div>
  409. </div>
  410.  
  411. </body>
  412. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement