Class: Buby::ProxyListener

Inherits:
Object show all
Includes:
Java::Burp::IProxyListener
Defined in:
lib/buby/proxy_listener.rb

Overview

Extensions can implement this interface and then call #registerHttpListener to register a Proxy listener. The listener will be notified of requests and responses being processed by the Proxy tool. Extensions can perform custom analysis or modification of these messages, and control in-UI message interception, by registering a proxy listener.

Instance Method Summary collapse

Instance Method Details

#processProxyMessage(messageIsRequest, message) ⇒ void

This method returns an undefined value.

This method is invoked when an HTTP message is being processed by the Proxy.

Parameters:

  • messageIsRequest (Boolean)

    Indicates whether the HTTP message is a request or a response.

  • message (IInterceptedProxyMessage)

    An IInterceptedProxyMessage object that extensions can use to query and update details of the message, and control whether the message should be intercepted and displayed to the user for manual review or modification.



21
22
23
24
# File 'lib/buby/proxy_listener.rb', line 21

def processProxyMessage(messageIsRequest, message)
  pp [:got_processProxyMessage] if $debug
  Buby::Implants::InterceptedProxyMessage.implant message
end