Giter Site home page Giter Site logo

janbunes / pyccsniffer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewdodd/pyccsniffer

0.0 1.0 0.0 34 KB

Python 802.15.4 packet sniffer for the CC2531 EMK from Texas Instruments

License: GNU General Public License v3.0

Python 100.00%

pyccsniffer's Introduction

pyCCSniffer

Live Packet Sniffer for IEEE 802.15.4 networks.

A Python module that uses a Texas Instruments CC2531emk USB dongle to sniff packets, dissect them and print them to the console.

This tool is has its roots in threee existing GitHub projects, but is significantly more useful than any of them:

  • ccsniffpiper: A python tool by me, based on the two below, that pipes the captured frames to wireshark.
  • sensniff: A python tool by George Oikonomou to capture packets with the "sensniff" firmware for the TI CC2531 sniffer.
  • ccsniffer: A python module by Christian Panton to capture packets with the original TI firmware and print them to stdout.

This tool is similar to TI's Windows-only sniffer program but allows:

  • running in your favourite OS (it has been used in Windows, OS X and Linux)
  • quick and simple access to the payloads (i.e. this is super handy you are developing directly on the 802.15.4 MAC layer instead of using something like ZigBee, as you can parse/humanify your byte stream payloads!).

Requires: pyusb >= 1.0, which can be a bit of a pain to install especially in Windows.

pyCCSniffer can run in interactive or 'rude' mode. In interactive mode, the user can change the radio channel while running.

How to Use

Run pyCCSniffer

pyCCSniffer's main role it to read from the CC2531 USB packet sniffer, parse the frames and print them to the console.

To get this default behaviour, just run the command: python pyCCSniffer.py

To see further information, run the help command: python pyCCSniffer.py -h

Where to start hacking

This script should do most of the heavy lifting you need but at some point you will probably want to intepret the payload in a beacon or a data frame.

In the DissectorHandler's "handle()" method, there is a point marked "# hack here" that is probably the easiest place to start mucking with your own data.

pyccsniffer's People

Contributors

andrewdodd avatar jonathonreinhart avatar

Watchers

James Cloos 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.