def test_hSchRpcCreateFolder_hSchRpcEnumFolders_hSchRpcDelete(self): dce, rpctransport = self.connect(self.stringBindingAtSvc, tsch.MSRPC_UUID_TSCHS) resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() resp = tsch.hSchRpcEnumFolders(dce, '\\') resp.dump() resp = tsch.hSchRpcDelete(dce, '\\Beto') resp.dump()
def test_hSchRpcCreateFolder_hSchRpcEnumFolders_hSchRpcDelete(self): dce, rpc_transport = self.connect() resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() resp = tsch.hSchRpcEnumFolders(dce, '\\') resp.dump() resp = tsch.hSchRpcDelete(dce, '\\Beto') resp.dump()
def test_hSchRpcRename(self): dce, rpctransport = self.connect(self.stringBindingAtSvc, tsch.MSRPC_UUID_TSCHS) resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() try: resp = tsch.hSchRpcRename(dce, '\\Beto', '\\Anita') resp.dump() except Exception, e: if str(e).find('E_NOTIMPL') <= 0: raise pass
def test_hSchRpcRename(self): dce, rpc_transport = self.connect() resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() try: resp = tsch.hSchRpcRename(dce, '\\Beto', '\\Anita') resp.dump() except tsch.DCERPCSessionError as e: if str(e).find('E_NOTIMPL') <= 0: raise pass resp = tsch.hSchRpcDelete(dce, '\\Beto') resp.dump()
def test_SchRpcRename(self): dce, rpctransport = self.connect(self.stringBindingAtSvc, tsch.MSRPC_UUID_TSCHS) resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() request = tsch.SchRpcRename() request['path'] = '\\Beto\x00' request['newName'] = '\\Anita\x00' request['flags'] = 0 try: resp = dce.request(request) resp.dump() except Exception, e: if str(e).find('E_NOTIMPL') <= 0: raise pass
def test_SchRpcRename(self): dce, rpc_transport = self.connect() resp = tsch.hSchRpcCreateFolder(dce, '\\Beto') resp.dump() request = tsch.SchRpcRename() request['path'] = '\\Beto\x00' request['newName'] = '\\Anita\x00' request['flags'] = 0 try: resp = dce.request(request) resp.dump() except tsch.DCERPCSessionError as e: if str(e).find('E_NOTIMPL') <= 0: raise pass resp = tsch.hSchRpcDelete(dce, '\\Beto') resp.dump()