Skip to content

Commit 221eb88

Browse files
author
HD Moore
committed
Make filename easy to override
1 parent f5a0f74 commit 221eb88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/msf/core/exploit/fileformat.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ def initialize(info = {})
2626
)
2727
end
2828

29+
def file_format_filename
30+
datastore['FILENAME']
31+
end
32+
2933
def file_create(data)
30-
fname = datastore['FILENAME']
34+
fname = file_format_filename
3135
ltype = "exploit.fileformat.#{self.shortname}"
3236
full_path = store_local(ltype, nil, data, fname)
3337
print_good "#{fname} stored at #{full_path}"

0 commit comments

Comments
 (0)