Skip to content

Commit

Permalink
code_optimization_action
Browse files Browse the repository at this point in the history
  • Loading branch information
grayddq authored and grayddq committed May 9, 2019
1 parent b4e343d commit 62baa81
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/core/data_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,20 @@ def run(self):
i = 1
for result_info in self.result_infos:
if result_info[u'检测项'] == u'常规后门检测':
print(u"[%d] 黑客在%s时间,进行了%s植入" % (i, result_info[u'异常时间'], result_info[u'风险名称']))
print(
u"[%d] 黑客在%s时间,进行了%s植入,%s" % (i, result_info[u'异常时间'], result_info[u'风险名称'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'配置类安全检测':
print(u"[%d] 黑客在%s时间,进行了%s变更,%s" % (
i, result_info[u'异常时间'], result_info[u'风险名称'], result_info[u'异常信息']))
i, result_info[u'异常时间'], result_info[u'风险名称'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'文件类安全检测':
print(u"[%d] 黑客在%s时间,植入了恶意文件%s,%s" % (
i, result_info[u'异常时间'], result_info[u'异常文件'], result_info[u'异常信息']))
i, result_info[u'异常时间'], result_info[u'异常文件'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'主机历史操作类安全检测':
print(u"[%d] 黑客在%s时间,进行了恶意操作,%s" % (i, result_info[u'异常时间'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'日志类安全检测':
print(u"[%d] 黑客在%s时间,进行了主机登陆,%s" % (i, result_info[u'异常时间'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'网络链接类安全检测':
print(u"[%d] 黑客在%s时间,%s" % (i, result_info[u'异常时间'],result_info[u'异常信息']))
print(u"[%d] 黑客在%s时间,%s" % (i, result_info[u'异常时间'], result_info[u'异常信息']))
if result_info[u'检测项'] == u'进程类安全检测':
print(
u"[%d] 黑客在%s时间,启动进程%s,%s" % (i, result_info[u'异常时间'], result_info[u'进程PID'], result_info[u'异常信息']))
Expand Down

0 comments on commit 62baa81

Please sign in to comment.