Module: Buby::Implants::InterceptedProxyMessage
- Defined in:
- lib/buby/implants/intercepted_proxy_message.rb
Overview
This interface is used to represent an HTTP message that has been intercepted by Burp Proxy. Extensions can register an IProxyListener
to receive details of proxy messages using this interface.
Constant Summary collapse
- FOLLOW_RULES =
Java::Burp::IInterceptedProxyMessage::ACTION_FOLLOW_RULES
- DO_INTERCEPT =
Java::Burp::IInterceptedProxyMessage::ACTION_DO_INTERCEPT
- DONT_INTERCEPT =
Java::Burp::IInterceptedProxyMessage::ACTION_DONT_INTERCEPT
- DROP =
Java::Burp::IInterceptedProxyMessage::ACTION_DROP
- FOLLOW_RULES_AND_REHOOK =
Java::Burp::IInterceptedProxyMessage::ACTION_FOLLOW_RULES_AND_REHOOK
- DO_INTERCEPT_AND_REHOOK =
Java::Burp::IInterceptedProxyMessage::ACTION_DO_INTERCEPT_AND_REHOOK
- DONT_INTERCEPT_AND_REHOOK =
Java::Burp::IInterceptedProxyMessage::ACTION_DONT_INTERCEPT_AND_REHOOK
Class Method Summary collapse
-
.implant(message) ⇒ Object
Install ourselves into the current
IInterceptedProxyMessage
java class.
Instance Method Summary collapse
-
#getMessageInfo ⇒ IHttpRequestResponse
This method retrieves details of the intercepted message.
Class Method Details
.implant(message) ⇒ Object
Install ourselves into the current IInterceptedProxyMessage
java class
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/buby/implants/intercepted_proxy_message.rb', line 30 def self.implant() unless .implanted? || .nil? pp [:implanting, , .class] if $DEBUG .class.class_exec() do || a_methods = %w{ getMessageInfo } a_methods.each do |meth| alias_method "__"+meth.to_s, meth end include Buby::Implants::InterceptedProxyMessage a_methods.each do |meth| java_class.ruby_names_for_java_method(meth).each do |ruby_meth| define_method ruby_meth, Buby::Implants::InterceptedProxyMessage.instance_method(meth) end end include Buby::Implants::Proxy end end end |
Instance Method Details
#getMessageInfo ⇒ IHttpRequestResponse
TODO:
IHttpRequestResponse
This method retrieves details of the intercepted message.
intercepted message.
23 24 25 |
# File 'lib/buby/implants/intercepted_proxy_message.rb', line 23 def getMessageInfo __getMessageInfo.tap{|msg| Buby::HttpRequestResponseHelper.implant(msg)} end |