Skip to content

Commit

Permalink
Make filename easy to override
Browse files Browse the repository at this point in the history
  • Loading branch information
HD Moore committed Sep 10, 2012
1 parent f5a0f74 commit 221eb88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/msf/core/exploit/fileformat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ def initialize(info = {})
)
end

def file_format_filename
datastore['FILENAME']
end

def file_create(data)
fname = datastore['FILENAME']
fname = file_format_filename
ltype = "exploit.fileformat.#{self.shortname}"
full_path = store_local(ltype, nil, data, fname)
print_good "#{fname} stored at #{full_path}"
Expand Down

0 comments on commit 221eb88

Please sign in to comment.