Giter VIP home page Giter VIP logo

npcap-rs's Introduction

npcap-rs

Rust binding for npcap library.

Prerequisite

  • Install Npcap from here
  • Download Npcap SDK and extract the SDK in the source tree under third-party folder
  • Set the NPCAP_RS_LIB_DIR to the directory where library is installed.

Usage

You can enable these optional features for additional functionality.

  • http-parse - Parses HTTP headers
  • dns-parse - Parses DNS packets

To use the safe Rust bindings, Add the following to your Cargo.toml

[dependencies]
npcap-rs = { version = "0.1", features = [] }

Examples

cargo run --example list

npcap-rs's People

Contributors

dilawar avatar radiohertz avatar

Stargazers

 avatar  avatar  avatar

npcap-rs's Issues

How do I use it?

The README.md is empty!

  • I installed Npcap.
  • I build the binary and run the example but I don't see any output.
warning: `packet-sniffer` (lib) generated 7 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 0.67s
     Running `D:/tools/msys64/home/DELL/.cache/cargobuild\debug\packet-sniffer.exe`
packet sniffer version: Npcap version 1.70, based on libpcap version 1.10.2-PRE-GIT

Make sure safe Rust interface is sound

The safe Rust interface currently has a lot of unsafe thanks to the calls to npcap. Make sure the FFI itself is sound and our safe API is also sound.

Installation instructions are not clear

The readme suggests downloading the SDK and installing it. I see the crate links with wpcap static library. I guess there are two installations:

  1. SDK installations https://npcap.com/dist/npcap-sdk-1.13.zip
  2. the installation of driver https://npcap.com/dist/npcap-1.71.exe

To use the final product, I need to install both?

Also is it necessary to ask user to install SDK? Can that we automate it using dodo.py?

Also If SDK is installed in a default location then can be just there (after honoring NPCAP_RS_LIB_DIR) first before panicking?

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.