Giter VIP home page Giter VIP logo

remcap's Introduction

Remcap

Remotely capture network packets using a client-streaming gRPC API.

Table of Contents

Usage

Ways to Use

How it works

The server binary runs on your machine and is responsible for receiving packets and outputting pcaps.

The client binary runs on the remote target specifying :

  • which network interfaces to sniff
  • the amount of time to sniff
  • the address and port of the gRPC server to stream sniffed packets to
  • the path to the trust certificate

The server keeps track of which packets came from which client stream.

Server-side logging shows :

  • The connection status of any clients.
  • The number of packets received from any connections.

Client-side logging shows :

  • How much time has elapsed out of the total session time specified
  • The number of packets captured from all interfaces so far

All logs update in real-time.

When a client's session is over, the connection is closed and a session summary is printed to stdout.

On the server-side, the server writes all captured packets of a closed connection to disk in the form of a pcap and will be found in server/pcaps/ .

The pcap file can then be analyzed in wireshark or some other pcap analyzing tool.

Usage

Server

Usage:
remcap [flags]

Flags:
    --cert          string        Path to signed certificate
    --enable-tls    bool          Secure connection with SSL/TLS
-h, --help                        help for remcap
    --key           string        Path to server private key
-o, --out           string        Specify out file name
-p, --port          string        Port to start remcap server

Client

Usage:
remcap [flags] [command]

Available Commands:
bpf         Apply Berkely Packet Filters
help        Help about any command

Flags:
    --cert          string      Path to trust certificate
-d, --devices       strings     Network interfaces to sniff (comma-separated )
    --enable-tls    bool        Secure connection with SSL/TLS
-h, --help                      Help for remcap
    --host          string      <ip>:<port> of host to stream packets to
    --hours         int         Amount of hours to run capture
-m, --minutes       int         Amount of minutes to run capture
-s, --seconds       int         Amount of seconds to run capture

remcap's People

Contributors

fuskovic avatar

Stargazers

 avatar  avatar

Watchers

 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.