Files
wpscan/lib/wpscan/typhoeus/response.rb
2019-08-13 10:03:01 +01:00

14 lines
333 B
Ruby

# 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