Remove @requires_admin flag for WMI queries
Although not common, it is possible for a user to be assigned WMI privileges. Removing @requires_admin in case we do not have privileges to make queries to WMI we will receive an access denied error, which makes it clearer what is happening.main
parent
b2bcbe0ade
commit
47a92590a6
|
@ -931,7 +931,6 @@ class smb(connection):
|
|||
def pass_pol(self):
|
||||
return PassPolDump(self).dump()
|
||||
|
||||
@requires_admin
|
||||
def wmi(self, wmi_query=None, namespace=None):
|
||||
records = []
|
||||
if not namespace:
|
||||
|
|
Loading…
Reference in New Issue