Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.17 KB

packetcapr

Build Status

Dependencies

  • Rust
  • Libpcap

Build

cargo build --release

Commandline options

    ./packetcapr [OPTIONS]

Captures packets and sends them, in batches, to a specified URL using HTTP

optional arguments:
  -h,--help             show this help message and exit
  -v,--verbose          Be verbose
  -s,--server-mode      Start in server mode (default: client mode)
  -u,--url URL          URL to send packets to (default:
                        http://localhost:1338/api)
  -b,--batchsize BATCHSIZE
                        Size of each batch (default: 10)
  -i,--hostidentifier HOSTIDENTIFIER
                        Identifier that will be added to each request (default:
                        default)
  -p,--port PORT        Port to listen on in server mode (default: 1338)
  -t,--timer TIMER      Interval (in seconds) at which packets will be
                        transmitted (if any packets are in the buffer)
  -b,--bpf BPF          Additional packet filter (BPF-format) to use while
                        capturing