From 745564a3fb5ae97a8336720a3133207305aac358 Mon Sep 17 00:00:00 2001 From: ThePirateWhoSmellsOfSunflowers Date: Sun, 29 Jan 2023 13:35:40 +0100 Subject: [PATCH] fix NetRequester instantiation when resolving SID within `get_adserviceaccount` --- pywerview/functions/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywerview/functions/net.py b/pywerview/functions/net.py index d9907cb..e938e41 100644 --- a/pywerview/functions/net.py +++ b/pywerview/functions/net.py @@ -70,7 +70,7 @@ def get_adserviceaccount(self, queried_domain=str(), queried_sid=str(), object_filter = '(&(name=*){})'.format(filter_objectclass) adserviceaccounts = self._ldap_search(object_filter, adobj.GMSAAccount, attributes=attributes) - sid_resolver = NetRequester(self._domain_controller, self._domain, self._user, self._password, self._lmhash, self._nthash) + sid_resolver = NetRequester(self._domain_controller, self._domain, self._user, self._password, self._lmhash, self._nthash, self._do_kerberos, self._do_tls) # In this loop, we resolve SID (if true) and we populate 'enabled' attribute for i, adserviceaccount in enumerate(adserviceaccounts):