diff --git a/burp/accept.png b/burp/accept.png new file mode 100644 index 0000000..401dae6 Binary files /dev/null and b/burp/accept.png differ diff --git a/burp/http_history.png b/burp/http_history.png new file mode 100644 index 0000000..4f5f062 Binary files /dev/null and b/burp/http_history.png differ diff --git a/burp/proxy.png b/burp/proxy.png new file mode 100644 index 0000000..7016f6b Binary files /dev/null and b/burp/proxy.png differ diff --git a/burp/start_burp.png b/burp/start_burp.png new file mode 100644 index 0000000..084fc9c Binary files /dev/null and b/burp/start_burp.png differ diff --git a/burp/start_burp.py b/burp/start_burp.py new file mode 100644 index 0000000..19dd450 --- /dev/null +++ b/burp/start_burp.py @@ -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}" + ]) + diff --git a/burp/start_burp.sh b/burp/start_burp.sh deleted file mode 100644 index 4c55736..0000000 --- a/burp/start_burp.sh +++ /dev/null @@ -1,12 +0,0 @@ -import pyautogui -import time - -print("Waiting for Burp window...") -time.sleep(10) - -button = pyautogui.locateCenterOnScreen("/app/burp/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.")