Metadata-Version: 2.1
Name: pcapmq
Version: 0.1.1
Summary: Publish PCAP result to MQTT
Home-page: https://github.com/awarecan/pcapmq
Author: Jason Hu
Author-email: awaregit@gmail.com
License: BSD license
Keywords: pcapmq
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: Click (>=6.0)
Requires-Dist: hbmqtt (>=0.9.1)
Requires-Dist: pypcap (>=1.2.1)
Requires-Dist: dpkt (>=1.9.1)

================
Python PCAP2MQTT
================


.. image:: https://img.shields.io/pypi/v/pcapmq.svg
        :target: https://pypi.python.org/pypi/pcapmq

.. image:: https://img.shields.io/travis/rtfol/pcapmq.svg
        :target: https://travis-ci.org/rtfol/pcapmq

.. image:: https://readthedocs.org/projects/pcapmq/badge/?version=latest
        :target: https://pcapmq.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

.. image:: https://pyup.io/repos/github/rtfol/pcapmq/shield.svg
     :target: https://pyup.io/repos/github/rtfol/pcapmq/
     :alt: Updates



Publish PCAP result to MQTT


* Free software: BSD license
* Documentation: https://pcapmq.readthedocs.io.


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}"
```


=======
History
=======

0.1.0 (2018-05-04)
------------------

* First release on PyPI.


