Class: Typhoeus::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/wpscan/typhoeus/response.rb

Overview

Custom Response class

Instance Method Summary collapse

Instance Method Details

#from_vuln_api?Boolean

@note: Ignores requests done to the /status endpoint of the API

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/wpscan/typhoeus/response.rb', line 9

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