Sha256: e381956836728613a4536a0fe3d8f315e9efe30354f02ab002a3512ca9d1f656
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
#!/usr/bin/env ruby # extracts UDP/TCP data payload from packets to an array encapsulated in yaml # Usage: cap2yaml pcap-file [filter]] require 'rbkb/plug/feed_import' begin unless file = ARGV.shift raise "Usage: #{File.basename $0} pcap-file [filter]" end filter = ARGV.join(" ") caps = FeedImport.import_pcap(file, filter) puts caps.to_yaml rescue STDERR.puts $! exit 1 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rbkb-0.7.2 | experimental/cap2yaml |
rbkb-0.7.1 | experimental/cap2yaml |
rbkb-0.7.0 | experimental/cap2yaml |