def init_sample_id(self):
"""
test if the remote sample exists,
if not, we upload it
"""
if self.sample_id is None:
self.sample_id = self.get_sample_id()
if not self.sample_id:
g_logger.warning("Sample not found on server, uploading it")
self.send_sample(open(idc.GetInputFile(), 'rb'))
self.sample_id = self.get_sample_id()
g_logger.info("Sample ID: %d", self.sample_id)
评论列表
文章目录