Skip to content

Commit 65805d4

Browse files
committed
Land rapid7#4612, @wez3's suggestion to bump the Outlook gather time
2 parents cf75554 + f730527 commit 65805d4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/post/windows/gather/outlook.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@ def initialize(info={})
4040
OptString.new('FOLDER', [ false, 'The e-mailfolder to read (e.g. Inbox)' ]),
4141
OptString.new('KEYWORD', [ false, 'Search e-mails by the keyword specified here' ]),
4242
OptString.new('A_TRANSLATION', [ false, 'Fill in the translation of the word "Allow" in the targets system language, to click on the security popup.' ]),
43-
OptString.new('ACF_TRANSLATION', [ false, 'Fill in the translation of the phrase "Allow access for" in the targets system language, to click on the security popup.' ]),
43+
OptString.new('ACF_TRANSLATION', [ false, 'Fill in the translation of the phrase "Allow access for" in the targets system language, to click on the security popup.' ])
44+
], self.class)
45+
46+
register_advanced_options(
47+
[
48+
OptInt.new('TIMEOUT', [true, 'The maximum time (in seconds) to wait for any Powershell scripts to complete', 120])
4449
], self.class)
4550
end
4651

4752
def execute_outlook_script(command)
4853
base_script = File.read(File.join(Msf::Config.data_directory, "post", "powershell", "outlook.ps1"))
4954
psh_script = base_script << command
5055
compressed_script = compress_script(psh_script)
51-
cmd_out, runnings_pids, open_channels = execute_script(compressed_script)
56+
cmd_out, runnings_pids, open_channels = execute_script(compressed_script, datastore['TIMEOUT'])
5257
while(d = cmd_out.channel.read)
5358
print ("#{d}")
5459
end

0 commit comments

Comments
 (0)