Skip to content

Commit d2cccae

Browse files
committed
Use webrtc browser
1 parent 56b3b0e commit d2cccae

File tree

1 file changed

+2
-2
lines changed
  • lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi

1 file changed

+2
-2
lines changed

lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi/mic.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def cmd_mic_stop(index=0)
118118
client.mic.mic_stop(index)
119119
end
120120

121-
def cmd_listen(stream_path, player_path="/Applications/VLC.app/Contents/MacOS/VLC")
122-
system("#{player_path} #{stream_path} &")
121+
def cmd_listen(stream_path)
122+
Rex::Compat.open_webrtc_browser("file://#{::File.absolute_path(stream_path)}")
123123
end
124124
end
125125
end

0 commit comments

Comments
 (0)