Skip to content

Commit 509ae76

Browse files
David MaloneyDavid Maloney
authored andcommitted
make sure we grab the workspace for store_local
store_local calls report note from db.rb directly instead of going through the report method. this means we might miss the workspace causing a stack trace
1 parent 0634cb9 commit 509ae76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def store_local(ltype=nil, ctype=nil, data=nil, filename=nil)
271271
File.open(full_path, "wb") { |fd| fd.write(data) }
272272

273273
# This will probably evolve into a new database table
274-
framework.db.report_note(
274+
report_note(
275275
:data => full_path.dup,
276276
:type => "#{ltype}.localpath"
277277
)

0 commit comments

Comments
 (0)