Skip to main content

A stream PCAP file extractor.

Project description

.. _header-n0:

jspcap
======

The ``jspcap`` project is an open source Python program focus on
`PCAP <https://en.wikipedia.org/wiki/Pcap>`__ parsing and analysis,
which works as a stream pcap file extractor. With support of
```jsformat`` <https://github.com/JarryShaw/jsformat>`__, it shall
support multiple output report formats.

Note that the whole project only supports **Python 3.6** or later.

- `About <#header-n34>`__

- Extraction

- Reassembly

- Protocols

- Utilities

- Exceptions

- `Installation <#header-n64>`__

- `Usage <#header-n71>`__

--------------

.. _header-n34:

About
-----

``jspcap`` is an independent open source library, using only
```jsformat`` <https://github.com/JarryShaw/jsformat>`__ as its
formatted output dumper.

There is a project called
```jspcapy`` <https://github.com/JarryShaw/jspcapy>`__ works on
``jspcap``, which is a command line tool for PCAP extraction.

Unlike popular PCAP file extractors, such as ``Scapy``, ``dkpt``,
``pyshark``, and etc, ``jspcap`` uses **streaming** strategy to read
input files. That is to read frame by frame, decrease occupation on
memory, as well as enhance efficiency in some way.

In ``jspcap``, all files can be described as following five parts.

- Extraction (``jspcap.extractor``) -- synthesise file I/O and protocol
analysis, coordinate information exchange in all network layers

- Reassembly (``jspcap.reassembly``) -- base on algorithms described in
```RFC 815`` <https://tools.ietf.org/html/rfc815>`__, implement
datagram reassembly of IP and TCP packets

- Protocls (``jspcap.protocols``) -- collection of all protocol family,
with detailed implementation and methods

- Utilities (``jspcap.utilities``) -- collection of four utility
functions and classes

- Exceptions (``jspcap.exceptions``) -- collection of refined custom
exceptions

.. figure:: ./doc/jspcap.png
:alt:

.. _header-n64:

Installation
------------

Note that ``jspcap`` only supports Python verions **since 3.6**

.. code::

pip install jspcap

.. _header-n71:

Usage
-----

You may find usage sample in the
```test`` <https://github.com/JarryShaw/jspcap/tree/master/test>`__
folder. For further information, please refer to the source code -- the
docstrings should help you :)

**ps**: ``help`` function in Python should always help you out.

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

jspcap-0.3.1.tar.gz (643.5 kB view details)

Uploaded Source

File details

Details for the file jspcap-0.3.1.tar.gz.

File metadata

  • Download URL: jspcap-0.3.1.tar.gz
  • Upload date:
  • Size: 643.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jspcap-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f0bf1119b1bf680a2515b96b25c17d52e2ecfda2e3ffcf2e8e8a17124df5c88b
MD5 94b202fcf7f4290b74ffb1feb04dc752
BLAKE2b-256 fa45e7c6b413a862ce99d9f2eef5c74c28169bb5c89f097ae68dc6c040559390

See more details on using hashes here.

Supported by

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