Skip to content

Commit f8e3874

Browse files
committed
add nil check
1 parent ceb92cd commit f8e3874

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/auxiliary/gather/solarwinds_orion_sqli.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ def login (username,password)
6363
'cookie' => cookie
6464
})
6565

66+
if res.nil?
67+
fail_with("Server didn't respond in an expected way")
68+
end
69+
6670
if res.code == 200
6771
fail_with("Authentication failed with username #{username}")
6872
end

0 commit comments

Comments
 (0)