Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.84 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.84 KB

Introduction

GitHub Workflow Status Crates.io docs.rs

scalpel is a crate for Packet Dissection and Sculpting in Rust.

Scalpel can be used for dissecting packets on the wire and or generating packets from some specifications that can be sent on wire (This functionality is not being implemented at present). Goal of 'scalpel' is to be able to be able to make packet dissection API friendly so that it's easier to use it in any application. See Examples in the examples/ directory to get an idea of what kind of 'applications' it can be used in.

This is still early, actively being developed, the APIs are not stable and are likely to change substantially.

Getting Started

Right now the supported API allows one to dissect packets on wire and display as Json (this uses serde_json and thus serde, so most serde format may work) -

  1. packet_json - An example that demonstrates how any buffer can be read as a scalpel::Packet structure.
  2. pcap - An example that demonstrates how to display packets in Json format those captured on the wire. (this should be run as sudo).

By default, python bindings are disabled. If you want python bindings, use --features="python-bindings" command line argument while building or running the code. Refer to using-python-bindings.md to get started with using Python bindings. Currently, only we provide a basic dissection and displaying a packet as json functionality from the Python bindings. This support is a WIP.