Advertisement
John4711

mac vendor list (oui.txt)

May 25th, 2024 (edited)
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://standards-oui.ieee.org/
  2. var a=[];
  3. for (var x of document.body.innerText.matchAll(/^(?<mac>[A-Z0-9]{6}).*\(base 16\)\W+(?<vendor>[\S ]+)$/gim)) {
  4.    a.push(x.groups)
  5. };
  6.  
  7. a=a.sort((a,b)=>a.mac.localeCompare(b.mac));
  8. document.body.innerHTML=`<pre>${a.map(v=>v.mac+"\t"+v.vendor).join("\n")}</pre>`;
Tags: oui mac vendor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement