File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,10 +170,15 @@ def getUsers(self):
170170
171171 def getPasswordHashes (self ):
172172 infoMsg = "fetching database users password hashes"
173- logger .info (infoMsg )
174173
175174 rootQuery = queries [kb .dbms ].passwords
176175
176+ if conf .user == "CU" :
177+ infoMsg += " for current user"
178+ conf .user = self .getCurrentUser ()
179+
180+ logger .info (infoMsg )
181+
177182 if conf .unionUse :
178183 if kb .dbms == "Microsoft SQL Server" and kb .dbmsVersion [0 ] in ( "2005" , "2008" ):
179184 query = rootQuery ["inband" ]["query2" ]
@@ -301,10 +306,15 @@ def __isAdminFromPrivileges(self, privileges):
301306
302307 def getPrivileges (self ):
303308 infoMsg = "fetching database users privileges"
304- logger .info (infoMsg )
305309
306310 rootQuery = queries [kb .dbms ].privileges
307311
312+ if conf .user == "CU" :
313+ infoMsg += " for current user"
314+ conf .user = self .getCurrentUser ()
315+
316+ logger .info (infoMsg )
317+
308318 # Set containing the list of DBMS administrators
309319 areAdmins = set ()
310320
You can’t perform that action at this time.
0 commit comments