Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'packetgen'
- packets = PacketGen.capture(iface: 'axp', filter: 'icmp', max: 2)
- p packets
Advertisement