plausible

package module
v0.0.0-...-3808a72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

README

plausible

Build Status Go Report Card

The plausible program uses the database of MAC vendor prefixes from the Wireshark manuf file to generate MAC addresses with the first three octets corresponding to a desired vendor, and the second three octets generated at random.

plausible assumes that Wireshark is installed via package management on a Debian system. If you aren't on a Debian system, you can download the manuf DB with:

make manuf

You can choose the location of your manuf file with the -d flag. The -l flag lists all available manufacturer codes. The -m flag selects a manufacturer to use for generating a MAC address.

Documentation

Overview

Package plausible formulates a random MAC address with a plausible OUI using the Wireshark manuf database.

Index

Constants

View Source
const ManufPath = "manuf"

Variables

View Source
var NoSuchCompanyError = errors.New("No such company.")
View Source
var UnparseableLineError = errors.New("Unparseable vendor line.")

Functions

This section is empty.

Types

type Manuf

type Manuf map[string][]prefix

func NewManuf

func NewManuf(path string) (Manuf, error)

NewManuf instantiates a variable of type Manuf, and populates it with data from the Wireshark manuf database file.

func (Manuf) CompanyList

func (m Manuf) CompanyList() []string

CompanyList returns a list of every company key in the vendor map.

func (Manuf) RandomMAC

func (m Manuf) RandomMAC(company string) (string, error)

RandomMAC provides a randomly-generated MAC address from a randomly chosen portion of a company's assigned MAC address space.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL