added metasploit references
This commit is contained in:
@@ -139,3 +139,9 @@ end
|
||||
def green(text)
|
||||
colorize(text, 32)
|
||||
end
|
||||
|
||||
def get_metasploit_url(module_path)
|
||||
# remove leading slash
|
||||
module_path = module_path.sub(/^\//, "")
|
||||
"http://www.metasploit.com/modules/#{module_path}"
|
||||
end
|
||||
|
||||
@@ -32,7 +32,8 @@ class Vulnerable
|
||||
vulnerabilities << WpVulnerability.new(
|
||||
node.search("title").text,
|
||||
node.search("reference").map(&:text),
|
||||
node.search("type").text
|
||||
node.search("type").text,
|
||||
node.search("metasploit").map(&:text)
|
||||
)
|
||||
end
|
||||
vulnerabilities
|
||||
|
||||
@@ -17,11 +17,12 @@
|
||||
#++
|
||||
|
||||
class WpVulnerability
|
||||
attr_accessor :title, :references, :type
|
||||
attr_accessor :title, :references, :type, :metasploit_modules
|
||||
|
||||
def initialize(title, references, type)
|
||||
@title = title
|
||||
@references = references
|
||||
@type = type
|
||||
def initialize(title, references, type, metasploit_modules)
|
||||
@title = title
|
||||
@references = references
|
||||
@type = type
|
||||
@metasploit_modules = metasploit_modules
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user