Sha256: ea4f9ce7bbf432e15c2193ea0e3fdd64e69dbc521609863c6035b9fae1a1ab6f
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- # # Add a file from memory and save it. # msfbase = __FILE__ while File.symlink?(msfbase) msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase)) end inc = File.dirname(msfbase) + '/../../..' $:.unshift(inc) require 'rex/zip' # example usage zip = Rex::Zip::Archive.new zip.add_file("elite.txt", "A" * 1024) zip.save_to("lolz.zip")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/zip/samples/mkzip.rb |
librex-0.0.66 | lib/rex/zip/samples/mkzip.rb |