J
jm
Module: vflow
Version: 0.1b
Description
Vflow is a ruby module similar to perl's Cflow and python's pyflowtool.
It provides an interface to the flow-tools library to process flow
files captured by flow-tools flow-capture program.
For example, you can print the source and destination of each flow
thusly,
require 'Vflow'
vf = Vflow.new()
vf.open('aflowfile')
vf.each() { |r|
# print time srcaddr:dstport -> dstaddr:dstport
print "#{Time.at(r.unix_secs)} "
print "#{IPSocket.getaddress(r.srcaddr)}:#{r.srcport} -> "
puts "#{IPSocket.getaddress(r.dstaddr)}:#{r.dstport}"
}
vf.close()
It can be downloaded from http://ghostgun.com/software/vflow/
comments welcome.
Jeff.
Version: 0.1b
Description
Vflow is a ruby module similar to perl's Cflow and python's pyflowtool.
It provides an interface to the flow-tools library to process flow
files captured by flow-tools flow-capture program.
For example, you can print the source and destination of each flow
thusly,
require 'Vflow'
vf = Vflow.new()
vf.open('aflowfile')
vf.each() { |r|
# print time srcaddr:dstport -> dstaddr:dstport
print "#{Time.at(r.unix_secs)} "
print "#{IPSocket.getaddress(r.srcaddr)}:#{r.srcport} -> "
puts "#{IPSocket.getaddress(r.dstaddr)}:#{r.dstport}"
}
vf.close()
It can be downloaded from http://ghostgun.com/software/vflow/
comments welcome.
Jeff.