Sha256: 650bfd955a64320eb28ab9346a33252edcf5741e5ff56e2cbe965015900b5ad3

Contents?: true

Size: 378 Bytes

Versions: 17

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Typhoeus
  # Custom Response class
  class Response
    # @note: Ignores requests done to the /status endpoint of the API
    #
    # @return [ Boolean ]
    def from_vuln_api?
      effective_url.start_with?(WPScan::DB::VulnApi.uri.to_s) &&
        !effective_url.start_with?(WPScan::DB::VulnApi.uri.join('status').to_s)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
wpscan-3.8.28 lib/wpscan/typhoeus/response.rb
wpscan-3.8.27 lib/wpscan/typhoeus/response.rb
wpscan-3.8.26 lib/wpscan/typhoeus/response.rb
wpscan-3.8.25 lib/wpscan/typhoeus/response.rb
wpscan-3.8.24 lib/wpscan/typhoeus/response.rb
wpscan-3.8.22 lib/wpscan/typhoeus/response.rb
wpscan-3.8.21 lib/wpscan/typhoeus/response.rb
wpscan-3.8.20 lib/wpscan/typhoeus/response.rb
wpscan-3.8.19 lib/wpscan/typhoeus/response.rb
wpscan-3.8.18 lib/wpscan/typhoeus/response.rb
wpscan-3.8.17 lib/wpscan/typhoeus/response.rb
wpscan-3.8.16 lib/wpscan/typhoeus/response.rb
wpscan-3.8.15 lib/wpscan/typhoeus/response.rb
wpscan-3.8.14 lib/wpscan/typhoeus/response.rb
wpscan-3.8.13 lib/wpscan/typhoeus/response.rb
wpscan-3.8.12 lib/wpscan/typhoeus/response.rb
wpscan-3.8.11 lib/wpscan/typhoeus/response.rb