33 lines
662 B
Ruby
33 lines
662 B
Ruby
# encoding: UTF-8
|
|
|
|
class Vulnerability
|
|
module Urls
|
|
# @return [ String ] The url to the metasploit module page
|
|
def url_metasploit(module_path)
|
|
# remove leading slash
|
|
module_path = module_path.sub(/^\//, '')
|
|
"http://www.metasploit.com/modules/#{module_path}"
|
|
end
|
|
|
|
def url_url(url)
|
|
url
|
|
end
|
|
|
|
def url_cve(cve)
|
|
"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-#{cve}"
|
|
end
|
|
|
|
def url_osvdb(id)
|
|
"http://osvdb.org/#{id}"
|
|
end
|
|
|
|
def url_secunia(id)
|
|
"http://secunia.com/advisories/#{id}"
|
|
end
|
|
|
|
def url_exploitdb(id)
|
|
"http://www.exploit-db.com/exploits/#{id}/"
|
|
end
|
|
|
|
end
|
|
end |