Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.64 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <head>
  3. <title>Log On</title>
  4. <link href='https://fonts.googleapis.com/css?family=Roboto Slab' rel='stylesheet'>
  5. <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
  6. <link href='https://fonts.googleapis.com/css?family=Open Sans' rel='stylesheet'>
  7. <script language="JavaScript">
  8.  
  9. if (window.focus) self.focus();
  10.  
  11. function openAnyWindow(url, name) {
  12. var l = openAnyWindow.arguments.length;
  13. var w = "";
  14. var h = "";
  15. var features = "";
  16. for (i=2; i<l; i++) {
  17. var param = openAnyWindow.arguments[i];
  18. if ( (parseInt(param) == 0) || (isNaN(parseInt(param))) ) {
  19. features += param + ',';
  20. } else {
  21. (w == "") ? w = "width=" + param + "," : h = "height=" + param;
  22. }
  23. }
  24. features += w + h;
  25. var code = "popupWin = window.open(url, name";
  26. if (l > 2) code += ", '" + features;
  27. code += "')";
  28. eval(code);
  29. }
  30.  
  31. /* 3/4/09 ylee: === EDM update start === */
  32. function edmGetCookieValue(cookieName) {
  33. var cookieValue = "";
  34.  
  35. if (document.cookie != "") {
  36. var cookieArray = document.cookie.split("; ");
  37.  
  38. for (var i = 0; i < cookieArray.length; i++)
  39. if (cookieArray[i].split("=")[0] == cookieName) {
  40. cookieValue = cookieArray[i].split("=")[1];
  41. break;
  42. }
  43. }
  44. return cookieValue;
  45. }
  46.  
  47. function encode() {
  48. var nonceCookie = edmGetCookieValue("auth");
  49.  
  50. document.submitForm.nonce.value = nonceCookie;
  51. document.submitForm.encoded.value = document.submitForm.username.value + ":" +
  52. (document.submitForm.username.value + ":" +
  53. //md5(document.submitForm.username.value + ":" +
  54. document.submitForm.password.value + ":" + nonceCookie);
  55.  
  56. document.submitForm.goto.disabled=true;
  57. document.submitForm.username.disabled=true;
  58. document.submitForm.password.disabled=true;
  59.  
  60. }
  61.  
  62. function encode_vrf() {
  63. var nonceCookie = edmGetCookieValue("auth");
  64. document.submitForm.nonce.value = nonceCookie;
  65. document.submitForm.encoded.value = document.submitForm.username.value + ":" +
  66. document.submitForm.password.value;
  67. document.submitForm.goto.disabled=true;
  68. document.submitForm.username.disabled=true;
  69. document.submitForm.password.disabled=true;
  70. }
  71.  
  72.  
  73.  
  74. /* === merged from logon.html of BayStack === */
  75.  
  76. function encode_ers2500() {
  77. var nonceCookie = edmGetCookieValue("auth");
  78.  
  79. // ERS2500 does not impose the minimum length of username and password
  80. /*
  81. if (!testForLength(document.submitForm.username.value,-1,15,-1)) {
  82. alert ("Maximum of 15 characters for Username!");
  83. return;
  84. }
  85. if (!testForLength(document.submitForm.password.value,-1,15,-1)) {
  86. alert ("Maximum of 15 characters for Password!");
  87. return;
  88. }
  89. */
  90. document.submitForm.nonce.value = nonceCookie;
  91. document.submitForm.encoded.value = getUsernameLength(document.submitForm.username.value) +
  92. document.submitForm.username.value + ":" +
  93. document.submitForm.password.value; // sets the hidden field value to whatever md5 returns.
  94. // document.forms["submitForm"].submit();
  95.  
  96. document.submitForm.goto.disabled=true;
  97. document.submitForm.username.disabled=true;
  98. document.submitForm.password.disabled=true;
  99. }
  100.  
  101. function testForLength (InString, Abs, LTE, GTE) {
  102. if (Abs != -1) {
  103. if(InString.length == Abs)
  104. return(true);
  105. } else if (LTE != -1) {
  106. if(InString.length <= LTE)
  107. return(true);
  108. } else if (GTE != -1) {
  109. if(InString.length >= GTE)
  110. return(true);
  111. }
  112. return (false);
  113. }
  114.  
  115. function getUsernameLength(username) {
  116. var userLength = "";
  117.  
  118. if ( username.length < 10 )
  119. userLength = "0" + username.length;
  120. else
  121. userLength = username.length;
  122. return userLength;
  123. }
  124.  
  125. function CheckForAuthenFailure()
  126. {
  127. if (0)
  128. alert ("Login Failed!");
  129. }
  130.  
  131. function checkUsernameLen()
  132. {
  133. if (!testForLength(document.submitForm.username.value,-1,15,-1))
  134. alert ("Maximum of 15 characters for Username!");
  135. }
  136.  
  137. function checkPasswordLen()
  138. {
  139. if (!testForLength(document.submitForm.password.value,-1,15,-1))
  140. alert ("Maximum of 15 characters for Password!");
  141. }
  142.  
  143. /* 3/4/09 ylee: === EDM update end === */
  144.  
  145.  
  146.  
  147. var browser;
  148. var version;
  149. var os;
  150.  
  151. var BrowserDetect = {
  152. init: function () {
  153. this.browser = this.searchBrowser(this.dataBrowser) || "An unknown browser";
  154. this.version = this.searchVersion(navigator.userAgent)
  155. || this.searchVersion(navigator.appVersion)
  156. || "an unknown version";
  157. this.OS = this.searchOS(this.dataOS) || "an unknown OS";
  158.  
  159. var supportedBrowser = false;
  160. if (this.browser == "Firefox" && this.version >= 3.0)
  161. supportedBrowser = true;
  162. else if ((/MSIE 10/i.test(navigator.userAgent)) || (/MSIE 9/i.test(navigator.userAgent)) || (/rv:11.0/i.test(navigator.userAgent))){
  163. supportedBrowser = true;
  164. }
  165. else if (/Edge\/\d./i.test(navigator.userAgent)){
  166. supportedBrowser = true;
  167. }
  168. if (!supportedBrowser) {
  169. alert("You are using an unsupported browser/version and may experience latency.\n" +
  170. "The supported browsers are IE 9.0 +, Edge 38+ and Firefox 3.0+");
  171. }
  172. },
  173. searchBrowser: function (data) {
  174. for (var i=0;i<data.length;i++) {
  175. var dataString = data[i].string;
  176. var dataProp = data[i].prop;
  177. this.versionSearchString = data[i].versionSearch || data[i].identity;
  178. if (dataString) {
  179. if (dataString.indexOf(data[i].subString) != -1) {
  180. browser=data[i].identity;
  181. // alert("Browser type: "+browser);
  182. return data[i].identity;
  183. }
  184. }
  185. else if (dataProp) {
  186. browser=data[i].identity;
  187. //alert("Browser type: "+browser);
  188. return data[i].identity;
  189. }
  190. }
  191. },
  192. searchOS: function (data) {
  193. for (var i=0;i<data.length;i++) {
  194. var dataString = data[i].string;
  195. var dataProp = data[i].prop;
  196. this.versionSearchString = data[i].versionSearch || data[i].identity;
  197. if (dataString) {
  198. if (dataString.indexOf(data[i].subString) != -1) {
  199. os=data[i].identity;
  200. //alert("Operating System: "+os);
  201. return data[i].identity;
  202. }
  203. }
  204. else if (dataProp) {
  205. identity=data[i].identity;
  206. //alert("Operating System: "+os);
  207. return data[i].identity;
  208. }
  209. }
  210. },
  211. searchVersion: function (dataString) {
  212. var index = dataString.indexOf(this.versionSearchString);
  213. if (index == -1) return;
  214. version=parseFloat(dataString.substring(index+this.versionSearchString.length+1));
  215. //alert("version: "+version);
  216. return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
  217. },
  218. dataBrowser: [
  219. { string: navigator.userAgent,
  220. subString: "OmniWeb",
  221. versionSearch: "OmniWeb/",
  222. identity: "OmniWeb"
  223. },
  224. {
  225. string: navigator.vendor,
  226. subString: "Apple",
  227. identity: "Safari"
  228. },
  229. {
  230. prop: window.opera,
  231. identity: "Opera"
  232. },
  233. {
  234. string: navigator.vendor,
  235. subString: "iCab",
  236. identity: "iCab"
  237. },
  238. {
  239. string: navigator.vendor,
  240. subString: "KDE",
  241. identity: "Konqueror"
  242. },
  243. {
  244. string: navigator.userAgent,
  245. subString: "Firefox",
  246. identity: "Firefox"
  247. },
  248. {
  249. string: navigator.vendor,
  250. subString: "Camino",
  251. identity: "Camino"
  252. },
  253. { // for newer Netscapes (6+)
  254. string: navigator.userAgent,
  255. subString: "Netscape",
  256. identity: "Netscape"
  257. },
  258. {
  259. string: navigator.userAgent,
  260. subString: "MSIE",
  261. identity: "Explorer",
  262. versionSearch: "MSIE"
  263. },
  264. {
  265. string: navigator.userAgent,
  266. subString: "Gecko",
  267. identity: "Mozilla",
  268. versionSearch: "rv"
  269. },
  270. { // for older Netscapes (4-)
  271. string: navigator.userAgent,
  272. subString: "Mozilla",
  273. identity: "Netscape",
  274. versionSearch: "Mozilla"
  275. }
  276. ],
  277. dataOS : [
  278. {
  279. string: navigator.platform,
  280. subString: "Win",
  281. identity: "Windows"
  282. },
  283. {
  284. string: navigator.platform,
  285. subString: "Mac",
  286. identity: "Mac"
  287. },
  288. {
  289. string: navigator.platform,
  290. subString: "Linux",
  291. identity: "Linux"
  292. }
  293. ]
  294.  
  295. };
  296.  
  297. BrowserDetect.init();
  298.  
  299. function copyrightMessage () {
  300. var d = new Date ();
  301. document.write ("Copyright &copy; 2010-" + d.getFullYear() + " Extreme Networks. All rights reserved.");
  302. }
  303. function getCustomBanner(){
  304. var xmlhttp;
  305. var bannerDefaultTxt="<b>WARNING:</b> This computer system and network is PRIVATE and PROPRIETARY and may only be accessed by authorized users.</br>Unauthorized use of this computer system or network is strictly prohibited and may be subject to criminal prosecution,</br>employee discipline up to and including discharge, or the termination of the vendor/service contracts.</br>The owner, or its agents, may monitor any activity or communication on the computer system or network.</br></br>";
  306. document.getElementById("bannerTxt").innerHTML =bannerDefaultTxt;
  307. if(window.XMLHttpRequest){
  308. xmlhttp = new XMLHttpRequest();
  309. }
  310. else{
  311. xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  312. }
  313.  
  314. xmlhttp.onreadystatechange = function(){
  315. if(xmlhttp.status == 200 && xmlhttp.readyState == 4 && xmlhttp.responseText!=""){
  316. bannerDefaultTxt = (xmlhttp.responseText).replace(/(?:\r\n|\r|\n)/g, '<br />');
  317. document.getElementById("bannerTxt").innerHTML = bannerDefaultTxt;
  318.  
  319. }
  320. };
  321. xmlhttp.open("GET","cli_custom_banner.txt");
  322. xmlhttp.send();
  323.  
  324. }
  325.  
  326. </script>
  327.  
  328. <style type="text/css">
  329. html, body {
  330. font-family: 'Roboto Slab', 'Roboto', 'Open Sans', Verdana;
  331. font-size: 14px;
  332. margin:0;
  333. padding:0;
  334. border:0 none;
  335. overflow:auto;
  336. height:100%;
  337. }
  338. </style>
  339.  
  340. </head>
  341.  
  342. <body>
  343.  
  344. <div style="position:relative;top:0px">
  345. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  346. <tr>
  347. <td valign="top" width="100%" colspan="2" style="background-color:#440099">
  348. <div style="position:relative;top:0px">
  349. <div style="position:absolute; left:10px; top: 95px; width:590px; min-width:590px;">
  350. <img src="images/EDM.png" alt="Enterprise Device Manager" width="590" height="35" />
  351. </div>
  352. <div style="position:absolute; right:269px;float:right">
  353. <img src="images/slash-WH.png" width="230" height="230" alt="" style="left:590px" />
  354. </div>
  355. <div style="position:absolute; right:10px; top:65px;float:right">
  356. <img src="images/ExtremeNetworks.png" alt="Extreme Networks" width="289" height="90" />
  357. </div>
  358. </div>
  359. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="230px">
  360. <tr>
  361. <td>&nbsp;</td>
  362. </tr>
  363. </table>
  364. </td>
  365. </tr>
  366. </table>
  367. </div>
  368.  
  369. <div style="position:relative;padding-top:30px;right:50px;float:right;">
  370. <table>
  371. <tr>
  372. <td valign="top" width="100%" align="left"></td>
  373. <td valign="top" width="100%">
  374. <table border="0" cellpadding="0" cellspacing="0" align="center" title="">
  375. <form method="POST" name="submitForm" onSubmit="encode_vrf()">
  376. <table>
  377. <tr>
  378. <td><font size="2"><b><nobr>User Name:</nobr></b></font></td>
  379. <td align="right"><input style="width: 12em;" type="text" name="username" size="20"></td>
  380. </tr>
  381. <tr>
  382. <td><font size="2"><b><nobr>Password:</nobr></b></font></td>
  383. <td align="right"><input style="width: 12em;" type="password" name="password" size="20"></td>
  384. </tr>
  385.  
  386. <tr>
  387. <input type="hidden" name="encoded">
  388. <input type="hidden" name="nonce">
  389. <td colspan="2" align="right">
  390. <input type="submit" name="goto" value="Log On">
  391. </td>
  392. <input type="hidden" name="URL" value="/">
  393. </tr>
  394. </table>
  395. </form>
  396. <script type='text/javascript'>
  397. document.submitForm.username.focus();
  398. </script>
  399. </table>
  400.  
  401. </td>
  402.  
  403. </tr>
  404. </table>
  405. </div>
  406.  
  407. <div style="padding-top:120px;"><pre>
  408. <div id="bannerTxt" style="margin-left:50px;font-size:13px">
  409. <script type='text/javascript'>
  410. getCustomBanner();
  411. </script>
  412. </div></pre>
  413. </div>
  414.  
  415. <div style="text-align:center; font-size:12px; padding-top:100px;">
  416. <script type='text/javascript'>
  417. copyrightMessage();
  418. </script>
  419. </div>
  420. </body>
  421. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement