Class: Buby::HttpListener

Inherits:
Object show all
Includes:
Java::Burp::IHttpListener
Defined in:
lib/buby/http_listener.rb

Overview

Extensions can implement this interface and then call #registerHttpListener to register an HTTP listener. The listener will be notified of requests and responses made by any Burp tool. Extensions can perform custom analysis or modification of these messages by registering an HTTP listener.

Instance Method Summary collapse

Instance Method Details

#processHttpMessage(toolFlag, messageIsRequest, messageInfo) ⇒ Object

TODO:

move HttpRequestResponse to new implant scheme

This method is invoked when an HTTP request is about to be issued, and when an HTTP response has been received.

Parameters:

  • toolFlag (Fixnum, Symbol)

    A flag indicating the Burp tool that issued the request. Burp tool flags are defined in the IBurpExtenderCallbacks interface and Buby.

  • messageIsRequest (Boolean)

    Flags whether the method is being invoked for a request or response.

  • messageInfo (IHttpRequestResponse)

    Details of the request/response to be processed. Extensions can call the setter methods on this object to update the current message and so modify Burp’s behavior.



24
25
26
27
# File 'lib/buby/http_listener.rb', line 24

def processHttpMessage(toolFlag, messageIsRequest, messageInfo)
  pp [:got_processHttpMessage, toolFlag, messageIsRequest, messageInfo] if $DEBUG
  Buby::HttpRequestResponseHelper.implant(messageInfo)
end