Skip to content

Commit

Permalink
fix NetRequester instantiation when resolving SID within `get_adservi…
Browse files Browse the repository at this point in the history
…ceaccount`
  • Loading branch information
ThePirateWhoSmellsOfSunflowers committed Jan 29, 2023
1 parent 5150288 commit 745564a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywerview/functions/net.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 745564a

Please sign in to comment.