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
parent
0440c03c7a
commit
e97aad1111
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue