parent
c8f23b2903
commit
75c075e32b
|
@ -210,7 +210,7 @@ class Metasploit::Framework::CredentialCollection
|
|||
def private_type(private)
|
||||
if private =~ /[0-9a-f]{32}:[0-9a-f]{32}/
|
||||
:ntlm_hash
|
||||
elsif private =~ /md5([a-f0-9]{32})/
|
||||
elsif private =~ /^md5([a-f0-9]{32})$/
|
||||
:postgres_md5
|
||||
else
|
||||
:password
|
||||
|
|
|
@ -63,7 +63,7 @@ class Connection
|
|||
establish_connection(uri)
|
||||
|
||||
# Check if the password supplied is a Postgres-style md5 hash
|
||||
md5_hash_match = password.match(/md5([a-f0-9]{32})/)
|
||||
md5_hash_match = password.match(/^md5([a-f0-9]{32})$/)
|
||||
|
||||
@conn << StartupMessage.new(PROTO_VERSION, 'user' => user, 'database' => database).dump
|
||||
|
||||
|
|
Loading…
Reference in New Issue