Land #3158, msftidy rank check for aux modules

bug/bundler_fix
William Vu 2014-03-31 15:17:30 -05:00
commit d9df2fbf08
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
2 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,6 @@
require 'msf/core'
class Metasploit4 < Msf::Auxiliary
Rank = GoodRanking
include Msf::Exploit::Remote::HttpClient
@ -100,5 +99,6 @@ class Metasploit4 < Msf::Auxiliary
print_good("File saved to: #{path}")
end
end
end

View File

@ -470,6 +470,11 @@ class Msftidy
if ln =~ /\[['"]Set-Cookie['"]\]/i
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
end
# Auxiliary modules do not have a rank attribute
if ln =~ /^\s*Rank\s*=\s*/ and @source =~ /<\sMsf::Auxiliary/
warn("Auxiliary modules have no 'Rank': #{ln}", idx)
end
}
end