Skip to content

Commit 199c3ba

Browse files
David MaloneyDavid Maloney
authored andcommitted
postgres hashdump now stores PostgresMD5 objects
instead of nonreplayabke hashes the postgres_hashdump aux module now saves them approriately as PostgresMD5s with the md5 tag intact at the front MSP-12244
1 parent 64490c7 commit 199c3ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/auxiliary/scanner/postgres/postgres_hashdump.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def run_host(ip)
112112
origin_type: :service,
113113
jtr_format: 'raw-md5,postgres',
114114
module_fullname: self.fullname,
115-
private_type: :nonreplayable_hash
115+
private_type: :postgres_md5
116116
}
117117

118118
credential_data.merge!(service_data)
@@ -122,7 +122,6 @@ def run_host(ip)
122122
next if row[0].nil? or row[1].nil?
123123
next if row[0].empty? or row[1].empty?
124124
password = row[1]
125-
password.slice!(0,3)
126125

127126
credential_data[:username] = row[0]
128127
credential_data[:private_data] = password

0 commit comments

Comments
 (0)