Sha256: f5532100f563c22fbf57259ce32f09f37d25cd07974d72aeaed0f5730e2cc950
Contents?: true
Size: 375 Bytes
Versions: 43
Compression:
Stored size: 375 Bytes
Contents
#!/usr/bin/env ruby # # 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
43 entries across 43 versions & 1 rubygems