GithubHelp home page GithubHelp logo

xjzsq / pcapy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from helpsystems/pcapy

0.0 0.0 0.0 111 KB

Pcapy is a Python extension module that interfaces with the libpcap packet capture library.

License: Other

C++ 40.41% Python 5.73% C 1.81% PowerShell 0.81% HTML 48.61% Batchfile 2.62%

pcapy's Introduction

What is Pcapy?

Build status

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://github.com/CoreSecurity/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.

For windows please refer to this [link] (https://github.com/CoreSecurity/pcapy/wiki/Compiling-Pcapy-on-Windows).

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 [email protected].

pcapy's People

Contributors

martinuy avatar asolino avatar core-ablanco avatar takluyver avatar duggan avatar segevfiner avatar gpotter2 avatar palaviv avatar yasumoto avatar jinblack avatar bobbyatcore avatar 6e726d avatar dajose avatar noxet avatar martingalloar avatar neheb avatar forsiteso avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.