Module: Metasploit::Model::Authority::Waraxe
- Defined in:
- lib/metasploit/model/authority/waraxe.rb
Overview
Waraxe authority-specific code.
Constant Summary collapse
- DESIGNATION_REGEXP =
Regular expression for breaking up designation into year and number
/\A(?<year>\d+)-SA#(?<number>\d+)\Z/
Class Method Summary collapse
-
.designation_url(designation) ⇒ String?
Returns URL to Waraxe Security Advisory's page on Waraxe's site.
Class Method Details
.designation_url(designation) ⇒ String?
Returns URL to Waraxe Security Advisory's page on Waraxe's site.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/metasploit/model/authority/waraxe.rb', line 21 def self.designation_url(designation) match = DESIGNATION_REGEXP.match(designation) url = nil if match number = match[:number] url = "http://www.waraxe.us/advisory-#{number}.html" end url end |