export1.rb
# ---------------------------------------------------------------
# export1.rb	-  Export an Unsniff capture file to a libpcap file
#
#	usage : export1 <unsniff file>  <libpcap file>
#----------------------------------------------------------------
require 'win32ole'
 
USAGE = "export1 <unsniff-file> <to-libpcap-file>"
 
if ARGV.length != 2
	puts USAGE
	exit 1
end
 
FromFile = ARGV[0]
ToFile   = ARGV[1]
UnsniffDB = WIN32OLE.new("Unsniff.Database")
UnsniffDB.Open(FromFile)
UnsniffDB.Export("libpcap",ToFile)
UnsniffDB.Close
 
print "Exported libpcap/tcpdump Filename is  #{ToFile}"
unsniff/samples/export1/ruby.txt · Last modified: 2014/09/11 23:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki