Ejemplo n.º 1
0
 def test_NetrLogonGetTrustRid(self):
     dce, rpctransport = self.connect()
     request = nrpc.NetrLogonGetTrustRid()
     request['ServerName'] = NULL
     request['DomainName'] = self.domain + '\x00'
     try:
         resp = dce.request(request)
         resp.dump()
     except Exception as e:
         if str(e).find('rpc_s_access_denied') < 0:
             raise
Ejemplo n.º 2
0
    def test_NetrLogonGetTrustRid(self):
        dce, rpctransport = self.connect()
        request = nrpc.NetrLogonGetTrustRid()
        request['ServerName'] = NULL
        request['DomainName'] = self.domain + '\x00'

        try:
            dce.request(request)
        except DCERPCException as e:
            # The client doesn't have sufficient privilege with the Access Request mask set to NETLOGON_SERVICE_ACCESS?
            if str(e).find('rpc_s_access_denied') < 0:
                raise