Sha256: fdaba1cea79f787b031f70395d364036e41614813fa050f6379541f8a5b77af8

Contents?: true

Size: 1.29 KB

Versions: 1

Compression:

Stored size: 1.29 KB

Contents

![Genie Lamp](https://i.imgur.com/jtBKrjU.png)

# Packet Genie

Packet Genie is a simple packet capturing solution that implements a streaming REST API to orchestrate packet captures in a magical way.

## Why?

Have you ever wanted to stream live packet captures on multiple hosts? Ever just wanted to do that over HTTP(s) with a REST API to make it easy to do? 

### 🚧  Development Notice

Currently, a pre-release gem is avaiable to install with the --pre flag to help with early testing.

## Installation

    $ gem install packet_genie --pre

## Usage

### Server

The Packet Genie server will stream packets on the host running the Packet Genie server. This allows you to perform a live, remote packet capture over HTTP(s).

```ruby
require 'packet_genie'

# Start server without SSL
PacketGenie.server.run!(ssl: false)
```

Then, easily start a packet capture with CURL ( for example ):

```shell
$ curl localhost:4567/packets
```

### Client

Don't want to mess around with CURL? Why not use the Packet Genie client?

```ruby
require 'packet_genie'

client = PacketGenie.client.new(uri: "http://localhost:4567")

client.packets do |packet|
  puts packet # do something with json
end
```

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
packet_genie-1.0.0.pre README.md