def test_hNetrFileEnum(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) resp.dump() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 3) resp.dump()
def test_hNetrFileEnum(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) resp.dump() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 3) resp.dump()
def test_hNetrFileGetInfo(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) #resp.dump() resp0 = srvs.hNetrFileGetInfo(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id'], 2) #resp0.dump() resp = srvs.hNetrFileGetInfo(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id'], 3)
def test_hNetrFileGetInfo(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) resp.dump() resp0 = srvs.hNetrFileGetInfo(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id'], 2) resp0.dump() resp = srvs.hNetrFileGetInfo(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id'], 3) resp.dump()
def test_hNetrFileClose(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) resp.dump() try: resp = srvs.hNetrFileClose(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id']) resp.dump() except Exception, e: # I might be closing myself ;) if str(e).find('STATUS_PIPE_BROKEN') < 0: raise
def test_hNetrFileClose(self): dce, rpctransport = self.connect() resp = srvs.hNetrFileEnum(dce, NULL, NULL, 2) resp.dump() try: resp = srvs.hNetrFileClose(dce, resp['InfoStruct']['FileInfo']['Level2']['Buffer'][0]['fi2_id']) resp.dump() except Exception as e: # I might be closing myself ;) if str(e).find('STATUS_PIPE_BROKEN') < 0 and str(e).find('STATUS_FILE_CLOSED') < 0 and str(e).find('STATUS_INVALID_HANDLE') < 0 and str(e).find('0x90a') < 0: raise