Method: Rex::Zip::Jar#add_file

Defined in:
lib/rex/zip/jar.rb

#add_file(fname, fdata = nil, xtra = nil, comment = nil) ⇒ Object

Adds a file to the JAR, randomizing the file name and the contents.

See Also:



242
243
244
# File 'lib/rex/zip/jar.rb', line 242

def add_file(fname, fdata=nil, xtra=nil, comment=nil)
  super(randomize(fname), randomize(fdata), xtra, comment)
end