Package lexfo.scalpel
Class ScalpelEditorProvider
java.lang.Object
lexfo.scalpel.ScalpelEditorProvider
- All Implemented Interfaces:
HttpRequestEditorProvider,HttpResponseEditorProvider
public class ScalpelEditorProvider
extends Object
implements HttpRequestEditorProvider, HttpResponseEditorProvider
Provides a new ScalpelProvidedEditor object for editing HTTP requests or responses.
Calls Python scripts to initialize the editor and update the requests or responses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MontoyaApiThe MontoyaApi object used to interact with Burp Suite.private LinkedList<WeakReference<ScalpelEditorTabbedPane>>private final ScalpelExecutorThe ScalpelExecutor object used to execute Python scripts. -
Constructor Summary
ConstructorsConstructorDescriptionScalpelEditorProvider(MontoyaApi API, ScalpelExecutor executor) Constructs a new ScalpelEditorProvider object with the specified MontoyaApi object and ScalpelExecutor object. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprovideHttpRequestEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpRequestEditor object for editing an HTTP request.provideHttpResponseEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpResponseEditor object for editing an HTTP response.void
-
Field Details
-
API
The MontoyaApi object used to interact with Burp Suite. -
executor
The ScalpelExecutor object used to execute Python scripts. -
editorsRefs
-
-
Constructor Details
-
ScalpelEditorProvider
Constructs a new ScalpelEditorProvider object with the specified MontoyaApi object and ScalpelExecutor object.- Parameters:
API- The MontoyaApi object to use.executor- The ScalpelExecutor object to use.
-
-
Method Details
-
provideHttpRequestEditor
public ExtensionProvidedHttpRequestEditor provideHttpRequestEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpRequestEditor object for editing an HTTP request.- Specified by:
provideHttpRequestEditorin interfaceHttpRequestEditorProvider- Parameters:
creationContext- The EditorCreationContext object containing information about the request editor.- Returns:
- A new ScalpelProvidedEditor object for editing the HTTP request.
-
provideHttpResponseEditor
public ExtensionProvidedHttpResponseEditor provideHttpResponseEditor(EditorCreationContext creationContext) Provides a new ExtensionProvidedHttpResponseEditor object for editing an HTTP response.- Specified by:
provideHttpResponseEditorin interfaceHttpResponseEditorProvider- Parameters:
creationContext- The EditorCreationContext object containing information about the response editor.- Returns:
- A new ScalpelProvidedEditor object for editing the HTTP response.
-
forceGarbageCollection
private void forceGarbageCollection() -
resetEditors
public void resetEditors() -
resetEditorsAsync
-