use store_loot() instead of store_local()

unstable
sinn3r 2011-12-08 11:10:31 -06:00
parent c366e652b9
commit d6d9ac17d2
1 changed files with 8 additions and 2 deletions

View File

@ -61,9 +61,15 @@ class Metasploit3 < Msf::Auxiliary
# Show data if needed
if res and res.code == 200
vprint_line(res.to_s)
fname = Rex::Text.rand_text_alpha(5) + "_" + File.basename(datastore['FILEPATH'])
fname = File.basename(datastore['FILEPATH'])
path = store_local("yaws.file", "application/octet-stream", res.body, fname)
path = store_loot(
'yaws.http',
'application/octet-stream',
ip,
res.body,
fname
)
print_status("File saved in: #{path}")
else
print_error("Nothing was downloaded")