A simple script to share a same instance of Burp beetween multiple exegol instance.
This script facilitates the sharing of a single Burp Pro license across multiple Exegol instances. It accomplishes this by copying necessary Burp Suite and Java directories to a common resource directory and generating a follow-up script for setting up symbolic links inside the Exegol container.
- Ensure you have sudo privileges before executing the script.
- Make sure Exegol is properly installed.
- The script should be placed in a separate directory before use.
- The script checks if it is run with sudo. If not, it exits.
- It detects the username and home directory of the original user.
- It verifies the presence of Exegol's
my-resourcesdirectory. - It copies the following directories if they exist:
.java→$HOME/.exegol/my-resources/.java.BurpSuite→$HOME/.exegol/my-resources/.BurpSuiteBurpSuitePro(default:/opt/BurpSuitePro) →$HOME/.exegol/my-resources/BurpSuitePro
- The script assigns the correct permissions to the copied resources.
- The script generates a new script:
setup_in_docker.shinside $HOME/.exegol/my-resources/. - This follow-up script should be executed inside an Exegol container via the command /opt/my-resources/setup_in_docker.sh.
- It checks if the script is running inside Docker before proceeding.
- It creates a new user inside the container with the same username.
- It sets up symbolic links to the copied resources.
- It ensures correct permissions are applied.
- It adds an alias (
b) to launch BurpSuitePro inside the container.
sudo ./BurpInExegol.shThis will copy the required files and create the follow-up script.
/opt/my-resources/setup_in_docker.shThis will configure the environment inside the container and allow BurpSuitePro to run.
- "Please run this script with sudo." → Ensure you execute it with
sudo. - "Exegol environment not found." → Verify that Exegol is installed and adjust
TARGET_DIRif necessary. - Files not copied correctly. → Ensure that the original
.java,.BurpSuite, andBurpSuiteProdirectories exist.
- The script is designed to be idempotent. If resources are already copied, it will skip them.
- The alias
bandmyburpallows launching BurpSuitePro conveniently inside the container.
