forked from chill1Penguin/er605v2_openwrt_install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pather605rootpw.html
44 lines (42 loc) · 2.08 KB
/
er605rootpw.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ER605 v2 Root Password Generator</title>
<style>
body {
font-family: sans-serif;
margin: 2em;
}
button, input[type=submit]
{
font-size: large;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.19.0/js/md5.min.js" integrity="sha512-8pbzenDolL1l5OPSsoURCx9TEdMFTaeFipASVrMYKhuYtly+k3tcsQYliOEKTmuB1t7yuzAiVo+yd7SJz+ijFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<h1>ER605 v2 Root Password Generator</h1>
<p><i>These passwords are generated locally in your browser to ensure the privacy and security of your passwords.</i></p>
<h4>Enter the MAC address found on the bottom of your ER605 using the format AA:BB:CC:DD:EE:FF or AA-BB-CC-DD-EE-FF.</h4>
<p><label for="inputMacAddress">MAC Address:</label> <input type="text" id="inputMacAddress" oninput="getPw()"></p>
<h4>Enter the username used to login to the web configuration GUI.</h4>
<p><label for="inputUsername">Username:</label> <input type="text" id="inputUsername" oninput="getPw()"></p>
<p><b>Root password:</b> <span id="result"></span></p>
<p style="margin-bottom: 3px;"><b>CLI debug mode password</b></p>
<p style="margin-top: 0px;">
v2.1.2 and below: <span id="resultCli212"></span><br>
v2.2.2 and above: <span id="resultCli222"></span>
</p>
<script type="text/javascript">
function getPw() {
var mac = document.getElementById("inputMacAddress").value.trim().replaceAll("-", ":").toUpperCase();
var username = document.getElementById("inputUsername").value.trim();
document.getElementById("result").textContent = md5(mac + username).substr(0, 16);
document.getElementById("resultCli212").textContent = md5(mac + "admin").substr(0, 16);
document.getElementById("resultCli222").textContent = md5(mac + "admin" + mac + "admin").substr(0, 16);
}
</script>
</body>
</html>