Skip to content

Commit

Permalink
更新html输出结果只显示存在漏洞的结果
Browse files Browse the repository at this point in the history
  • Loading branch information
2867a0 committed Jul 18, 2023
1 parent 3d3a39e commit d93abae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ def show_results(self, results: dict, scan_type) -> None:
if len(result_value)> 50:
result_value = "..."
result_table.add_row([plugin_name, v["display"], status, result_value.strip()])
html_template_data[plugin_name] = v

# html只显示成功的结果
if status == "Success" and len(v["results"]["data"]["instance_list"]) > 0:
html_template_data[plugin_name] = v

# 添加攻击链节点
if status == "Success":
Expand Down

0 comments on commit d93abae

Please sign in to comment.