From 23f6df62f0439043a77c4c7be86018bbe8cdd011 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 19 Jun 2025 11:15:56 +0000 Subject: [PATCH] "failsave" burp script --- burp/start_burp.py | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/burp/start_burp.py b/burp/start_burp.py index 5fd8a0e..990e59e 100644 --- a/burp/start_burp.py +++ b/burp/start_burp.py @@ -64,24 +64,18 @@ while True: pyautogui.click(button) button = None - try: - button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8) - except: - pass - if button: - print("Clicking on the 'HTTP History' button...") - pyautogui.click(button) - time.sleep(2) - try: - button = pyautogui.locateCenterOnScreen("/app/burp/sort.png", confidence=0.8) - except: - pass - if button: - print("Clicking on the 'Sorting' button...") - pyautogui.click(button) - - # time.sleep(60*60*24) - # burp_process.terminate() - # print("Starting Burp Suite...") - # burp_process = start_burp() - + try: + button = pyautogui.locateCenterOnScreen("/app/burp/http_history.png", confidence=0.8) + except: + pass + if button: + print("Clicking on the 'HTTP History' button...") + pyautogui.click(button) + button = None + try: + button = pyautogui.locateCenterOnScreen("/app/burp/sort.png", confidence=0.8) + except: + pass + if button: + print("Clicking on the 'Sorting' button...") + pyautogui.click(button)