Sha256: 179c5dd35be02a9f88bfb3ece2c439b9dd13b74c13cf98e6f512eba63d1c61dc

Contents?: true

Size: 509 Bytes

Versions: 43

Compression:

Stored size: 509 Bytes

Contents

#!/usr/bin/env ruby

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

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/ole/samples/create_ole.rb
librex-0.0.63 lib/rex/ole/samples/create_ole.rb
librex-0.0.54 lib/rex/ole/samples/create_ole.rb
librex-0.0.53 lib/rex/ole/samples/create_ole.rb
librex-0.0.52 lib/rex/ole/samples/create_ole.rb
librex-0.0.51 lib/rex/ole/samples/create_ole.rb
librex-0.0.50 lib/rex/ole/samples/create_ole.rb
librex-0.0.49 lib/rex/ole/samples/create_ole.rb
librex-0.0.48 lib/rex/ole/samples/create_ole.rb
librex-0.0.47 lib/rex/ole/samples/create_ole.rb
librex-0.0.46 lib/rex/ole/samples/create_ole.rb
librex-0.0.44 lib/rex/ole/samples/create_ole.rb
librex-0.0.43 lib/rex/ole/samples/create_ole.rb
librex-0.0.42 lib/rex/ole/samples/create_ole.rb
librex-0.0.41 lib/rex/ole/samples/create_ole.rb
librex-0.0.40 lib/rex/ole/samples/create_ole.rb
librex-0.0.39 lib/rex/ole/samples/create_ole.rb
librex-0.0.38 lib/rex/ole/samples/create_ole.rb
librex-0.0.37 lib/rex/ole/samples/create_ole.rb
librex-0.0.36 lib/rex/ole/samples/create_ole.rb