burp start script

This commit is contained in:
Simon
2025-06-03 10:24:22 +00:00
parent 4cd9661d4b
commit 0f9c23168c
6 changed files with 47 additions and 12 deletions

47
burp/start_burp.py Normal file
View File

@@ -0,0 +1,47 @@
import pyautogui
import time
BURP_JAR = "/app/burp/burpsuite_community.jar"
CONFIG_FILE = "/app/burp/project_options.json"
print("Waiting for vnc to start up...")
time.sleep(10)
print("Starting Burp Suite...")
burp_process = subprocess.Popen([
"java", "-jar", BURP_JAR,
f"--config-file={CONFIG_FILE}"
])
while True:
button = pyautogui.locateCenterOnScreen("/app/burp/next_button.png", confidence=0.8)
if button:
print("Clicking on the 'Next' button...")
pyautogui.click(button)
button = pyautogui.locateCenterOnScreen("/app/burp/start_burp.png", confidence=0.8)
if button:
print("Clicking on the 'Start Burp' button...")
pyautogui.click(button)
button = pyautogui.locateCenterOnScreen("/app/burp/accept.png", confidence=0.8)
if button:
print("Clicking on the 'Accept' button...")
pyautogui.click(button)
button = pyautogui.locateCenterOnScreen("/app/burp/proxy.png", confidence=0.8)
if button:
print("Clicking on the 'Proxy' button...")
pyautogui.click(button)
button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8)
if button:
print("Clicking on the 'HTTP History' button...")
pyautogui.click(button)
time.sleep(60)
burp_process.terminate()
print("Starting Burp Suite...")
burp_process = subprocess.Popen([
"java", "-jar", BURP_JAR,
f"--config-file={CONFIG_FILE}"
])