https://github.com/picatz/pcapz
⚡️Pure ruby network capture API
https://github.com/picatz/pcapz
bsd linux packet-capture ruby
Last synced: about 1 year ago
JSON representation
⚡️Pure ruby network capture API
- Host: GitHub
- URL: https://github.com/picatz/pcapz
- Owner: picatz
- License: mit
- Archived: true
- Created: 2018-04-04T03:09:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T20:06:52.000Z (over 5 years ago)
- Last Synced: 2025-04-14T13:41:50.813Z (about 1 year ago)
- Topics: bsd, linux, packet-capture, ruby
- Language: Ruby
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Pcapz
> Pure ruby network capture API
## Installation
$ gem install pcapz
## Usage
```ruby
require "pcapz"
# start packet capture
cap = Pcapz.capture.new
# CTRL+C Exit
trap "SIGINT" do
cap.stop!
end
cap.packets do |packet|
# do something with packet
puts packet.size
end
```
## Supported Platforms
Currently this has only been implemented/tested on macOS and Linux.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).