macof(8)

macof8

Flood a switched lan with random mac addresses

Usage

macof [-i interface] [-s src] [-d dst] [-e tha] [-x sport] [-y dport] [-n times]

Overview

macof floods the local network with random MAC addresses (causing some switches to fail open in repeating mode, facilitating sniffing). A straight C port of the original Perl Net::RawIP macof program by Ian Vitek <[email protected]>.

Options

-i interface

Specify the interface to send on.

-s src

Specify source IP address.

-d dst

Specify destination IP address.

-e tha

Specify target hardware address.

-x sport

Specify TCP source port.

-y dport

Specify TCP destination port.

-n times

Specify the number of packets to send.

Values for any options left unspecified will be generated randomly.

Releases

Unchanged in 12 releases since Debian 3.1 (Sarge).

  1. 3.1–Arch

Author

Dug Song <[email protected]>

From dsniff 2.4b1-34 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.