adjust timeout for shadowcopy

WMIC defaults to 10 sec timeout but shadowcopy
often needs longer.
bug/bundler_fix
David Maloney 2014-03-04 10:18:59 -06:00
parent 43715eeb7f
commit 72c6b995de
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ module ShadowCopy
include Msf::Post::Windows::Services
include Msf::Post::Windows::WMIC
def initialize(info = {})
super
register_options([
OptInt.new("TIMEOUT", [ true, "Timeout for WMI command in seconds", 60 ])
], self.class)
end
#
# Get the device name for the shadow copy, which is used when accessing
# files on the volume.