Method: Buby#includeInScope

Defined in:
lib/buby.rb

#includeInScope(url) ⇒ void #includeInScope(req) ⇒ void #includeInScope(req_info) ⇒ void #includeInScope(serv, req) ⇒ void Also known as: include_in_scope, include_scope

This method returns an undefined value.

Include the specified URL in the Suite-wide scope.

Overloads:

  • #includeInScope(url) ⇒ void

    Parameters:

    • url (java.net.URL, URI, String)

      The URL to include in the Suite-wide scope.

  • #includeInScope(req) ⇒ void

    Parameters:

    • req (IHttpRequestResponse)

      The request to include in the Suite-wide scope.

  • #includeInScope(req_info) ⇒ void

    Parameters:

    • req_info (IRequestInfo)

      The request information to include in the Suite-wide scope.

  • #includeInScope(serv, req) ⇒ void

    Parameters:

    • serv (IHttpService)

      The HTTP service to include in the Suite-wide scope.

    • req (Array<byte>, String)

      The request to include



375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'lib/buby.rb', line 375

def includeInScope(*args)
  url, req = args
  case args.size
  when 1
    case url
    when Java::Burp::IHttpRequestResponse,  Java::Burp::IRequestInfo
      url = url.getUrl
    else
      url = Java::JavaNet::URL.new(url.to_s) unless url.is_a? Java::JavaNet::URL
    end
  when 2
    url = getHelpers.__analyzeRequest(url, req).getUrl
  else
    raise ArgumentError, "wrong number of arguments calling '#{__callee__}' (#{args.size} for 1,2)"
  end
  _check_and_callback :includeInScope, url
end