Sha256: 308dc4d29862ca5a2294320740c9b5701bb4d40d591d112fcd869d7fc5d2a975

Contents?: true

Size: 333 Bytes

Versions: 23

Compression:

Stored size: 333 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.include?('/status')
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wpscan-3.8.10 lib/wpscan/typhoeus/response.rb
wpscan-3.8.9 lib/wpscan/typhoeus/response.rb
wpscan-3.8.8 lib/wpscan/typhoeus/response.rb
wpscan-3.8.7 lib/wpscan/typhoeus/response.rb
wpscan-3.8.6 lib/wpscan/typhoeus/response.rb
wpscan-3.8.5 lib/wpscan/typhoeus/response.rb
wpscan-3.8.4 lib/wpscan/typhoeus/response.rb
wpscan-3.8.3 lib/wpscan/typhoeus/response.rb
wpscan-3.8.2 lib/wpscan/typhoeus/response.rb
wpscan-3.8.1 lib/wpscan/typhoeus/response.rb
wpscan-3.8.0 lib/wpscan/typhoeus/response.rb
wpscan-3.7.11 lib/wpscan/typhoeus/response.rb
wpscan-3.7.10 lib/wpscan/typhoeus/response.rb
wpscan-3.7.9 lib/wpscan/typhoeus/response.rb
wpscan-3.7.8 lib/wpscan/typhoeus/response.rb
wpscan-3.7.7 lib/wpscan/typhoeus/response.rb
wpscan-3.7.6 lib/wpscan/typhoeus/response.rb
wpscan-3.7.5 lib/wpscan/typhoeus/response.rb
wpscan-3.7.4 lib/wpscan/typhoeus/response.rb
wpscan-3.7.3 lib/wpscan/typhoeus/response.rb