Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

The restore function replaces Burp's state with an empty state file#4

Closed
blangus wants to merge 1 commit intovmware-archive:masterfrom
blangus:restore-state
Closed

The restore function replaces Burp's state with an empty state file#4
blangus wants to merge 1 commit intovmware-archive:masterfrom
blangus:restore-state

Conversation

@blangus
Copy link
Copy Markdown
Contributor

@blangus blangus commented Oct 2, 2016

I've tried to find a way to clear the history and state file of Burp without restarting the program. This is the best solution I came up with. I've created an empty state file (cleanstate) which restores the current state file of Burp when /restore is called. It is not an ideal solution, if someone has an better idea I am open for suggestions.

@vmwclabot
Copy link
Copy Markdown

@blangus, your company's legal contact has approved your signed contributor license agreement. It will also be reviewed by VMware, but the merge can proceed.

@vmwclabot
Copy link
Copy Markdown

@blangus, VMware has approved your signed contributor license agreement.

@dmettem
Copy link
Copy Markdown
Contributor

dmettem commented Oct 4, 2016

@blangus As you said, restoreState is the best solution currently to clear the history and state of Burp without restarting the program. However, as per Burp API Javadoc, the restoreState method is deprecated.

Even we're looking for a better solution without having to use the deprecated restoreState method as this method may be removed anytime soon.

In our CI setup, we create a new project file for each build using the project-file argument, something like below.
java -jar burp-rest-api-1.0.0.jar --server.port=$burpApiPort --project-file=~/burp/ProjectFiles/burp_project_build_number_${BUILD_NUMBER}.burp > ~/burp/LogFiles/burp_scan_build_number_${BUILD_NUMBER}.log

@blangus
Copy link
Copy Markdown
Contributor Author

blangus commented Oct 10, 2016

I will close this PR for now. Mainly due to the fact it uses a deprecated method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants