def generate_opaqueness_details_report(self):
for rtn_addr, candidates in self.functions_candidates.items():
self.report.add_title('%s' % idc.GetFunctionName(rtn_addr), size=3)
self.report.add_table_header(['address', "status", "K", "predicate", "distance", "dead branch"])
for addr in sorted(candidates):
res = self.results[addr]
status, color = to_status_name(res.status), status_to_color(res.status)
status = make_cell(status, bold=True, color=color)
dead_br_cell = make_cell("/" if res.dead_branch is None else "%x" % res.dead_branch)
self.report.add_table_line([make_cell("%x" % addr), status, make_cell(str(res.k)), make_cell(res.predicate), make_cell(str(res.distance)), dead_br_cell])
self.report.end_table()
评论列表
文章目录