How to lookup MAC-address to find device manufacturer in Kali Linux

A media access control address (MAC address) of a computer is a unique identifier assigned to network interfaces for communications at the data link layer of a network segment. MAC addresses are used as a network address for most IEEE 802 network technologies, including Ethernet and Wi-Fi.

MAC addresses are most often assigned by the manufacturer of a network interface controller (NIC) and are stored in its hardware, such as the card's read-only memory or some other firmware mechanism. If assigned by the manufacturer, a MAC address usually encodes the manufacturer's registered identification number and may be referred to as the burned-in address (BIA). It may also be known as an Ethernet hardware address (EHA), hardware address or physical address (not to be confused with a memory physical address). This can be contrasted to a programmed address, where the host device issues commands to the NIC to use an arbitrary address (https://en.wikipedia.org/wiki/MAC_address).

If MAC-address is known, you are able to lookup it that allows you to easily find the company details (company name, address, and country) according to the MAC address of a product.

A database with Organizationally Unique Identifier (OUI) is usually already present on Linux systems, because various programs use it. You can search this file:

locate oui.txt

Also you can download this database

wget http://standards-oui.ieee.org/oui/oui.txt

The database is a plain text file, which you can search in various ways that are convenient for you.

I wrote a small script that can also help you. Create an oui.sh file and copy into it:

#!/bin/bash
  
MAC="$(echo $1 | sed 's/ //g' | sed 's/-//g' | sed 's/://g' | cut -c1-6)";
 
result="$(grep -i -A 4 ^$MAC ./oui.txt)";
 
if [ "$result" ]; then
    echo "For the MAC $1 the following information is found:"
    echo "$result"
else
    echo "MAC $1 is not found in the database."
fi

Usage:

bash oui.sh MAC

Where, instead of MAC, insert the MAC-address of interest to you (in whole or in part):

bash oui.sh 50:46:5D:6E:8C:20

Lookup MAC-address to find device manufacturer online

If you know the MAC address and you want to know the manufacturer of this device, you can use the free online service to query the database: https://suip.biz/?act=mac

Recommended for you:

Leave a Reply

Your email address will not be published.