Skip to content

Commit bd0a20a

Browse files
committed
Update outlook.rb execute_script time_out
I have been using the script in real life cases which have bigger e-mailboxes then in the testing environment. Because of execute_script default time_out no results return, as the powershell scripts run longer then 15 seconds. Changed the timeout to 120.
1 parent 0b6c324 commit bd0a20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/outlook.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def execute_outlook_script(command)
4848
base_script = File.read(File.join(Msf::Config.data_directory, "post", "powershell", "outlook.ps1"))
4949
psh_script = base_script << command
5050
compressed_script = compress_script(psh_script)
51-
cmd_out, runnings_pids, open_channels = execute_script(compressed_script)
51+
cmd_out, runnings_pids, open_channels = execute_script(compressed_script, 120)
5252
while(d = cmd_out.channel.read)
5353
print ("#{d}")
5454
end

0 commit comments

Comments
 (0)