Sha256: 80024dacd9299ebbccb293dee5f3de552fdf7b144d33d6865e5ffb063eff63bb

Contents?: true

Size: 1.19 KB

Versions: 7

Compression:

Stored size: 1.19 KB

Contents

class Buby

  # Extensions can implement this interface and then call
  # {Buby#registerScannerInsertionPointProvider} to register a factory for
  # custom Scanner insertion points.
  #
  class ScannerInsertionPointProvider
    include Java::Burp::IScannerInsertionPointProvider

    # 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.
    # @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.
    #
    # @param [IHttpRequestResponse] baseRequestResponse The base request that will be actively scanned.
    # @return [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.
    #
    def getInsertionPoints(baseRequestResponse)
      pp [:got_getInsertionPoints, baseRequestResponse] if $DEBUG
      __getInsertionPoints(baseRequestResponse).tap{|x|Buby::HttpRequestResponseHelper.implant(x)}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
buby-1.6.0-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.2-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.1-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.0-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.0.pre4-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.0.pre3-java lib/buby/scanner_insertion_point_provider.rb
buby-1.5.0.pre2-java lib/buby/scanner_insertion_point_provider.rb