Skip to content

fmurodov/maclookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maclookup

A command-line tool for looking up MAC address vendors using the IEEE OUI database.

golangci-lint Go Report Card codecov

Features

  • Fast MAC address vendor lookup
  • Automatic OUI database download and caching
  • Support for various MAC address formats
  • Simple and intuitive command-line interface

Installation

go install github.com/fmurodov/maclookup@latest

Usage

maclookup MAC_ADDRESS

Examples

# Using colon separator
$ maclookup 74:4d:28:ab:ba:ab
74:4d:28:ab:ba:ab Routerboard.com

# Using hyphen separator
$ maclookup 74-4d-28-ab-ba-ab
74-4d-28-ab-ba-ab Routerboard.com

# Using dot separator
$ maclookup 74.4d.28.ab.ba.ab
74.4d.28.ab.ba.ab Routerboard.com

How it Works

  1. The tool first checks if the OUI database is cached locally
  2. If not found, it downloads the latest OUI database from IEEE
  3. The MAC address is normalized and the vendor is looked up
  4. The result is displayed in a simple format

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

MAC vendor lookup cli tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages