Sha256: 84913111ba5946ebf84daf97f631ace51dc4996ceb611877f2dba8bf1a8531ba

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

require 'socket'

# Network address option.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Arachni::Component::Options::Address < Arachni::Component::Options::Base

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

    def type
        :address
    end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 lib/arachni/component/options/address.rb
arachni-1.3.1 lib/arachni/component/options/address.rb
arachni-1.3 lib/arachni/component/options/address.rb
arachni-1.2.1 lib/arachni/component/options/address.rb
arachni-1.2 lib/arachni/component/options/address.rb
arachni-1.1 lib/arachni/component/options/address.rb