Skip to content

Commit e97aad1

Browse files
committed
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 rapid7#1934.
1 parent 0440c03 commit e97aad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/fileformat.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def file_format_filename
3030
datastore['FILENAME']
3131
end
3232

33-
def file_create(data, filename = nil)
34-
fname = filename || file_format_filename
33+
def file_create(data)
34+
fname = file_format_filename
3535
ltype = "exploit.fileformat.#{self.shortname}"
3636
full_path = store_local(ltype, nil, data, fname)
3737
print_good "#{fname} stored at #{full_path}"

0 commit comments

Comments
 (0)