Restore file_create

file_create shouldn't have the 'filename' argument, because that
defeats the purpose of function 'file_format_filename'.  The code
change was committed by accident.  Related to #1934.
unstable
sinn3r 2013-06-13 16:42:18 -05:00
parent 0440c03c7a
commit e97aad1111
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ module Exploit::FILEFORMAT
datastore['FILENAME']
end
def file_create(data, filename = nil)
fname = filename || file_format_filename
def file_create(data)
fname = file_format_filename
ltype = "exploit.fileformat.#{self.shortname}"
full_path = store_local(ltype, nil, data, fname)
print_good "#{fname} stored at #{full_path}"