Skip to content

OpenSOC/pycapa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pycapa

Overview

Pycapa is an open source tool to handle packet capture ingestion for OpenSOC. It is intended as a testing and development tool. It is not performant enough for production operations. The tool will capture packets from a specified interface and push them into a Kafka Topic in a format understandable by OpenSOC's PcapParserBolt.

Requirements

Installation

First install the required packages with pip:

pip install -r requirements.txt

Then install pycapa:

python setup.py install

Usage

usage: pycapa.py [-h] [-t TOPIC] [-z ZOOKEEPER] [-l] [-d] -i INTERFACE

optional arguments:
  -h, --help            show this help message and exit
  -t TOPIC, --topic TOPIC
                        topic to produce to
  -z ZOOKEEPER, --zookeeper ZOOKEEPER
                        zookeeper server
  -l, --local           print packet instead of send to kafka
  -d, --debug           enable debug messages
  -i INTERFACE, --interface INTERFACE
                        interface to listen on

Kafka Message Format

Each kafka message corresponds to a single packet capture from the wire. A kafka message can be thought of as a single packet libpcap capture file. It contains the Global Header, the Packet Header, and the packet data.

About

Python Packet Capture

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages