Sha256: fd63e147ac1bfda712ebf0c0135824e98cb8db4faa75d409aa52d0b20dd93bc4

Contents?: true

Size: 534 Bytes

Versions: 2

Compression:

Stored size: 534 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: binary -*-

msfbase = __FILE__
while File.symlink?(msfbase)
	msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
end
path = File.expand_path(File.dirname(msfbase))
path += "/../../../"
$:.unshift(path)


require 'rex/ole'

if (ARGV.length < 1)
	$stderr.puts "usage: make_ole <file>"
	exit(1)
end

document = ARGV.shift

if (stg = Rex::OLE::Storage.new(document, Rex::OLE::STGM_WRITE))
	if (stm = stg.create_stream("testing"))
		stm << "A" * 1024
		stm.close
	end
	stg.close
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/ole/samples/create_ole.rb
librex-0.0.66 lib/rex/ole/samples/create_ole.rb