Class: Msf::OptAddressRoutable

Inherits:
OptAddress show all
Defined in:
lib/msf/core/opt_address_routable.rb

Overview

Routable network address option.

Instance Attribute Summary

Attributes inherited from OptBase

#advanced, #aliases, #conditions, #default, #desc, #enums, #evasion, #fallbacks, #max_length, #name, #owner, #regex, #required

Instance Method Summary collapse

Methods inherited from OptAddress

#type

Methods inherited from OptBase

#advanced?, #display_value, #empty_required_value?, #evasion?, #initialize, #invalid_value_length?, #normalize, #required?, #type?, #validate_on_assignment?

Constructor Details

This class inherits a constructor from Msf::OptBase

Instance Method Details

#valid?(value, check_empty: true) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/msf/core/opt_address_routable.rb', line 12

def valid?(value, check_empty: true)
  return false if Rex::Socket.is_ip_addr?(value) && Rex::Socket.addr_atoi(value) == 0
  super
end