1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-18 14:00:12 +02: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:
Joshua Drake 2010-11-16 20:17:03 +00:00
parent 25611afb6c
commit c30bc9cb69

View File

@ -65,18 +65,22 @@ def check_single_file(dparts, fparts, f_rel)
# check criteria based on whole content
has_rank = false
bad_term = true
if content =~ /\< Msf::Exploit/
if content =~ / \< Msf::Exploit/
has_rank = false
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)