Skip to content

Commit 092b43c

Browse files
committed
Fix undefined method error
[FixRM rapid7#8339]
1 parent 32a190f commit 092b43c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/scanner/http/dolibarr_login.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def do_login(user, pass)
9292
return :abort
9393
end
9494

95+
if res.nil?
96+
print_error("Connection timed out")
97+
return :abort
98+
end
99+
95100
location = res.headers['Location']
96101
if res and res.headers and (location = res.headers['Location']) and location =~ /admin\//
97102
print_good("#{@peer} - Successful login: \"#{user}:#{pass}\"")

0 commit comments

Comments
 (0)