Example #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'])
Example #2
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()