added start_burp.sh

This commit is contained in:
Simon
2025-06-03 09:54:25 +00:00
parent 4cf29ce201
commit ae312a83fb
2 changed files with 14 additions and 1 deletions

View File

@@ -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

12
burp/start_burp.sh Normal file
View File

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