Class: Arachni::Component::Options::Address

Inherits:
Base
  • Object
show all
Defined in:
lib/arachni/component/options/address.rb

Overview

Network address option.

Author:

  • Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Instance Attribute Summary

Attributes inherited from Base

#default, #description, #name, #value

Instance Method Summary collapse

Methods inherited from Base

#==, #effective_value, #for_component, from_rpc_data, #hash, #initialize, #missing_value?, #normalize, #required?, #to_h, #to_rpc_data

Constructor Details

This class inherits a constructor from Arachni::Component::Options::Base

Instance Method Details

#typeObject



21
22
23
# File 'lib/arachni/component/options/address.rb', line 21

def type
    :address
end

#valid?Boolean

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/arachni/component/options/address.rb', line 16

def valid?
    return false if !super
    !!IPSocket.getaddress( effective_value ) rescue false
end