1
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:
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 # check criteria based on whole content
has_rank = false if content =~ / \< Msf::Exploit/
bad_term = true has_rank = false
if content =~ /\< Msf::Exploit/ has_dd = false
has_rank = true if content =~ /Rank =/ has_rank = true if content =~ /Rank =/
else has_dd = true if content =~ /DisclosureDate/
has_rank = true
show_missing(f, 'missing exploit ranking', has_rank)
show_missing(f, 'missing disclosure date', has_dd)
end end
bad_term = true
if content.gsub("\n", "") =~ /stack[[:space:]]+overflow/i if content.gsub("\n", "") =~ /stack[[:space:]]+overflow/i
bad_term = false bad_term = false
end end
show_missing(f, 'missing exploit ranking', has_rank)
show_missing(f, 'contains "stack overflow"', bad_term) show_missing(f, 'contains "stack overflow"', bad_term)