Land #10770, show full path for webcam_stream file

4.x
Brent Cook 2018-10-09 05:32:32 -05:00 committed by Metasploit
parent 064683495e
commit 4097c620a1
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 3 additions and 2 deletions

View File

@ -248,11 +248,12 @@ Status : <span id="status"></span>
::File.open(player_path, 'wb') do |f|
f.write(html)
end
path = ::File.expand_path(player_path)
if view
print_status("Opening player at: #{player_path}")
print_status("Opening player at: #{path}")
Rex::Compat.open_file(player_path)
else
print_status("Please open the player manually with a browser: #{player_path}")
print_status("Please open the player manually with a browser: #{path}")
end
print_status("Streaming...")