otupy.types.targets.mac_addr.MACAddr

class MACAddr(eui)

Bases: object

OpenC2 MACAddr

Implements the mac_addr` target (Section 3.4.1.14). Media Access Control / Extended Unique Identifier address - EUI- 48 or EUI-64. The text representation of a MAC Address in colon hexadecimal format.

Methods

get

Returns colon hexadeciaml format

set

Instantiates an EUI48/EUI64 address.

__init__(eui)

Raises an error if eui is not EUI48 or EUI64

get()

Returns colon hexadeciaml format

set(eui)

Instantiates an EUI48/EUI64 address.

Raises an error if eui is not EUI48 or EUI64. Takes as input a string, a binary, or an integer.