Class: Buby::SessionHandlingAction
- Includes:
- Java::Burp::ISessionHandlingAction
- Defined in:
- lib/buby/session_handling_action.rb
Overview
Extensions can implement this interface and then call #registerSessionHandlingAction to register a custom session handling action. Each registered action will be available within the session handling rule UI for the user to select as a rule action. Users can choose to invoke an action directly in its own right, or following execution of a macro.
Instance Method Summary collapse
-
#getActionName ⇒ String
This method is used by Burp to obtain the name of the session handling action.
-
#performAction(currentRequest, macroItems) ⇒ void
abstract
This method is invoked when the session handling action should be executed.
Instance Method Details
#getActionName ⇒ String
This method is used by Burp to obtain the name of the session handling action. This will be displayed as an option within the session handling rule editor when the user selects to execute an extension-provided action.
16 17 18 19 |
# File 'lib/buby/session_handling_action.rb', line 16 def getActionName pp [:got_getActionName] if $DEBUG self.class.name end |
#performAction(currentRequest, macroItems) ⇒ void
This method returns an undefined value.
This method is invoked when the session handling action should be executed. This may happen as an action in its own right, or as a sub-action following execution of a macro.
38 39 40 41 |
# File 'lib/buby/session_handling_action.rb', line 38 def performAction(currentRequest, macroItems) pp [:got_performAction, currentRequest, macroItems] if $DEBUG Buby::HttpRequestResponseHelper.implant(currentRequest) end |