def test_hNetrShareSetInfo(self): dce, rpctransport = self.connect() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 1) resp.dump() oldValue = resp['InfoStruct']['ShareInfo1']['shi1_remark'] shareInfo = resp['InfoStruct']['ShareInfo1'] shareInfo['shi1_remark'] = 'BETUS\x00' resp = srvs.hNetrShareSetInfo(dce, 'IPC$\x00', 1, shareInfo) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 1) resp.dump() shareInfo['shi1_remark'] = oldValue resp = srvs.hNetrShareSetInfo(dce, 'IPC$\x00', 1, shareInfo) resp.dump()
def test_hNetrShareGetInfo(self): dce, rpctransport = self.connect() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 0) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 1) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 2) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 501) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 502) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 503) resp.dump() resp = srvs.hNetrShareGetInfo(dce, 'IPC$\x00', 1005) resp.dump()