update WPVDB link type
This commit is contained in:
@@ -180,7 +180,7 @@ class Msftidy
|
||||
when 'ZDI'
|
||||
warn("Invalid ZDI reference") if value !~ /^\d{2}-\d{3,4}$/
|
||||
when 'WPVDB'
|
||||
warn("Invalid WPVDB reference") if value !~ /^\d+$/
|
||||
warn("Invalid WPVDB reference") if value !~ /^\d+$/ and value !~ /^[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}?$/
|
||||
when 'PACKETSTORM'
|
||||
warn("Invalid PACKETSTORM reference") if value !~ /^\d+$/
|
||||
when 'URL'
|
||||
@@ -196,6 +196,8 @@ class Msftidy
|
||||
warn("Please use 'US-CERT-VU' for '#{value}'")
|
||||
elsif value =~ /^https?:\/\/wpvulndb\.com\/vulnerabilities\//
|
||||
warn("Please use 'WPVDB' for '#{value}'")
|
||||
elsif value =~ /^https?:\/\/wpscan\.com\/vulnerability\//
|
||||
warn("Please use 'WPVDB' for '#{value}'")
|
||||
elsif value =~ /^https?:\/\/(?:[^\.]+\.)?packetstormsecurity\.(?:com|net|org)\//
|
||||
warn("Please use 'PACKETSTORM' for '#{value}'")
|
||||
end
|
||||
|
||||
@@ -35,7 +35,7 @@ def types
|
||||
'EDB' => 'http://www.exploit-db.com/exploits/#{in_ctx_val}',
|
||||
'US-CERT-VU' => 'http://www.kb.cert.org/vuls/id/#{in_ctx_val}',
|
||||
'ZDI' => 'http://www.zerodayinitiative.com/advisories/ZDI-#{in_ctx_val}',
|
||||
'WPVDB' => 'https://wpvulndb.com/vulnerabilities/#{in_ctx_val}',
|
||||
'WPVDB' => 'https://wpscan.com/vulnerability/#{in_ctx_val}',
|
||||
'PACKETSTORM' => 'https://packetstormsecurity.com/files/#{in_ctx_val}',
|
||||
'URL' => '#{in_ctx_val}'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user