Sha256: bfcff0bc59d855e1a9b1b6ed27eec6996fd3582fe792ef2bc70f9aa292c0ce81
Contents?: true
Size: 524 Bytes
Versions: 25
Compression:
Stored size: 524 Bytes
Contents
# -*- 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
25 entries across 25 versions & 4 rubygems