Skip to content

Commit 17c0af6

Browse files
committed
Consistent column names
1 parent 101f12b commit 17c0af6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/post/multi/gather/dbvis_enum.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def parse_new_config_file(raw_xml)
123123
"Port",
124124
"Database",
125125
"Namespace",
126-
"Userid",
126+
"UserID",
127127
"Password"
128128
])
129129

@@ -166,7 +166,7 @@ def parse_new_config_file(raw_xml)
166166

167167
# get the user
168168
if line =~ /<Userid>([\S+\s+]+)<\/Userid>/i
169-
db[:Userid] = $1
169+
db[:UserID] = $1
170170
end
171171

172172
# get user password
@@ -204,7 +204,7 @@ def parse_new_config_file(raw_xml)
204204
report_host(:host => db[:Server]);
205205
end
206206

207-
db_table << [ db[:Alias], db[:Type], db[:Server], db[:Port], db[:Database], db[:Namespace], db[:Userid], db[:Password] ]
207+
db_table << [ db[:Alias], db[:Type], db[:Server], db[:Port], db[:Database], db[:Namespace], db[:UserID], db[:Password] ]
208208
end
209209
return db_table
210210
end
@@ -258,7 +258,7 @@ def parse_old_config_file(raw_xml)
258258

259259
# get the user
260260
if line =~ /<Userid>([\S+\s+]+)<\/Userid>/i
261-
db[:Userid] = $1
261+
db[:UserID] = $1
262262
end
263263

264264
#get the user password
@@ -269,21 +269,21 @@ def parse_old_config_file(raw_xml)
269269

270270
# get the server URL
271271
if line =~ /<Url>(\S+)<\/Url>/i
272-
db[:Url] = $1
272+
db[:URL] = $1
273273
end
274274

275275
end
276276
end
277277

278278
# Fill the tab
279279
dbs.each do |db|
280-
if (db[:Url] =~ /[\S+\s+]+[\/]+([\S+\s+]+):[\S+]+/i)
280+
if (db[:URL] =~ /[\S+\s+]+[\/]+([\S+\s+]+):[\S+]+/i)
281281
if ::Rex::Socket.is_ipv4?($1.to_s)
282282
print_good("Reporting #{$1}")
283283
report_host(:host => $1.to_s)
284284
end
285285
end
286-
db_table << [ db[:Alias] , db[:Type] , db[:Url], db[:Userid], db[:Password] ]
286+
db_table << [ db[:Alias] , db[:Type] , db[:URL], db[:UserID], db[:Password] ]
287287
end
288288
return db_table
289289
end

0 commit comments

Comments
 (0)