Commit 823fb665 authored by Mindiell's avatar Mindiell 🐍
Browse files

Mise en minuscules des préfixes afin d'obtenir une adresse MAC homogène

parent 800306c4
......@@ -34,13 +34,12 @@
iframe.contentWindow.document.close();
// Liste des préfixes attribués à Samsung, Apple, Huawei, Xiaomi, Oppo (OnePlus) et Qualcomm
let prefixes = ["00:18:82", "B8:C7:5D", "FC:A1:3E", "04:18:0F", "C8:7E:75", "14:F4:2A", "00:07:AB", "00:26:BB", "78:25:AD", "00:26:37", "28:31:52", "00:1C:43", "00:0A:95", "18:1E:B0", "8C:2D:AA", "18:46:17", "10:00:E0", "20:13:E0", "50:CC:F8", "00:1F:5B", "5C:59:48", "20:2B:C1", "00:24:E9", "00:22:DE", "78:9E:D0", "F0:DC:E2", "0C:DF:A4", "00:1E:E1", "38:EC:E4", "00:05:02", "00:23:3A", "D4:6E:5C", "00:0D:E5", "60:FB:42", "88:9B:39", "00:1B:63", "70:7B:E8", "1C:66:AA", "80:18:A7", "00:18:AF", "E4:7C:F9", "00:0F:73", "28:CF:DA", "34:C3:AC", "BC:20:A4", "50:B7:C3", "00:23:C2", "00:26:B0", "08:70:45", "78:A3:E4", "FC:25:3F", "D8:90:E8", "98:FE:94", "4C:B1:6C", "60:D0:A9", "00:23:32", "B0:65:BD", "00:1E:E2", "8C:58:77", "E0:F8:47", "00:25:38", "00:C6:10", "70:72:3C", "08:08:C2", "D4:E8:B2", "5C:4C:A9", "00:66:4B", "AC:E8:7B", "FC:48:EF", "68:5B:35", "84:85:06", "C0:65:99", "94:63:D1", "7C:11:BE", "7C:D1:C3", "C8:6F:1D", "F4:F9:51", "10:93:E9", "0C:96:BF", "50:32:75", "28:CF:E9", "70:DE:E2", "A0:07:98", "00:1F:CC", "30:F7:C5", "64:E6:82", "94:51:03", "C8:BC:C8", "CC:05:1B", "00:21:D1", "00:23:D6", "D4:87:D8", "00:22:A1", "AC:F7:F3", "40:CB:A8", "04:26:65", "3C:8B:FE", "E4:92:FB", "38:01:97", "0C:71:5D", "00:1F:F3", "00:17:F2", "FC:00:12", "B0:EC:71", "18:9E:FC", "00:1E:C2", "38:48:4C", "38:AA:3C", "00:3E:E1", "30:87:30", "E4:68:A3", "D8:49:0B", "BC:76:70", "00:00:F0", "BC:B1:F3", "00:0D:93", "D8:D1:CB", "00:F4:B9", "98:52:B1", "4C:8B:EF", "00:1B:98", "1C:AF:05", "3C:E0:72", "14:5A:05", "54:9B:12", "BC:79:AD", "F4:9F:54", "E0:24:7F", "98:03:D8", "04:E5:36", "3C:07:54", "7C:C3:A1", "78:1D:BA", "68:9C:70", "00:15:B9", "00:10:FA", "A4:EB:D3", "E8:8D:28", "08:63:61", "00:24:54", "3C:62:00", "4C:1F:CC", "18:3F:47", "5C:F6:DC", "A0:0B:BA", "10:77:B1", "C8:19:F7", "6C:3E:6D", "C8:E0:EB", "F0:6B:CA", "E8:E5:D6", "40:A6:D9", "28:6A:BA", "BC:47:60", "80:B6:86", "00:25:68", "18:E2:C2", "44:F4:59", "00:1E:52", "98:D6:BB", "74:E1:B6", "28:3C:E4", "7C:F0:5F", "D0:C1:B1", "00:E0:FC", "00:1D:4F", "C4:6A:B7", "F0:08:F1", "FC:C7:34", "2C:B4:3A", "8C:C8:CD", "F0:D1:A9", "00:22:41", "60:DE:44", "7C:C5:37", "F4:1B:A1", "F4:C7:14", "00:30:65", "94:94:26", "44:4C:0C", "D8:9E:3F", "D8:30:62", "EC:E0:9B", "C4:88:E5", "00:0F:E2", "7C:FA:DF", "70:A8:E3", "5C:0A:5B", "E8:04:0B", "00:17:D5", "00:1D:25", "54:26:96", "00:25:9E", "00:26:5F", "28:6A:B8", "E8:CD:2D", "6C:C2:6B", "9C:04:EB", "DC:2B:61", "A8:FA:D8", "30:90:AB", "B8:FF:61", "C0:63:94", "00:25:67", "F4:D9:FB", "0C:74:C2", "58:B0:35", "C4:62:EA", "78:47:1D", "F0:CB:A1", "24:AB:81", "44:4E:1A", "00:1E:7D", "84:25:DB", "78:1F:DB", "90:18:7C", "10:1D:C0", "00:1A:8A", "00:A0:40", "00:21:19", "00:16:6B", "BC:72:B1", "88:C6:63", "D0:23:DB", "F8:01:13", "FC:1F:19", "24:69:A5", "30:CD:A7", "90:27:E4", "00:23:6C", "C0:84:7A", "18:26:66", "D0:DF:C7", "B8:8D:12", "A0:75:91", "04:C0:6F", "8C:7B:9D", "F0:B4:79", "F8:3D:FF", "74:45:8A", "00:13:77", "8C:77:12", "00:23:12", "A0:ED:CD", "40:4D:8E", "70:11:24", "50:F5:20", "00:23:39", "60:C5:47", "20:7D:74", "84:0B:2D", "00:21:D2", "64:B3:10", "00:80:D3", "BC:52:B7", "68:09:27", "D8:31:CF", "00:50:E4", "D4:9A:20", "04:FE:31", "BC:92:6B", "B8:78:2E", "EC:85:2F", "10:40:F3", "60:FA:CD", "78:CA:39", "B0:AA:36", "AC:4E:91", "4C:54:99", "00:03:93", "84:29:99", "AC:E2:15", "F0:E7:7E", "10:C6:1F", "70:54:F5", "E4:E0:C5", "5C:95:AE", "64:16:F0", "00:23:99", "70:F9:27", "00:0D:AE", "C8:D1:5E", "20:64:32", "B8:5E:7B", "00:23:DF", "09:00:07", "00:25:00", "60:A1:0A", "00:21:E9", "74:E2:F5", "00:09:18", "00:17:80", "40:B3:95", "48:44:F7", "E4:8B:7F", "08:19:A6", "D0:2D:B3", "28:6E:D4", "F8:1E:DF", "E8:03:9A", "00:1C:B3", "6C:F3:73", "44:D8:84", "A4:B1:97", "10:1B:54", "00:15:99", "00:16:6C", "78:F7:BE", "08:7A:4C", "64:77:91", "C8:33:4B", "88:53:95", "6C:83:36", "7C:6D:62", "8C:FA:BA", "08:00:07", "84:A8:E4", "08:FC:88", "00:88:65", "58:55:CA", "D4:B1:10", "F0:72:8C", "EC:23:3D", "D0:66:7B", "98:B8:E3", "08:00:89", "04:0C:CE", "18:67:B0", "00:21:4C", "28:5F:DB", "00:16:CB", "00:25:BC", "78:F5:FD", "2C:44:01", "E8:06:88", "90:84:0D", "50:A4:C8", "34:6B:D3", "1C:5A:3E", "00:1F:CD", "40:6C:8F", "14:49:E0", "CC:96:A0", "18:34:51", "A8:88:08", "34:51:C9", "F0:5A:09", "00:16:DB", "78:AB:BB", "24:C6:96", "34:15:9E", "C4:2C:03", "CC:78:5F", "00:24:36", "9C:20:7B", "E0:C9:7A", "44:2A:60", "4C:BC:A5", "D0:17:6A", "00:46:4B", "54:92:BE", "28:E0:2C", "00:25:4B", "00:1D:F6", "00:0A:27", "9C:02:98", "E4:40:E2", "80:FB:06", "10:3B:59", "00:26:5D", "60:6B:BD", "C8:2A:14", "AC:3C:0B", "B4:07:F9", "34:C0:59", "F8:D0:BD", "5C:7D:5E", "40:30:04", "B0:D0:9C", "A4:99:47", "4C:B1:99", "A8:96:8A", "20:D5:BF", "04:15:52", "0C:77:1A", "00:25:66", "B4:62:93", "64:B9:E8", "A8:20:66", "A4:67:06", "DC:D2:FC", "00:16:32", "00:24:90", "40:0E:85", "4C:8D:79", "C0:9F:42", "28:37:37", "7C:60:97", "B0:C4:E7", "A8:F2:74", "18:20:32", "00:26:08", "54:A5:1B", "5C:E8:EB", "84:FC:FE", "38:16:D1", "E4:32:CB", "08:37:3D", "70:73:CB", "1C:62:B8", "44:FB:42", "B8:17:C2", "D8:00:4D", "88:32:9B", "5C:3C:27", "28:98:7B", "78:59:5E", "CC:08:E0", "80:49:71", "BC:85:1F", "24:DB:AC", "B8:D9:CE", "DC:71:44", "E8:11:32", "00:E0:64", "6C:B7:F4", "BC:67:78", "00:23:D7", "70:CD:60", "54:89:98", "A0:21:95", "20:C9:D0", "80:92:9F", "E0:F5:C6", "50:9F:27", "84:51:81", "58:1F:AA", "28:E7:CF", "A0:82:1F", "64:20:0C", "BC:3B:AF", "00:11:24", "84:38:35", "88:CB:87", "88:53:D4", "8C:0E:E3", "B4:F0:AB", "0C:37:DC", "78:6C:1C", "40:D3:2D", "1C:1D:67", "00:12:47", "50:01:BB", "00:00:18", "9C:E6:E7", "CC:FE:3C", "60:33:4B", "A4:D1:D2", "EC:35:86", "E4:B0:21", "08:D4:2B", "CC:F9:E8", "94:35:0A", "9C:3A:AF", "14:10:9F", "88:1F:A1", "CC:CC:81", "E4:CE:8F", "3C:D0:F8", "CC:3A:61", "78:52:1A", "04:F7:E4", "14:89:FD", "10:47:80", "04:1E:64", "B8:C6:8E", "04:1B:BA", "10:D5:42", "F4:7B:5E", "20:F3:A3", "10:9A:DD", "00:19:E3", "3C:5A:37", "1C:AB:A7", "98:0C:82", "8C:71:F8", "00:02:78", "68:EB:AE", "74:5F:00", "14:8F:C6", "E0:B9:BA", "04:54:53", "A8:06:00", "38:0A:94", "40:3C:FC", "60:FE:C5", "D8:A2:5E", "68:96:7B", "10:DD:B1", "70:56:81", "18:E7:F4", "00:1E:10", "D4:88:90", "58:C3:8B", "68:A8:6D", "94:D7:71", "B8:F6:B1", "34:CD:BE", "E4:25:E7", "78:D6:F0", "F4:55:9C", "34:23:BA", "00:14:51", "10:1C:0C", "5C:A3:9D", "CC:53:B5", "C4:73:1E", "48:60:BC", "64:A3:CB", "00:26:4A", "02:60:8C", "5C:96:9D", "38:0F:4A", "1C:E6:2B", "00:17:C9", "28:CC:01", "D8:57:EF", "0C:14:20", "00:12:FB", "50:EA:D6", "B4:15:13", "F4:F1:5A", "00:24:91", "00:a0:c6", "64:9c:81", "88:12:4e", "8c:fd:f0"];
let prefixes = ["00:18:82", "b8:c7:5d", "fc:a1:3e", "04:18:0f", "c8:7e:75", "14:f4:2a", "00:07:ab", "00:26:bb", "78:25:ad", "00:26:37", "28:31:52", "00:1c:43", "00:0a:95", "18:1e:b0", "8c:2d:aa", "18:46:17", "10:00:e0", "20:13:e0", "50:cc:f8", "00:1f:5b", "5c:59:48", "20:2b:c1", "00:24:e9", "00:22:de", "78:9e:d0", "f0:dc:e2", "0c:df:a4", "00:1e:e1", "38:ec:e4", "00:05:02", "00:23:3a", "d4:6e:5c", "00:0d:e5", "60:fb:42", "88:9b:39", "00:1b:63", "70:7b:e8", "1c:66:aa", "80:18:a7", "00:18:af", "e4:7c:f9", "00:0f:73", "28:cf:da", "34:c3:ac", "bc:20:a4", "50:b7:c3", "00:23:c2", "00:26:b0", "08:70:45", "78:a3:e4", "fc:25:3f", "d8:90:e8", "98:fe:94", "4c:b1:6c", "60:d0:a9", "00:23:32", "b0:65:bd", "00:1e:e2", "8c:58:77", "e0:f8:47", "00:25:38", "00:c6:10", "70:72:3c", "08:08:c2", "d4:e8:b2", "5c:4c:a9", "00:66:4b", "ac:e8:7b", "fc:48:ef", "68:5b:35", "84:85:06", "c0:65:99", "94:63:d1", "7c:11:be", "7c:d1:c3", "c8:6f:1d", "f4:f9:51", "10:93:e9", "0c:96:bf", "50:32:75", "28:cf:e9", "70:de:e2", "a0:07:98", "00:1f:cc", "30:f7:c5", "64:e6:82", "94:51:03", "c8:bc:c8", "cc:05:1b", "00:21:d1", "00:23:d6", "d4:87:d8", "00:22:a1", "ac:f7:f3", "40:cb:a8", "04:26:65", "3c:8b:fe", "e4:92:fb", "38:01:97", "0c:71:5d", "00:1f:f3", "00:17:f2", "fc:00:12", "b0:ec:71", "18:9e:fc", "00:1e:c2", "38:48:4c", "38:aa:3c", "00:3e:e1", "30:87:30", "e4:68:a3", "d8:49:0b", "bc:76:70", "00:00:f0", "bc:b1:f3", "00:0d:93", "d8:d1:cb", "00:f4:b9", "98:52:b1", "4c:8b:ef", "00:1b:98", "1c:af:05", "3c:e0:72", "14:5a:05", "54:9b:12", "bc:79:ad", "f4:9f:54", "e0:24:7f", "98:03:d8", "04:e5:36", "3c:07:54", "7c:c3:a1", "78:1d:ba", "68:9c:70", "00:15:b9", "00:10:fa", "a4:eb:d3", "e8:8d:28", "08:63:61", "00:24:54", "3c:62:00", "4c:1f:cc", "18:3f:47", "5c:f6:dc", "a0:0b:ba", "10:77:b1", "c8:19:f7", "6c:3e:6d", "c8:e0:eb", "f0:6b:ca", "e8:e5:d6", "40:a6:d9", "28:6a:ba", "bc:47:60", "80:b6:86", "00:25:68", "18:e2:c2", "44:f4:59", "00:1e:52", "98:d6:bb", "74:e1:b6", "28:3c:e4", "7c:f0:5f", "d0:c1:b1", "00:e0:fc", "00:1d:4f", "c4:6a:b7", "f0:08:f1", "fc:c7:34", "2c:b4:3a", "8c:c8:cd", "f0:d1:a9", "00:22:41", "60:de:44", "7c:c5:37", "f4:1b:a1", "f4:c7:14", "00:30:65", "94:94:26", "44:4c:0c", "d8:9e:3f", "d8:30:62", "ec:e0:9b", "c4:88:e5", "00:0f:e2", "7c:fa:df", "70:a8:e3", "5c:0a:5b", "e8:04:0b", "00:17:d5", "00:1d:25", "54:26:96", "00:25:9e", "00:26:5f", "28:6a:b8", "e8:cd:2d", "6c:c2:6b", "9c:04:eb", "dc:2b:61", "a8:fa:d8", "30:90:ab", "b8:ff:61", "c0:63:94", "00:25:67", "f4:d9:fb", "0c:74:c2", "58:b0:35", "c4:62:ea", "78:47:1d", "f0:cb:a1", "24:ab:81", "44:4e:1a", "00:1e:7d", "84:25:db", "78:1f:db", "90:18:7c", "10:1d:c0", "00:1a:8a", "00:a0:40", "00:21:19", "00:16:6b", "bc:72:b1", "88:c6:63", "d0:23:db", "f8:01:13", "fc:1f:19", "24:69:a5", "30:cd:a7", "90:27:e4", "00:23:6c", "c0:84:7a", "18:26:66", "d0:df:c7", "b8:8d:12", "a0:75:91", "04:c0:6f", "8c:7b:9d", "f0:b4:79", "f8:3d:ff", "74:45:8a", "00:13:77", "8c:77:12", "00:23:12", "a0:ed:cd", "40:4d:8e", "70:11:24", "50:f5:20", "00:23:39", "60:c5:47", "20:7d:74", "84:0b:2d", "00:21:d2", "64:b3:10", "00:80:d3", "bc:52:b7", "68:09:27", "d8:31:cf", "00:50:e4", "d4:9a:20", "04:fe:31", "bc:92:6b", "b8:78:2e", "ec:85:2f", "10:40:f3", "60:fa:cd", "78:ca:39", "b0:aa:36", "ac:4e:91", "4c:54:99", "00:03:93", "84:29:99", "ac:e2:15", "f0:e7:7e", "10:c6:1f", "70:54:f5", "e4:e0:c5", "5c:95:ae", "64:16:f0", "00:23:99", "70:f9:27", "00:0d:ae", "c8:d1:5e", "20:64:32", "b8:5e:7b", "00:23:df", "09:00:07", "00:25:00", "60:a1:0a", "00:21:e9", "74:e2:f5", "00:09:18", "00:17:80", "40:b3:95", "48:44:f7", "e4:8b:7f", "08:19:a6", "d0:2d:b3", "28:6e:d4", "f8:1e:df", "e8:03:9a", "00:1c:b3", "6c:f3:73", "44:d8:84", "a4:b1:97", "10:1b:54", "00:15:99", "00:16:6c", "78:f7:be", "08:7a:4c", "64:77:91", "c8:33:4b", "88:53:95", "6c:83:36", "7c:6d:62", "8c:fa:ba", "08:00:07", "84:a8:e4", "08:fc:88", "00:88:65", "58:55:ca", "d4:b1:10", "f0:72:8c", "ec:23:3d", "d0:66:7b", "98:b8:e3", "08:00:89", "04:0c:ce", "18:67:b0", "00:21:4c", "28:5f:db", "00:16:cb", "00:25:bc", "78:f5:fd", "2c:44:01", "e8:06:88", "90:84:0d", "50:a4:c8", "34:6b:d3", "1c:5a:3e", "00:1f:cd", "40:6c:8f", "14:49:e0", "cc:96:a0", "18:34:51", "a8:88:08", "34:51:c9", "f0:5a:09", "00:16:db", "78:ab:bb", "24:c6:96", "34:15:9e", "c4:2c:03", "cc:78:5f", "00:24:36", "9c:20:7b", "e0:c9:7a", "44:2a:60", "4c:bc:a5", "d0:17:6a", "00:46:4b", "54:92:be", "28:e0:2c", "00:25:4b", "00:1d:f6", "00:0a:27", "9c:02:98", "e4:40:e2", "80:fb:06", "10:3b:59", "00:26:5d", "60:6b:bd", "c8:2a:14", "ac:3c:0b", "b4:07:f9", "34:c0:59", "f8:d0:bd", "5c:7d:5e", "40:30:04", "b0:d0:9c", "a4:99:47", "4c:b1:99", "a8:96:8a", "20:d5:bf", "04:15:52", "0c:77:1a", "00:25:66", "b4:62:93", "64:b9:e8", "a8:20:66", "a4:67:06", "dc:d2:fc", "00:16:32", "00:24:90", "40:0e:85", "4c:8d:79", "c0:9f:42", "28:37:37", "7c:60:97", "b0:c4:e7", "a8:f2:74", "18:20:32", "00:26:08", "54:a5:1b", "5c:e8:eb", "84:fc:fe", "38:16:d1", "e4:32:cb", "08:37:3d", "70:73:cb", "1c:62:b8", "44:fb:42", "b8:17:c2", "d8:00:4d", "88:32:9b", "5c:3c:27", "28:98:7b", "78:59:5e", "cc:08:e0", "80:49:71", "bc:85:1f", "24:db:ac", "b8:d9:ce", "dc:71:44", "e8:11:32", "00:e0:64", "6c:b7:f4", "bc:67:78", "00:23:d7", "70:cd:60", "54:89:98", "a0:21:95", "20:c9:d0", "80:92:9f", "e0:f5:c6", "50:9f:27", "84:51:81", "58:1f:aa", "28:e7:cf", "a0:82:1f", "64:20:0c", "bc:3b:af", "00:11:24", "84:38:35", "88:cb:87", "88:53:d4", "8c:0e:e3", "b4:f0:ab", "0c:37:dc", "78:6c:1c", "40:d3:2d", "1c:1d:67", "00:12:47", "50:01:bb", "00:00:18", "9c:e6:e7", "cc:fe:3c", "60:33:4b", "a4:d1:d2", "ec:35:86", "e4:b0:21", "08:d4:2b", "cc:f9:e8", "94:35:0a", "9c:3a:af", "14:10:9f", "88:1f:a1", "cc:cc:81", "e4:ce:8f", "3c:d0:f8", "cc:3a:61", "78:52:1a", "04:f7:e4", "14:89:fd", "10:47:80", "04:1e:64", "b8:c6:8e", "04:1b:ba", "10:d5:42", "f4:7b:5e", "20:f3:a3", "10:9a:dd", "00:19:e3", "3c:5a:37", "1c:ab:a7", "98:0c:82", "8c:71:f8", "00:02:78", "68:eb:ae", "74:5f:00", "14:8f:c6", "e0:b9:ba", "04:54:53", "a8:06:00", "38:0a:94", "40:3c:fc", "60:fe:c5", "d8:a2:5e", "68:96:7b", "10:dd:b1", "70:56:81", "18:e7:f4", "00:1e:10", "d4:88:90", "58:c3:8b", "68:a8:6d", "94:d7:71", "b8:f6:b1", "34:cd:be", "e4:25:e7", "78:d6:f0", "f4:55:9c", "34:23:ba", "00:14:51", "10:1c:0c", "5c:a3:9d", "cc:53:b5", "c4:73:1e", "48:60:bc", "64:a3:cb", "00:26:4a", "02:60:8c", "5c:96:9d", "38:0f:4a", "1c:e6:2b", "00:17:c9", "28:cc:01", "d8:57:ef", "0c:14:20", "00:12:fb", "50:ea:d6", "b4:15:13", "f4:f1:5a", "00:24:91", "00:a0:c6", "64:9c:81", "88:12:4e", "8c:fd:f0"];
// On prend un préfixe au hasard
mac_address = prefixes[Math.floor(Math.random()*prefixes.length)] + ':'
//On génère le reste de l'adresse au hasard
// On génère le reste de l'adresse au hasard
for (let i=0;i<3;i++) {
// On prend un nomre entre 0 et 255
segment = Math.floor(Math.random()*60).toString(16);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment