Skip to main content

A python wrapper for the Kismet database

Project description

Kismet DB abstraction
=====================

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

Quickstart
----------

Install with `pip install .`

In the Python interpreter:

::

import json
import kismetdb
kismet_log_file = "kismet/database.here"
alerts = kismetdb.Alerts(kismet_log_file)

# Get alert metadata
all_alerts_meta = alerts.get_meta()
for alert in all_alerts_meta:
print(alert["header"])

# Get payload from all alerts
all_alerts = alerts.get_all()
for alert in all_alerts:
print(json.loads(alert["json"])["kismet.alert.text"])


Included scripts
----------------

Alongside the Python library, several commands are installed:

* ``kismet_log_devices_to_json``
* ``kismet_log_to_csv``
* ``kismet_log_to_kml``
* ``kismet_log_to_pcap``

Following any of the prior commands with ``--help`` will provide details on
usage


Testing
-------

In order to test, you must place a kismet sqlite log file at
``tests/assets/testdata.kismet``.

Testing happens in a Docker build process:

Testing for Python 2.7:

``docker build .``

Testing for Python 3.6:

``docker build --build-arg PY_VER=3.6 .``

Testing for Python 3.7:

``docker build --build-arg PY_VER=3.7 .``

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kismetdb-4.0.2.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file kismetdb-4.0.2.tar.gz.

File metadata

  • Download URL: kismetdb-4.0.2.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15

File hashes

Hashes for kismetdb-4.0.2.tar.gz
Algorithm Hash digest
SHA256 047ac3718d84d7087de689f9f0b6c94e67d1e1d4d34c9959e12674a4fc713b7b
MD5 98cffa829f07194a70f3c86ab6a51e98
BLAKE2b-256 02cfadbf8f8971add55deb936390b42537400747121d7b602c1abead41285e7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page