Esempio n. 1
0
    def test_hLsarOpenAccount(self):
        dce, rpctransport, policyHandle = self.connect()
        resp = lsad.hLsarEnumerateAccounts(dce, policyHandle)
        resp.dump()

        resp = lsad.hLsarOpenAccount(dce, policyHandle, resp['EnumerationBuffer']['Information'][0]['Sid'].formatCanonical())
        resp.dump()

        resp = lsad.hLsarClose(dce, resp['AccountHandle'])
        resp.dump()
Esempio n. 2
0
 def test_hLsarEnumerateAccounts(self):
     dce, rpctransport, policyHandle = self.connect()
     resp = lsad.hLsarEnumerateAccounts(dce, policyHandle)
     resp.dump()