mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
check for exploit rank and disclosure date
git-svn-id: file:///home/svn/framework3/trunk@11051 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
25611afb6c
commit
c30bc9cb69
@ -65,18 +65,22 @@ def check_single_file(dparts, fparts, f_rel)
|
||||
|
||||
|
||||
# check criteria based on whole content
|
||||
if content =~ / \< Msf::Exploit/
|
||||
has_rank = false
|
||||
bad_term = true
|
||||
if content =~ /\< Msf::Exploit/
|
||||
has_dd = false
|
||||
|
||||
has_rank = true if content =~ /Rank =/
|
||||
else
|
||||
has_rank = true
|
||||
has_dd = true if content =~ /DisclosureDate/
|
||||
|
||||
show_missing(f, 'missing exploit ranking', has_rank)
|
||||
show_missing(f, 'missing disclosure date', has_dd)
|
||||
end
|
||||
|
||||
bad_term = true
|
||||
if content.gsub("\n", "") =~ /stack[[:space:]]+overflow/i
|
||||
bad_term = false
|
||||
end
|
||||
|
||||
show_missing(f, 'missing exploit ranking', has_rank)
|
||||
show_missing(f, 'contains "stack overflow"', bad_term)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user