File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/rex/post/meterpreter/ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def cmd_list_audio_interfaces
48
48
end
49
49
end
50
50
51
- def cmd_start_capture
51
+ def cmd_start_capture ( start_delay = 4096 , play_audio = true )
52
52
print_status ( "Streaming mic audio channel..." )
53
53
54
54
if client . mic . mic_list . length == 0
@@ -95,7 +95,7 @@ def cmd_start_capture
95
95
end
96
96
stream_index = 0
97
97
while client do
98
- if stream_index == 4096
98
+ if play_audio && ( stream_index == start_delay )
99
99
cmd_listen ( stream_path )
100
100
end
101
101
data = client . mic . mic_get_frame ( quality )
@@ -114,8 +114,8 @@ def cmd_start_capture
114
114
end
115
115
end
116
116
117
- def cmd_listen ( stream_path )
118
- system ( "/Applications/VLC.app/Contents/MacOS/VLC #{ stream_path } &" )
117
+ def cmd_listen ( stream_path , player_path = "/Applications/VLC.app/Contents/MacOS/VLC" )
118
+ system ( "#{ player_path } #{ stream_path } &" )
119
119
end
120
120
end
121
121
end
You can’t perform that action at this time.
0 commit comments