Skip to content

Commit 85c5de0

Browse files
author
HD Moore
committed
Fix use of datastore['SMBServerIdleTimeout']
1 parent 6fcc864 commit 85c5de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/smb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def smb_pool_update(c)
862862
@smb_server_request_counter += 1
863863

864864
unless @smb_server_request_counter % 100 == 0 ||
865-
@smb_server_last_pool_sweep + smb_idle_timeout < Time.now.to_f
865+
@smb_server_last_pool_sweep + datastore['SMBServerIdleTimeout'].to_f < Time.now.to_f
866866
return
867867
end
868868

0 commit comments

Comments
 (0)