-
Notifications
You must be signed in to change notification settings - Fork 33
/
Synology NAS Serial Number and MAC address Generator for Mobile Browser.htm
62 lines (58 loc) · 2.09 KB
/
Synology NAS Serial Number and MAC address Generator for Mobile Browser.htm
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>Synology NAS Serial Number and MAC address Generator</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.11.3.js'></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css">
<style>
textarea{
height: auto !important;
}
</style>
<script type='text/javascript'>//<![CDATA[
window.onload=function(){
$=function(id){
return document.getElementById(id.substr(1));
};
$("#generate").onclick=function () {
refsn = $("#sn").value;
model = refsn.substr(0, 7);
mac = parseInt($("#mac").value, 16);
sn = parseInt(refsn.substr(7, 3));
sndelta = parseInt($("#sndelta").value || Math.floor(Math.random() * 100 + 1));
newsn = model + (sn + sndelta);
$("#newsn").value=newsn;
macdelta = sndelta * 4;
mac += macdelta;
newmac = "";
for (i = 0; i < 4; i++)
newmac += (mac + i).toString(16).toUpperCase() + "\n";
$("#newmac").innerHTML=newmac;
};
$("#generate").click();
}
//]]>
</script>
</head>
<body>
<h1>Synology NAS Serial Number and MAC address Generator</h1>
<h2>For user who lose their serial number or MAC address of their Synology NAS. Not to be used on non-Synology NAS running <a href="http://xpenology.me">XPEnology</a>!</h2>
<p>Paste the generated serial number in syslinux.cfg, and change the MAC address of your network card (You need the tools from manufacturer to do this). New serial format (e.g. 1480MIN######) will not work</p>Reference SN:
<input id=sn value="B6JFN00845"></input>
<br>SN Delta:
<input id=sndelta value="" placeholder="blank=random"></input>
<br>MAC:
<input id=mac value="0011320C36ED"></input>
<br>
<input id=generate type=button value="Generate"></input>
<hr>Result:
<br>SN:
<input id=newsn value=""></input>
<br>MAC:
<textarea id=newmac rows=4></textarea>
<br>
<p>Ref: <a href="http://xpenology.me/how-to-generate-synology-mac-and-serial-valid-pair/">How to generate Synology MAC and serial valid pair</a>
</p>
</body>
</html>