Skip to content

Commit c9d8da9

Browse files
author
kenkeiras
committed
Use Rex.sleep instead of select
1 parent d2a558d commit c9d8da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/ssh/ssh_enumusers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def attempt_user(user, ip)
136136
while attempt_num <= retry_num and (ret.nil? or ret == :connection_error)
137137

138138
if attempt_num > 0
139-
select(nil, nil, nil, 2**attempt_num)
139+
Rex.sleep(2 ** attempt_num)
140140
print_debug "Retrying '#{user}' on '#{ip}' due to connection error"
141141
end
142142

0 commit comments

Comments
 (0)