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.")