From d2cccae2a1214d05fc7c4c2425feb28a5fbb6138 Mon Sep 17 00:00:00 2001 From: dmohanty-r7 Date: Mon, 5 Jun 2017 01:57:19 -0500 Subject: [PATCH] Use webrtc browser --- .../meterpreter/ui/console/command_dispatcher/stdapi/mic.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb index 69d5042e84..cfbd4f142a 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb @@ -118,8 +118,8 @@ module Rex client.mic.mic_stop(index) end - def cmd_listen(stream_path, player_path="/Applications/VLC.app/Contents/MacOS/VLC") - system("#{player_path} #{stream_path} &") + def cmd_listen(stream_path) + Rex::Compat.open_webrtc_browser("file://#{::File.absolute_path(stream_path)}") end end end