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