From ae312a83fbb169f786b870866169f52cd4cee02b Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 3 Jun 2025 09:54:25 +0000 Subject: [PATCH] added start_burp.sh --- Dockerfile | 3 ++- burp/start_burp.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 burp/start_burp.sh diff --git a/Dockerfile b/Dockerfile index 1c7ac98..8eaacc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,5 +41,6 @@ RUN curl https://portswigger.net/burp/releases/download \ USER 1000 -RUN python3 -m venv /home/default/.venv && bash -c "source /home/default/.venv/bin/activate && pip3 install pyautogui pillow opencv-python" +RUN python3 -m venv ~/.venv && bash -c "source ~/.venv/bin/activate && pip3 install pyautogui pillow opencv-python" +RUN echo "source ~/.venv/bin/activate" >> ~/.bashrc diff --git a/burp/start_burp.sh b/burp/start_burp.sh new file mode 100644 index 0000000..844e216 --- /dev/null +++ b/burp/start_burp.sh @@ -0,0 +1,12 @@ +import pyautogui +import time + +print("Waiting for Burp window...") +time.sleep(10) + +button = pyautogui.locateCenterOnScreen("/workspace/next_button.png", confidence=0.8) +if button: + print("Clicking on the 'Next' button...") + pyautogui.click(button) +else: + print("Failed to find the 'Next' button. Try updating the screenshot.")