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
Julio Ureña 2022-11-04 07:45:47 -04:00 committed by GitHub
parent b2bcbe0ade
commit 47a92590a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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: