Let store_loot indicate the service as well (requires service object)
git-svn-id: file:///home/svn/framework3/trunk@13695 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
7fb4a3c571
commit
0d6c889844
|
@ -147,7 +147,7 @@ module Auxiliary::Report
|
|||
# +filename+ and +info+ are only stored as metadata, and therefore both are
|
||||
# ignored if there is no database
|
||||
#
|
||||
def store_loot(ltype, ctype, host, data, filename=nil, info=nil)
|
||||
def store_loot(ltype, ctype, host, data, filename=nil, info=nil, service=nil)
|
||||
if ! ::File.directory?(Msf::Config.loot_directory)
|
||||
FileUtils.mkdir_p(Msf::Config.loot_directory)
|
||||
end
|
||||
|
@ -186,6 +186,7 @@ module Auxiliary::Report
|
|||
# metadata.
|
||||
conf = {}
|
||||
conf[:host] = host if host
|
||||
conf[:service] = service if service
|
||||
conf[:type] = ltype
|
||||
conf[:content_type] = ctype
|
||||
conf[:path] = full_path
|
||||
|
|
Loading…
Reference in New Issue