Giter Site home page Giter Site logo

oui's Introduction

oui

CLI to look up MAC addresses for their vendor in the IEEE OUI database

Note: This module is CLI only since v13. The data has moved to module oui-data.

Usage

$ npm i -g oui
$ oui 20:37:06:12:34:56
Cisco Systems, Inc
80 West Tasman Drive
San Jose CA 94568
United States

© silverwind, distributed under BSD licence

oui's People

Contributors

github-actions[bot] avatar silverwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oui's Issues

Missing Package Updates

Hi,

This package used to get weekly updates with data, but these seem to have stopped, with the last being April 4th.

Is there an issue with the CI/CD pipeline maybe?

Reverse lookup

I think I'll implement this as a simple search for a provided string.

Problem with using mulitple JSON dbs

As demonstrated, this works well. However, I want to use different JSON files to find information based on the OUI portion of mac address. Specifically, I have 3 classes: Supported Manufacturers, Probably conformant manufacturers, and all other manufacturers. THe oui.json file fits the bill for the last category. However, I have created separate JSON files for my supported manufacturers (i.e. I've verified against)
containing their OUIs and another file that contains the OUIs of the manufacturers that purport to support the software I'm trying to use, but I've not personally tested against it.

Once a JSON db is loaded, then using the file option does not work. It re-uses the previous JSON file. I believe a change as follows will fix it:
const oui = module.exports = function oui(input, opts) {
if (typeof input !== "string") {
throw new Error("Input not a string");
}

opts = Object.assign({}, opts);

if (opts.file || !db) { // CHECK IF HE HAS SPECIFIED A NEW DB
db = require(opts.file || "./oui.json");
}

Sync API

The async callback with the result is unnecessary, and I plan to move the lookup api to purely sync functionality in 3.0. The update will of course stay async.

update() method too slow.

The update() method is really but really slow.
That oui.txt file is not even provided from a CDN... and seems to be "streamed".

Perhaps is better to use wireshark's one?
https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf

MAC Randomization

It is my understanding that if the first octet ends in 2, 6, a, or e, then the MAC address has been randomized. It is also my understanding that the entire MAC address is random, including the three OUI octets.

Is it possible to return some sort of indication that a MAC address is not being controlled by an OUI or manufacturer?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.