Class: Ronin::DB::Vulnerability

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/vulnerability.rb

Overview

Represents a discovered vulnerability associated with a URL, open port, host name, IP, or MAC address.

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#advisoryAdvisory

The vulnerability advisory.

Returns:



82
# File 'lib/ronin/db/vulnerability.rb', line 82

belongs_to :advisory

#host_nameHostName?

The host name that is vulnerable.

Returns:



63
# File 'lib/ronin/db/vulnerability.rb', line 63

belongs_to :host_name, optional: true

#idInteger

The primary key of the vulnerability.

Returns:

  • (Integer)


43
# File 'lib/ronin/db/vulnerability.rb', line 43

attribute :id, :integer

#ip_addressIPAddress?

The IP address that is vulnerable.

Returns:



56
57
# File 'lib/ronin/db/vulnerability.rb', line 56

belongs_to :ip_address, optional:   true,
class_name: 'IPAddress'

#mac_addressMACAddress?

The MAC address that is vulnerable.

Returns:



49
50
# File 'lib/ronin/db/vulnerability.rb', line 49

belongs_to :mac_address, optional:   true,
class_name: 'MACAddress'

#open_portOpenPort?

The open port that hosts a vulnerable service.

Returns:



69
# File 'lib/ronin/db/vulnerability.rb', line 69

belongs_to :open_port, optional: true

#urlURL?

The URL that is vulnerable.

Returns:



75
76
# File 'lib/ronin/db/vulnerability.rb', line 75

belongs_to :url, optional: true,
class_name: 'URL'