Advertisement
Guest User

mikrotik chap test2

a guest
Jul 28th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.00 KB | None | 0 0
  1.  
  2.  
  3.  
  4. <html>
  5.   <head>
  6.     <title>Login loginPage</title>
  7.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  8.     <meta http-equiv="pragma" content="no-cache" />
  9.     <meta http-equiv="expires" content="-1" />
  10.   </head>
  11.   <body>
  12.   <!-- <body onload="return doLogin()"> -->
  13.     <form name="sendin" action="$(link-login-only)" method="post">
  14.       <input type="hidden" name="username" value="admin" />
  15.       <input type="hidden" name="password" value="" />
  16.       <input type="hidden" name="dst" value="$(link-orig)" />
  17.       <input type="hidden" name="popup" value="false" />
  18.     </form>
  19.     <script type="text/javascript" src="/md5.js"></script>
  20.     <script type="text/javascript">
  21.       function doLogin() {
  22.         document.sendin.username.value = document.login.username.value;;
  23.         document.sendin.password.value = hexMD5('$(chap-id)' + document.login.password.value + '$(chap-challenge)');
  24.         document.sendin.submit();
  25.         return false;
  26.       }
  27.     </script>
  28.     <form name="login" action="$(link-login-only)" method="post"
  29.      $(if chap-id) onSubmit="return doLogin()" $(endif)>
  30.     </form>
  31.   </body>
  32. </html>
  33. <script type="text/javascript">
  34.   document.login.username.focus();
  35. </script>
  36.  
  37.  
  38.  
  39.  
  40. <html>
  41.   <head>
  42.     <title>Login redirectPage</title>
  43.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  44.     <meta http-equiv="pragma" content="no-cache" />
  45.     <meta http-equiv="expires" content="-1" />
  46.     <script type="text/javascript" src="/md5.js"></script>
  47.     <script type="text/javascript">
  48.       <!-- //&dst=$(link-status) -->
  49.       function redirectPage() { window.location="$(link-login-only)?username=admin&password=" + hexMD5('$(chap-id)$(chap-challenge)') + "&dst=$(link-orig)&popup=false"; } </script>
  50.   </head>
  51.   <body onLoad="setTimeout('redirectPage()', 3000)">
  52.     <h1>Please wait....this page will redirect to new page....</h1>
  53.     <script type="text/javascript"> document.login.username.focus(); </script>
  54.   </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement