Land #3158, msftidy rank check for aux modules
commit
d9df2fbf08
|
@ -6,7 +6,6 @@
|
||||||
require 'msf/core'
|
require 'msf/core'
|
||||||
|
|
||||||
class Metasploit4 < Msf::Auxiliary
|
class Metasploit4 < Msf::Auxiliary
|
||||||
Rank = GoodRanking
|
|
||||||
|
|
||||||
include Msf::Exploit::Remote::HttpClient
|
include Msf::Exploit::Remote::HttpClient
|
||||||
|
|
||||||
|
@ -100,5 +99,6 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
print_good("File saved to: #{path}")
|
print_good("File saved to: #{path}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -470,6 +470,11 @@ class Msftidy
|
||||||
if ln =~ /\[['"]Set-Cookie['"]\]/i
|
if ln =~ /\[['"]Set-Cookie['"]\]/i
|
||||||
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
|
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue