Skip to content

Commit 42a7766

Browse files
committed
Fix undefined method error
[FixRM rapid7#8330]
1 parent 0f85fa2 commit 42a7766

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/auxiliary/scanner/http/sevone_enum.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ def do_login(user, pass)
8686
}
8787
})
8888

89+
if res.nil?
90+
print_error("Connection timed out")
91+
return :abort
92+
end
93+
8994
check_key = "The user has logged in successfully."
9095

9196
key = JSON.parse(res.body)["statusString"]

0 commit comments

Comments
 (0)