Skip to content

Instantly share code, notes, and snippets.

@picatz
Created November 6, 2017 01:02
Show Gist options
  • Save picatz/249b8728119c5ba19f335e2e2c30a99f to your computer and use it in GitHub Desktop.
Save picatz/249b8728119c5ba19f335e2e2c30a99f to your computer and use it in GitHub Desktop.
Packetz : Packets Capturing in Monitor Mode
require "packetz"
capture = Packetz.capture
capture.enable_monitor_mode! if capture.supports_monitor_mode?
capture.start!
capture.each do |packet|
puts packet.hexdump
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment