Skip to content

Commit e5aa5c4

Browse files
David MaloneyDavid Maloney
authored andcommitted
missing postgres rescues
1 parent 169d040 commit e5aa5c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/metasploit/framework/login_scanner/postgres.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def attempt_login(credential)
6060
proof: e.message
6161
})
6262
end
63+
rescue Rex::ConnectionError, EOFError, Timeout::Error
64+
result_options.merge!({status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT })
6365
end
6466

6567
if pg_conn

0 commit comments

Comments
 (0)