예제 #1
0
    def test_hLsarLookupNames4(self):
        # not working, I need netlogon here
        dce, rpctransport = self.connect()

        # The RPC server MUST ensure that the RPC_C_AUTHN_NETLOGON security provider
        # (as specified in [MS-RPCE] section 2.2.1.1.7) and at least
        # RPC_C_AUTHN_LEVEL_PKT_INTEGRITY authentication level (as specified in
        # [MS-RPCE] section 2.2.1.1.8) are used in this RPC message.
        # Otherwise, the RPC server MUST return STATUS_ACCESS_DENIED.
        with assertRaisesRegex(self, DCERPCException, 'rpc_s_access_denied'):
            lsat.hLsarLookupNames4(dce, ('Administrator', 'Guest'))
예제 #2
0
    def test_hLsarLookupNames4(self):
        # not working, I need netlogon here
        dce, rpctransport, policyHandle = self.connect()

        try:
            resp = lsat.hLsarLookupNames4(dce, ('Administrator', 'Guest'))
            resp.dump()
        except Exception, e:
            # The RPC server MUST ensure that the RPC_C_AUTHN_NETLOGON security provider 
            # (as specified in [MS-RPCE] section 2.2.1.1.7) and at least 
            # RPC_C_AUTHN_LEVEL_PKT_INTEGRITY authentication level (as specified in 
            # [MS-RPCE] section 2.2.1.1.8) are used in this RPC message. 
            # Otherwise, the RPC server MUST return STATUS_ACCESS_DENIED.
            if str(e).find('rpc_s_access_denied') < 0:
                raise
예제 #3
0
    def test_hLsarLookupNames4(self):
        # not working, I need netlogon here
        dce, rpctransport, policyHandle = self.connect()

        try:
            resp = lsat.hLsarLookupNames4(dce, ('Administrator', 'Guest'))
            resp.dump()
        except Exception, e:
            # The RPC server MUST ensure that the RPC_C_AUTHN_NETLOGON security provider
            # (as specified in [MS-RPCE] section 2.2.1.1.7) and at least
            # RPC_C_AUTHN_LEVEL_PKT_INTEGRITY authentication level (as specified in
            # [MS-RPCE] section 2.2.1.1.8) are used in this RPC message.
            # Otherwise, the RPC server MUST return STATUS_ACCESS_DENIED.
            if str(e).find('rpc_s_access_denied') < 0:
                raise