Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 1.29 KB

README.rst

File metadata and controls

63 lines (39 loc) · 1.29 KB

Python PCAP2MQTT

Documentation Status Updates

Publish PCAP result to MQTT

Features

  • Sniffer network packet
  • Publish message to MQTT when found particular packet on network

Installation

``` sudo apt install libpython3-dev libpcap-dev

pip install pcapmq ```

Configuration

*(TODO)

Usage

  • Listening all UDP and ARP packet, display only, no MQTT

` sudo pcapmq --filter "udp or arp" `

  • Send message to broker under topic devices/1/online, when found specific device's MAC address

` sudo pcapmq --filter "ether src xx:xx:xx:xx:xx:xx" --topic devices/1/online --broker-url mqtt://username:password@localhost --payload-format "{0} - {1}" `