Class: Buby::ScannerInsertionPointProvider

Inherits:
Object
  • Object
show all
Includes:
Java::Burp::IScannerInsertionPointProvider
Defined in:
lib/buby/scanner_insertion_point_provider.rb

Overview

Extensions can implement this interface and then call #registerScannerInsertionPointProvider to register a factory for custom Scanner insertion points.

Instance Method Summary collapse

Instance Method Details

#getInsertionPoints(baseRequestResponse) ⇒ Array<IScannerInsertionPoint>?

Note:

these insertion points are used in addition to those that are derived from Burp Scanner’s configuration, and those provided by any other Burp extensions.

When a request is actively scanned, the Scanner will invoke this method, and the provider should provide a list of custom insertion points that will be used in the scan.

Parameters:

  • baseRequestResponse (IHttpRequestResponse)

    The base request that will be actively scanned.

Returns:

  • (Array<IScannerInsertionPoint>, nil)

    A list of IScannerInsertionPoint objects that should be used in thescanning, or nil if no custom insertion points are applicable for this request.



22
23
24
25
# File 'lib/buby/scanner_insertion_point_provider.rb', line 22

def getInsertionPoints(baseRequestResponse)
  pp [:got_getInsertionPoints, baseRequestResponse] if $DEBUG
  __getInsertionPoints(baseRequestResponse).tap{|x|Buby::HttpRequestResponseHelper.implant(x)}
end