Skip to main content

Python pcap extension

Project description

This file is an extract from the the online documentation at https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy

What is Pcapy?

Pcapy is a Python extension module that enables software written in Python to access the routines from the pcap packet capture library.

From libpcap’s documentation: “Libpcap is a system-independent interface for user-level packet capture. Libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.”

What makes pcapy different from the others?

  • works with Python threads.

  • works both in UNIX with libpcap and Windows with WinPcap.

  • provides a simpler Object Oriented API.

Getting Pcapy

Current and past releases are available from https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy

Setup

Quick start

Grab the latest stable release, unpack it and run ‘python setup.py install’ from the directory where you placed it. Isn’t that easy?

Requirements

  • A Python interpreter. Versions 2.1.3 and newer are known to work.

  • A C++ compiler. GCC G++ 2.95, as well as Microsoft Visual Studio 6.0, are known to work.

  • Libpcap 0.7.2 or newer. Windows user are best to check WinPcap 3.0 or newer.

  • A recent release of Pcapy.

Compiling the source and installing

As this extension is written in C++ it needs to be compiled for the host system before it can be accessed from Python. Fortunately this process has been made easy by the setup.py script. In order to compile and install the source execute the following command from the directory where the pcapy’s distribution has been unpacked: ‘python setup.py install’. This will install the extension into the default Python’s modules path; note that you might need special permissions to write there. For more information on what commands and options are available from setup.py, run ‘python setup.py –help-commands’.

This extension has been tested under Linux and Windows systems and is known to work there, but it ought to work out-of-the-box on any system where Python and libpcap are available.

Licensing

This software is provided under under a slightly modified version of the Apache Software License. See the accompanying LICENSE file for more information.

Contact Us

Whether you want to report a bug, send a patch or give some suggestions on this package, drop us a few lines at oss@coresecurity.com.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.1 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (207.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.4 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.7 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (208.3 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

Details for the file pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dfd775494114cbc81e15adf549f14ec777010f1cb82c265f973f669af80e3ce7
MD5 6d8a91297f7676fc6697cbf09412d19f
BLAKE2b-256 4a2a12e7e34bce168db667874ab908b74dbff6abc2d29bcffb11280b695f8cca

See more details on using hashes here.

File details

Details for the file pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd0aca6e36f4d294e63d0cbbf281fe13fad09d4fae037fbea895b8a5d600a4f7
MD5 09ecb2ebe2bd69bd750c222451ee92a3
BLAKE2b-256 6e52c4df4993771960b38e5cb0b1f45e275865072666634333f85984be1cc038

See more details on using hashes here.

File details

Details for the file pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a20e8d0feae7360806e0784908b1fb3f86e368ec0ec7b2ea67206a5b248cf084
MD5 b4c3531a2fd3e06a9d58a08e31cbcd04
BLAKE2b-256 4d88f357927f2e55531eeda34de45a3e749e0be4b35ddf026c55134b46d4fb45

See more details on using hashes here.

File details

Details for the file pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 956145aabfd2a96aa45df769b95f0c07778af533946a93429256ef34e19360c4
MD5 5b2ac5f6f962102bf9ce2c23ae5e1f74
BLAKE2b-256 55262300a830df608976c590f8354dbff0f0a8b349b01e7e79dbc5fdc5560eee

See more details on using hashes here.

File details

Details for the file pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f4b4b15dd98f5ede8a62aeb25a23ce238866e3310e757afea1f4b6c6b5453bd
MD5 e0f91a82fe33a132579ca180a6cdf5ea
BLAKE2b-256 884a8ec0bd0d883eb740a0601068a6a9b1c2e233de4f0c69af37706a1595bf58

See more details on using hashes here.

File details

Details for the file pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70fedb0f37c0b1d7d87c653115ff9121200809642e16b8f6679f1994a435a9e0
MD5 126c6e78462c508c0bca94e4faf43623
BLAKE2b-256 0168a4dc8f59dc430799193a3101b52e14921dcccaf677931b34694870d31611

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