How to use the oui function in oui

To help you get started, we’ve selected a few oui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DeadPackets / HackPi / server / functions / fn.js View on Github external
interfaces.forEach((data, index) => {
				var mac = SYSINFO.interfaces[index].address
				var ifacename = SYSINFO.interfaces[index].interface
				IFCONFIG_IFACES.push(data.interface)
				if (mac !== undefined) {
					SYSINFO.interfaces[index].vendor = oui(mac).split(/\r?\n/)[0]
				}
				if (ifacename.indexOf('wlan') < 0) {} else if (ifacename.indexOf('mon') < 0) {
					CheckIfaceState(ifacename, function(status, data) {
						if (status == 'fail') {
							console.logo("Error!", data)
						} else {
							SYSINFO.interfaces[index].wirelessdata = data
						}
					})
				}

			})
		}

oui

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

BSD-2-Clause
Latest version published 1 month ago

Package Health Score

65 / 100
Full package analysis

Similar packages