コード例 #1
0
 def test_hNetrUnjoinDomain2(self):
     dce, rpc_transport = self.connect()
     try:
         resp = wkst.hNetrUnjoinDomain2(dce, NULL, b'\x00'*512, wkst.NETSETUP_ACCT_DELETE)
         resp.dump()
     except Exception as e:
         if str(e).find('ERROR_INVALID_PASSWORD') < 0:
             raise
コード例 #2
0
ファイル: test_wkst.py プロジェクト: 0xc0da/impacket
    def test_hNetrUnjoinDomain2(self):
        dce, rpctransport = self.connect()

        try:
            resp = wkst.hNetrUnjoinDomain2(dce, NULL, '\x00'*512, wkst.NETSETUP_ACCT_DELETE)
            resp.dump()
        except Exception, e:
            if str(e).find('ERROR_INVALID_PASSWORD') < 0:
                raise