Skip to content

Commit e5c05c0

Browse files
authored
Make OSX screencapture silent
By default, the `screencapture` command on OS X plays a camera sound effect. The -x option silences this.
1 parent a13e83a commit e5c05c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/osx/capture/screen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run
7272
cmd_exec("mkdir -p #{tmp_path}")
7373
filename = Rex::Text.rand_text_alpha(7)
7474
file = "#{tmp_path}/#{filename}"
75-
cmd_exec("#{exe_path} -C -t #{file_type} #{file}")
75+
cmd_exec("#{exe_path} -x -C -t #{file_type} #{file}")
7676
data = read_file(file)
7777
file_rm(file)
7878
rescue ::Rex::Post::Meterpreter::RequestError => e

0 commit comments

Comments
 (0)