コード例 #1
0
ファイル: test_lsad.py プロジェクト: carriercomm/DDoSProject
    def test_hLsarRetrievePrivateData_hLsarStorePrivateData(self):
        dce, rpctransport, policyHandle = self.connect()

        resp0 = lsad.hLsarRetrievePrivateData(dce,policyHandle,'DPAPI_SYSTEM')
        #hexdump(resp0)

        resp = lsad.hLsarStorePrivateData(dce, policyHandle, 'BETUS', resp0)
        #resp.dump()

        resp = lsad.hLsarStorePrivateData(dce, policyHandle, 'BETUS', NULL)
コード例 #2
0
    def test_hLsarRetrievePrivateData_hLsarStorePrivateData(self):
        dce, rpctransport, policyHandle = self.connect()

        resp0 = lsad.hLsarRetrievePrivateData(dce,policyHandle,'DPAPI_SYSTEM')
        #hexdump(resp0)

        resp = lsad.hLsarStorePrivateData(dce, policyHandle, 'BETUS', resp0)
        resp.dump()

        resp = lsad.hLsarStorePrivateData(dce, policyHandle, 'BETUS', NULL)
        resp.dump()