Skip to content

Commit

Permalink
user_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
grayddq authored and grayddq committed Apr 30, 2019
1 parent 4e9edc2 commit f676996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/User_Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def run(self):
suspicious, malice = self.check_authorized_keys()
result_output_tag(suspicious, malice)

string_output(u' [5]账户密码文件扫描')
suspicious, malice = self.passwd_file_analysis()
result_output_tag(suspicious, malice)

# 检测结果输出到文件
result_output_file(u'可疑账户类信息如下:', self.user_malware)

Expand Down
2 changes: 1 addition & 1 deletion lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def analysis_file(file):
if " " in file: return ""
if 'GScan' in file: return ""
if os.path.splitext(file)[1] == '.log': return ""
if '.log' in file: return ""
#if '.log' in file: return ""
if (os.path.getsize(file) == 0) or (round(os.path.getsize(file) / float(1024 * 1024)) > 10): return ""
strings = os.popen("strings %s" % file).readlines()
if len(strings) > 200: return ""
Expand Down

0 comments on commit f676996

Please sign in to comment.